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

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:

....

double x;
double y[10];

printf("x = %le, y0 = %le\n", x, y[0]);

....


In other platforms, variables are initialized to zero (maybe), but in
Alpha, variables
are initialized to some special value (like NaN or something), which may
be the cause
of the problem.

> There is one more thing that bothers me and that is that console reports
> 
> messages like, whenever I run some program (for example compiler or some
> 
> other programs):
> 
> <sc 208(11ffffbba,3e8,64)>
> 
> And I don't know what this messages means.
> 
> I am running kernel 2.0.37 and Debian/GNU Linux slink 2.1.
> 

I doubt this may be a debugging message from the kernel. Since I move to
kernel 2.2.10,
they never appear, AFAIK. I would recommand CPML, which can be
downloaded at

http://www.unix.digital.com/linux/software.htm

It really soups up programs.

-- 
J. Joshua Feng
ECE, University of Wisconsin - Madison  fengj@percy.engr.wisc.edu



  reply	other threads:[~1999-09-07  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 [this message]
1999-09-08  4:00   ` Tone Kokalj
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