From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2607 invoked from network); 31 Mar 1998 22:37:51 -0000 Received: from mail11.voicenet.com (HELO voicenet.com) (207.103.0.37) by mail2.redhat.com with SMTP; 31 Mar 1998 22:37:51 -0000 Received: (qmail 12307 invoked from network); 31 Mar 1998 22:37:50 -0000 Received: from rotary931-pri.voicenet.com (HELO voicenet.com) (209.71.52.31) by mail11.voicenet.com with SMTP; 31 Mar 1998 22:37:50 -0000 Message-ID: <352170E0.286EE72F@voicenet.com> Date: Tue, 31 Mar 1998 17:40:34 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com CC: hjstein@bfr.co.il Subject: Re: RH5.0 arithmetic traps. References: <199803311701.KAA13196@ellpspace.math.ualberta.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit oh, fortran u say, the -mieee sa I stated was for C. i suppose u do/do not know if d1mach(4) returns a nan/inf, or if ER is int ? gat BTW gdb & float operations are not all that reliable. BTW#2 u can also breakpoint at the instruction itself like : b 0x1200d58e0 BUT u need to know what the assembler is so u also need to do disass dfzerowexf_ Harvey J. Stein wrote: > Michal Jaegermann writes: > > > > I have an application which builds & runs fine on linux/alpha RH 4.2, > > > but when I try to build & run it on linux/alpha RH 5.0 it fails. > > > > Try -mieee flag; this is a performance hit but handles exceptions > > closer to what IEEE prescribes. > > > > The fact that somethings run fine on something is not a proof for > > an absence of bugs. > > Yes ... but I don't see this on linux/intel RH 4.2, linux/alpha RH 4.2, > sun/sparc, and dg/ux. > > > > Anyone have any ideas what might be wrong and/or how to fix it? > > > > How about running gdb and checking? It is kind of hard to that > > for you. > > I tried to track it down in gdb, but got strange results. When I run > it straight through in GDB I get: > > Program received signal SIGFPE, Arithmetic exception. > 0x1200d58e0 in dfzerowexf_ () at dfzerowexf.f:285 > Current language: auto; currently fortran > (gdb) > > Above cited line is: > > ER = 2.0D0 * D1MACH(4) > > This is Fortran code (compiled with f2c). D1MACH is from the SLATEC > numerical library. D1MACH(4) is supposed to return 2^(-52). > > If I break on the above line & step past, I don't get an arithmetic