From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16927 invoked from network); 18 Feb 1999 18:35:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Feb 1999 18:35:32 -0000 Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA15736 for ; Thu, 18 Feb 1999 13:21:30 -0500 Received: from perf.zko.dec.com (perf.zko.dec.com [16.31.144.83]) by mail13.digital.com (8.9.1a/8.9.1/WV2.0d) with ESMTP id NAA18083 for ; Thu, 18 Feb 1999 13:21:29 -0500 (EST) Received: from localhost by perf.zko.dec.com (8.8.8/1.1.10.5/07Mar97-1056AM) id NAA0000022503; Thu, 18 Feb 1999 13:21:29 -0500 (EST) Date: Thu, 18 Feb 1999 13:21:29 -0500 (EST) From: Phillip Ezolt To: axp-list@redhat.com Subject: Re: OffTopic: PovRay3 for AlphaLinux ? In-Reply-To: <19990218124753.R16253@csee.wvu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hmm. This is a very interesting problem. I have seen similar unexplained FPEs. One case in particular is very strange. The binary runs fine on one EV5, but it core dumps (becuase of an FPE) on another EV5. The system types are different, (Noritake vs. alcor) (Both EV5s) The kernel version is different, (v2.0.30 vs v2.2.1) And The math libraries are different. (glibc-2.0.7-17 vs glibc-2.0.7-29) (The only difference is the Redhat patches) However, the binary is the same. Compiled with egcs 1.1.1. Could it possibly be an error in the way the the new kernel handles FPE errors? Maybe it doesn't do a fixup when it should? --Phil Digital/Compaq: High Performance Servers/Benchmark Performance Engineering Phillip.Ezolt@compaq.com ezolt@perf.zko.dec.com 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) ) 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 > -- > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > >