Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Daniel J. Frasnelli" <dfrasnel@csee.wvu.edu>
To: axp-list@redhat.com
Subject: Re: OffTopic: PovRay3 for AlphaLinux ?
Date: Thu, 18 Feb 1999 12:47:53 -0500	[thread overview]
Message-ID: <19990218124753.R16253@csee.wvu.edu> (raw)
In-Reply-To: <36CC3842.1456962C@tn.utwente.nl>; from Andrei A. Dergatchev on Thu, Feb 18, 1999 at 04:56:50PM +0100

> 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. 
 
I am not sure where to start when debugging the problem, but it definately 
seems to be compiler-related; programs like xlockmore's "flow" mode and
most GL modes, several graphical demos shipped with glut, and others 
crash from similar conditions.  One might look through a debug of these
programs and point at Mesa or the Glut toolkit (many fpe occur during a 
light position calculation).  I personally think this is a domino-like
effect where a bug in egcs causes strange and terrible miscalculations
with math operations in all software compiled by it.
	It does not seem to be an endian-ness or 64-bit problem, as I can
build FGFS under Irix (yes, using -64 and -mips4) and not have the same
problems.

Any thoughts?
Daniel
-- 


  reply	other threads:[~1999-02-18 18:02 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 [this message]
1999-02-18 18:21     ` Phillip Ezolt
1999-02-19  9:04       ` Richard Henderson
1999-02-18 18:59     ` Joachim Wesner
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