From: Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de>
To: axp-list@redhat.com
Subject: Re: OffTopic: PovRay3 for AlphaLinux ?
Date: Thu, 18 Feb 1999 19:59:33 +0100 [thread overview]
Message-ID: <99021820174700.01844@Othello> (raw)
In-Reply-To: 19990218124753.R16253@csee.wvu.edu
On Thu, 18 Feb 1999, Daniel J. Frasnelli wrote:
>> I'd suggest to check carefully that the code is never doing anything
>> wrong with "subnormalized" numbers. I found that -mieee option is
>> useless with my compiler and whenever my numbers are around
>> ...e-310 I'm getting Floating point exception.
>Andrei,
> I am working with Curtis Olson (lead developer, FlightGear flight
>simulator(FGFS) <http://www.flightgear.org>) on a similar problem. Both he and
>I are beginning to suspect bugs in the AXP port of egcs. For example,
>part of the graphics initialization routines in FGFS set up coordinates for
>a 640x480 window. As you might have read already, FGFS crashes with a
>fpe upon startup. Going through the code stepwise and watching the
>variable values, there is a point where the following happens:
>
>1) Some of the coordinates are set to a number of order e-310 (obviously wrong)
>2) An integer divide is called which approximates the coordinates to 0.
>3) The result becomes a number x/0, which causes the fpe.
>
Much of this was discussed earlier in another thread here (or was it on
comp.os.linux.alpha ?). You should try to check the archives (but there was no
general solution yet). It was also noted that the math error handling in the
Linux Kernel and the True64 Unix Kernel are the same, but some nevertheless
reported different behaviour when running the *SAME* binray on both systems, if
I recall correctly.
One of the reasons is very likely that the standard math library actually
includes quite complicated *extra* code to just generate "correct" denormalized
numbers, that later cause problems in such areas as above.
I bet it's even code equivalent to
if (x != 0.)
y = k/x or y = k/(int)x;
The test failing because 1e-310 is NOT zero, however, the latter calc sets it
to zero or can't handle the denorm number. I had a similar problem with the SVD
routines in lin-/lapack. The initial problem with the math library *should*
(hope so) be fixed by using libffm by myself and K. Goto,
http://people.frankfurt.netsurf.de/Joachim.Wesner/libffm.0.28.tar.gz
*HOWEVER* several people reported that it still does not fix *all* fpes in
PovRay (I did not yet find time to look into that, if it's a bug still in
libffm).
I would be interested to hear if libffm in the actual version helps in
FlightGear.
Joachim
next prev parent reply other threads:[~1999-02-18 19:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-18 10:48 OffTopic: PovRay3 for AlphaLinux ? Andreas Czerniak
1999-02-18 15:46 ` Daniel J. Frasnelli
1999-02-18 15:56 ` Andrei A. Dergatchev
1999-02-18 17:47 ` Daniel J. Frasnelli
1999-02-18 18:21 ` Phillip Ezolt
1999-02-19 9:04 ` Richard Henderson
1999-02-18 18:59 ` Joachim Wesner [this message]
1999-02-18 20:22 ` Andrei A. Dergatchev
1999-02-18 22:52 ` Bob McElrath
1999-02-18 23:24 ` OffTopic: newbie to Linux Alpha Emmanuel PIERRE
1999-02-20 3:00 ` Eric Lee Green
1999-02-20 6:16 ` Ron Farrer
1999-02-19 0:08 ` OffTopic: PovRay3 for AlphaLinux ? Michal Jaegermann
1999-02-18 21:01 ` Wes Bauske
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