From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12521 invoked from network); 31 Mar 1998 21:56:39 -0000 Received: from morannon.bfr.co.il (HELO blinky.bfr.co.il) (hjstein@192.116.142.129) by mail2.redhat.com with SMTP; 31 Mar 1998 21:56:39 -0000 Received: (from hjstein@localhost) by blinky.bfr.co.il (8.8.5/8.6.9) id AAA01427; Wed, 1 Apr 1998 00:56:35 +0300 Sender: hjstein@bfr.co.il To: axp-list@redhat.com Subject: Re: RH5.0 arithmetic traps. References: <199803311701.KAA13196@ellpspace.math.ualberta.ca> CC: hjstein@bfr.co.il From: hjstein@bfr.co.il (Harvey J. Stein) Date: 01 Apr 1998 00:56:35 +0300 In-Reply-To: Michal Jaegermann's message of Tue, 31 Mar 1998 10:01:26 -0700 (MST) Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 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 exception. -- Harvey J. Stein Berger Financial Research hjstein@bfr.co.il