* error: floating invalid ???
@ 1997-05-06 4:00 Sigurd Schelstraete
1997-05-06 4:00 ` Ron Natalie
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sigurd Schelstraete @ 1997-05-06 4:00 UTC (permalink / raw)
hello,
I am trying to run a program (in fortran) on an alphastation 500 with
digital UNIX 4.0A. This program previously ran on a SUN workstation
without problems. On the alphastation, it runs for a while and then exits
with the message:
"forrtl: error (65): floating invalid"
"Abort - core dumped"
When I try running it with the debugger, it stops with the message
"Thread received signal FPE".
Since I have no idea how to proceed from there, I would appreciate any
hints as to what may cause this error message.
Thanks,
Sigurd.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error: floating invalid ???
1997-05-06 4:00 error: floating invalid ??? Sigurd Schelstraete
@ 1997-05-06 4:00 ` Ron Natalie
1997-05-08 4:00 ` Dave Butenhof
1997-05-09 4:00 ` Steve Lionel
2 siblings, 0 replies; 4+ messages in thread
From: Ron Natalie @ 1997-05-06 4:00 UTC (permalink / raw)
Sigurd Schelstraete wrote:
>
> hello,
> I am trying to run a program (in fortran) on an alphastation 500 with
> digital UNIX 4.0A. This program previously ran on a SUN workstation
> without problems. On the alphastation, it runs for a while and then exits
> with the message:
I would suggest that you look very carefully for an uninitialized
variable (ATOM on the DEC or purify on the SUN will help). The
Alpha is a bit pickier with floating exceptions that most other
machines (like the SUN). Just loading an float value from memory
will cause an exception, where most other operating systems will
let you slide until you actually perform a mathematical operation
with the value.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error: floating invalid ???
1997-05-06 4:00 error: floating invalid ??? Sigurd Schelstraete
1997-05-06 4:00 ` Ron Natalie
@ 1997-05-08 4:00 ` Dave Butenhof
1997-05-09 4:00 ` Steve Lionel
2 siblings, 0 replies; 4+ messages in thread
From: Dave Butenhof @ 1997-05-08 4:00 UTC (permalink / raw)
Sigurd Schelstraete wrote:
>
> hello,
> I am trying to run a program (in fortran) on an alphastation 500 with
> digital UNIX 4.0A. This program previously ran on a SUN workstation
> without problems. On the alphastation, it runs for a while and then exits
> with the message:
>
> "forrtl: error (65): floating invalid"
> "Abort - core dumped"
>
> When I try running it with the debugger, it stops with the message
>
> "Thread received signal FPE".
>
> Since I have no idea how to proceed from there, I would appreciate any
> hints as to what may cause this error message.
This means what it says. Your program generated a floating point trap,
called SIGFPE. That could mean a number of things, but either you're
doing something "bad" with IEEE floating point operations that SUN
(SPARC?) didn't notice, or you're doing something that Alpha doesn't
support. (Although IEEE floating point is a standard, every
implementation has its share of "quirks".)
When you have the program sitting at the prompt, you'll need to see what
the code is doing around that point to figure out why it got the SIGFPE.
/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation 110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120 Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error: floating invalid ???
1997-05-06 4:00 error: floating invalid ??? Sigurd Schelstraete
1997-05-06 4:00 ` Ron Natalie
1997-05-08 4:00 ` Dave Butenhof
@ 1997-05-09 4:00 ` Steve Lionel
2 siblings, 0 replies; 4+ messages in thread
From: Steve Lionel @ 1997-05-09 4:00 UTC (permalink / raw)
In article <5knjal$f47$1@inf6serv.rug.ac.be>, schelstr@allserv.rug.ac.be
(Sigurd Schelstraete) writes:
|>hello,
|>I am trying to run a program (in fortran) on an alphastation 500 with
|>digital UNIX 4.0A. This program previously ran on a SUN workstation
|>without problems. On the alphastation, it runs for a while and then exits
|>with the message:
|>
|>"forrtl: error (65): floating invalid"
|>"Abort - core dumped"
The most common way to get this error is to have an argument mismatch where
you pass a small integer to an argument which expects a real. For example:
call foo(1)
...
subroutine foo(x)
real x
The integer 1, when interpreted as a real, looks like an IEEE denormalized
value. On Sun systems, these are quietly accepted and processed, and you
may never know of the problem. On DIGITAL's systems, the default is that
denorms and other IEEE "exceptional values" are errors. If you want the
Sun behavior, compile with -fpe1 or -fpe3, depending on what exactly you
want (see the User Manual for details on these.) However, a better bet is
to compile with -warn argument_checking and see if the compiler notices
any mismatches. Even if it doesn't, look for them yourself. The example
above is very common, where people write 1 instead of 1.0 (or 1.0D0 for
double-precision, and it MATTERS!)
--
Steve Lionel mailto:lionel@quark.zko.dec.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DIGITAL Fortran, see http://www.digital.com/fortran
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-05-09 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-06 4:00 error: floating invalid ??? Sigurd Schelstraete
1997-05-06 4:00 ` Ron Natalie
1997-05-08 4:00 ` Dave Butenhof
1997-05-09 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox