Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Tone Kokalj <Tone.Kokalj@ijs.si>
To: "J. Josh Feng" <fengj@percy.engr.wisc.edu>
Subject: Re: Floating Point Exception
Date: 1999/09/08	[thread overview]
Message-ID: <37D6008A.464F60FF@ijs.si> (raw)
In-Reply-To: 37D5DA1B.7259C242@percy.engr.wisc.edu

J. Josh Feng wrote:

> Tone Kokalj wrote:
> >
> > Hi All !
> >
> > Please, can somebody help me.
> >
> > I have the following problem. I have access to two Linux/Alphas
> > PC21164-P7.  But I am not able to do something really useful with
> > them, since I got "Floating Point Exceptions" and the console report
> > something like:
> >
> > arithmetic trap at 0000000120090248: 11 0000000800000000
> >
> > It is not that the applications I am running are bad, since they are
> > well established and runs on other platforms quite well.
> >
>
> I had this quite often. I assume you use GCC (egcs more precisely). My
> guess is that some
> variable in your program is used before a value is assigned to it. For
> example:

First, thanks for the answer. But it is really not linked with GCC. I could
compile theprogram with FORTRAN90 on DEC Alpha with static linking the
libraries, which will
run 100% OK on DEC, but will FPE fail on Linux/GNU Alpha.

This morning I did a little of debugging. I found out that the program
(written in FORTRAN77 and compiled with g77) crashed while executing
FORMAT sentence. More precisely it crashed in
../../../../libf2c/libI77/wref.c:211. And that is terrifying - to crash in
FORMAT.

The only "specialized" program that runs succeessfully is my own (written in
C),
since I wrote small  FPE signal handler. But I would really omit this
FPE signal
handler in numerical programs, since I don't know what would be its impact
(maybe all obtained values will be meaningless).

Best regards,
Tone

--
+------------------------------------------------------------------------+
| Tone Kokalj                                  Email: Tone.Kokalj@ijs.si |
| Department of Physical and Organic Chemistry Phone: x 386 61 177 3520  |
| Jozef Stefan Institute                         Fax: x 386 61 177 3811  |
| Jamova 39, SI-1000 Ljubljana                                           |
| SLOVENIA                                                               |
+------------------------------------------------------------------------+






  reply	other threads:[~1999-09-08  4:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-07  4:00 Floating Point Exception Tone Kokalj
1999-09-07  4:00 ` J. Josh Feng
1999-09-08  4:00   ` Tone Kokalj [this message]
1999-09-08  4:00     ` J. Josh Feng
1999-09-08  4:00       ` Greg Lindahl
1999-09-08  4:00   ` Greg Lindahl
1999-09-09  4:00     ` Tone Kokalj
1999-09-09  4:00       ` Eberhard Burr
1999-09-10  4:00         ` Tone Kokalj
1999-09-07  4:00 ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
2001-05-29 10:11 Floating point exception BERTRAND Joël
2001-05-29 12:50 ` BERTRAND Joël
2001-06-25 21:45   ` Ken Whaley
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