From: "[taurus AT ptel DOT net]" Newsgroups: comp.os.msdos.djgpp Subject: Strange crashes -- please help! Date: Wed, 28 May 1997 20:19:48 -0500 Organization: MEANS Message-ID: <338CD9B0.7A106946@ptel.net> Reply-To: taurus AT ptel DOT net NNTP-Posting-Host: rushford-43.dialup.means.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Lines: 35 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk   I've been getting spurious crashes in programs I compile under DJGPP, always due to what I think is some kind of floating point error.  This happens inconsistently in most of the programs I write, but always during some floating point calculations -- in one case during a call to 'floor'.  It also happens consistently when ever I try to run a program written in Objective-C, even one which does almost nothing:

#import <objc/Object.h>
int main()
{
 id myobject = [Object alloc];
 printf("Hello World!");
}

produces this when i run it:

F:\JSTUFF\OCSAMPLE>tst
Exiting due to signal SIGFPE
Floating Point exception at eip=00002157
eax=0005b008 ebx=00003172 ecx=00000000 edx=0005b004 esi=000556e8 edi=00055668
ebp=00055680 esp=00055584 cs=00a7 ds=00af es=00af fs=0087 gs=00bf ss=00af
Call frame traceback EIPs:
  0x00002157
  0x00001583
  0x00009fbf

If anyone has any ideas, PLEASE write me.  Thank you.

    Sincerely,
        Joshua Heyer
        imwho AT hotmail DOT com