delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/29/01:04:45

From: "[taurus AT ptel DOT net]" <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
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

<HTML><BODY>
&nbsp; 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.&nbsp;
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'.&nbsp; 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 &lt;objc/Object.h>
<BR>int main()
<BR>{
<BR>&nbsp;id myobject = [Object alloc];
<BR>&nbsp;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>&nbsp; 0x00002157
<BR>&nbsp; 0x00001583
<BR>&nbsp; 0x00009fbf
<BR>
<BR>If anyone has any ideas, PLEASE write me.&nbsp; Thank you.
<BR>
<BR>&nbsp;&nbsp;&nbsp; Sincerely,
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Joshua Heyer
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imwho AT hotmail DOT com

</BODY>
</HTML>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019