From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Cc: hjstein@bfr.co.il
Subject: Re: RH5.0 arithmetic traps.
Date: Tue, 31 Mar 1998 17:40:34 -0500 [thread overview]
Message-ID: <352170E0.286EE72F@voicenet.com> (raw)
In-Reply-To: m2wwdamsmk.fsf@blinky.bfr.co.il
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 <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
next prev parent reply other threads:[~1998-03-31 22:37 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
1998-03-31 22:40 ` Uncle George [this message]
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