Mail Archives: djgpp/1997/05/29/01:04:45
<HTML><BODY>
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:
<BR>
<BR>#import <objc/Object.h>
<BR>int main()
<BR>{
<BR> id myobject = [Object alloc];
<BR> printf("Hello World!");
<BR>}
<BR>
<BR>produces this when i run it:
<BR>
<BR>F:\JSTUFF\OCSAMPLE>tst
<BR>Exiting due to signal SIGFPE
<BR>Floating Point exception at eip=00002157
<BR>eax=0005b008 ebx=00003172 ecx=00000000 edx=0005b004 esi=000556e8 edi=00055668
<BR>ebp=00055680 esp=00055584 cs=00a7 ds=00af es=00af fs=0087 gs=00bf ss=00af
<BR>Call frame traceback EIPs:
<BR> 0x00002157
<BR> 0x00001583
<BR> 0x00009fbf
<BR>
<BR>If anyone has any ideas, PLEASE write me. Thank you.
<BR>
<BR> Sincerely,
<BR> Joshua Heyer
<BR> imwho AT hotmail DOT com
</BODY>
</HTML>
- Raw text -