From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,bbabe699fb9ce159 X-Google-Attributes: gid111c93,public From: "J. Josh Feng" Subject: Re: Floating Point Exception Date: 1999/09/07 Message-ID: <37D5DA1B.7259C242@percy.engr.wisc.edu>#1/1 X-Deja-AN: 522383754 Content-Transfer-Encoding: 7bit References: <37D51712.B72E6CFA@ijs.si> To: Tone.Kokalj@ijs.si X-Accept-Language: en Content-Type: text/plain; charset=big5 Organization: University of Wisconsin, Madison Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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): > > > > 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