🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6396

ObjC bug in gcc 2.7.0: floating point exception

#6396
From: Daniel Louis Potter
Date: Thu, 23 Nov 1995 00:00
70 lines
1893 bytes
gcc -v output:
gcc version 2.7.0


input file to reproduce the bug:

--------(test.m)
#include <objc/Object.h>

@interface asdf: Object {
}
-init;

@end

@implementation asdf: Object {
}
-init {
	[super init];
	return self;
}

@end


void main() {
	id obj;

	obj=[[asdf new] init];
}

-------------

While this simple program does reproduce the problem, it is not limited 
to this program.. even the example objective c program from the objc 
newsgroup doesn't work right with the new 2.7.0 version. It worked ok 
with 2.6.2.


Commands:

gcc -o test test.m -lobjc


Machine:
486-dx/4-100 with 16 megs ram, Linux 1.3.42, GCC-ELF 2.7.0 (also has a 
problem with the a.out version)


Installation:

Installed by untar/gz'ing the version on sunsite.unc.edu in the 
/pub/Linux/GCC directory.


Incorrect behavior:

Any objective C programs I try will immidiately say 'floating exception' 
when the program is run, (during [[xxx new] init]). If you run gdb on it, 
it breaks in one of the hash table functions:

__objc_init_install_dtable (receiver=0x800bae0, op=0x800b720)
     at /opt/release/pub/gcc-2.7.0/objc/sendmsg.c:210
/opt/release/pub/gcc-2.7.0/objc/sendmsg.c:210: No such file or directory

(because I don't have the sources the libs I can't figure what the exact 
line is)


That is all of the info I have on it. This really needs to be fixed. Thanks!
Technical Details
Message-ID: <Pine.SOL.3.91.951123201736.16985A-100000@jove.acs.unt.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,1755b058aeba2a1f,start
X-Google-Attributes: gid113d02,public
From: dlp0001@jove.acs.unt.edu (Daniel Louis Potter)
Subject: ObjC bug in gcc 2.7.0: floating point exception
Date: 1995/11/23
Message-ID: <Pine.SOL.3.91.951123201736.16985A-100000@jove.acs.unt.edu>
X-Deja-AN: 120031662
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: GNUs Not Usenet
newsgroups: gnu.gcc.bug