Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: hjstein@bfr.co.il (Harvey J. Stein)
To: axp-list@redhat.com
Cc: hjstein@bfr.co.il
Subject: Re: RH5.0 arithmetic traps.
Date: 01 Apr 1998 00:56:35 +0300	[thread overview]
Message-ID: <m2wwdamsmk.fsf@blinky.bfr.co.il> (raw)
In-Reply-To: Michal Jaegermann's message of Tue, 31 Mar 1998 10:01:26 -0700 (MST)

Michal Jaegermann <michal@ellpspace.math.ualberta.ca> 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


  reply	other threads:[~1998-03-31 21:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-31 16:23 RH5.0 arithmetic traps Harvey J. Stein
1998-03-31 16:37 ` David Alan Gilbert
1998-03-31 22:05   ` Uncle George
1998-03-31 17:01 ` Michal Jaegermann
1998-03-31 21:56   ` Harvey J. Stein [this message]
1998-03-31 22:40     ` Uncle George
1998-03-31 17:10 ` Dominik Kubla
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox