From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23809 invoked from network); 18 Feb 1999 19:33:59 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Feb 1999 19:33:59 -0000 Received: from beach.frankfurt.netsurf.de (root@beach.frankfurt.netsurf.de [194.64.181.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA18909 for ; Thu, 18 Feb 1999 14:19:56 -0500 Received: from Othello (deck-219.frankfurt.netsurf.de [194.64.181.251]) by beach.frankfurt.netsurf.de (8.8.5/8.8.5) with SMTP id UAA14185 for ; Thu, 18 Feb 1999 20:18:55 +0100 (MET) From: Joachim Wesner To: axp-list@redhat.com Subject: Re: OffTopic: PovRay3 for AlphaLinux ? Date: Thu, 18 Feb 1999 19:59:33 +0100 X-Mailer: KMail [version 0.7.9] Content-Type: text/plain References: <19990218124753.R16253@csee.wvu.edu> MIME-Version: 1.0 Message-Id: <99021820174700.01844@Othello> Content-Transfer-Encoding: quoted-printable On Thu, 18 Feb 1999, Daniel J. Frasnelli wrote: >> I'd suggest to check carefully that the code is never doing anything=0D >> wrong with "subnormalized" numbers. I found that -mieee option is=0D >> useless with my compiler and whenever my numbers are around=0D >> ...e-310 I'm getting Floating point exception.=0D >Andrei,=0D >=09I am working with Curtis Olson (lead developer, FlightGear flight=0D >simulator(FGFS) ) on a similar problem. Both= he and=0D >I are beginning to suspect bugs in the AXP port of egcs. For example, =0D >part of the graphics initialization routines in FGFS set up coordinates = for=0D >a 640x480 window. As you might have read already, FGFS crashes with a=0D >fpe upon startup. Going through the code stepwise and watching the =0D >variable values, there is a point where the following happens:=0D >=0D >1) Some of the coordinates are set to a number of order e-310 (obviously= wrong)=0D >2) An integer divide is called which approximates the coordinates to 0.=0D >3) The result becomes a number x/0, which causes the fpe. =0D > =0D 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 w= as 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 neverthele= ss reported different behaviour when running the *SAME* binray on both syste= ms, 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" denorm= alized numbers, that later cause problems in such areas as above. I bet it's even code equivalent to if (x !=3D 0.) =09y =3D k/x or y =3D k/(int)x; The test failing because 1e-310 is NOT zero, however, the latter calc set= s it to zero or can't handle the denorm number. I had a similar problem with t= he SVD routines in lin-/lapack. The initial problem with the math library *shoul= d* (hope so) be fixed by using libffm by myself and K. Goto,=20 http://people.frankfurt.netsurf.de/Joachim.Wesner/libffm.0.28.tar.gz *HOWEVER* several people reported that it still does not fix *all* fpes i= n 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