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: Tone Kokalj Subject: Re: Floating Point Exception Date: 1999/09/08 Message-ID: <37D6008A.464F60FF@ijs.si>#1/1 X-Deja-AN: 522424309 Content-Transfer-Encoding: 7bit References: <37D51712.B72E6CFA@ijs.si> <37D5DA1B.7259C242@percy.engr.wisc.edu> To: "J. Josh Feng" Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@ijs.si X-Trace: goodnews.ijs.si 936771723 18533 193.2.5.109 (8 Sep 1999 06:22:03 GMT) Organization: J. Stefan Institute Mime-Version: 1.0 Reply-To: Tone.Kokalj@ijs.si NNTP-Posting-Date: 8 Sep 1999 06:22:03 GMT Newsgroups: comp.os.linux.alpha 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 | +------------------------------------------------------------------------+