Page 1 of 1

testing the compilation : Program received signal SIGFPE: F

Posted: Wed Sep 25, 2013 10:08 pm
by aditya grahari
hi rich,

i've just to try testing compilation for gyre version 2.1.1 . And, the code of the error printed like this:
make[1]: Entering directory `/home/grahari/test/gyre/test'
make[2]: Entering directory `/home/grahari/test/gyre/test/ad'
TEST homogeneous compressible model (analytic structure)
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0 0x403A2613
#1 0x403A2CB0
#2 0x400203FF
#3 0x806ED2D in __gyre_input_MOD_read_numpar
#4 0x804B8A6 in MAIN__ at gyre_ad.f90:0
/home/grahari/test/gyre/test/ad/../scripts/test_gyre.sh: line 16: 2361 Floating point exception$EXEC $FILE > /dev/null
...failed during execution of /home/grahari/test/gyre/bin/gyre_ad
make[2]: Leaving directory `/home/grahari/test/gyre/test/ad'
make[2]: Entering directory `/home/grahari/test/gyre/test/nad'
TEST MESA model for beta Cephei star
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0 0x403A2613
#1 0x403A2CB0
#2 0x400203FF
#3 0x8102C01 in __gyre_mesa_file_MOD_read_mesa_file
#4 0x8074BFE in __gyre_input_MOD_read_coeffs
#5 0x804B970 in MAIN__ at gyre_nad.f90:0
/home/grahari/test/gyre/test/nad/../scripts/test_gyre.sh: line 16: 2367 Floating point exception$EXEC $FILE > /dev/null
...failed during execution of /home/grahari/test/gyre/bin/gyre_nad
make[2]: Leaving directory `/home/grahari/test/gyre/test/nad'
make[1]: Leaving directory `/home/grahari/test/gyre/test'
its result must be succeeded, if i look at the description of the website. So, are there any problem for my compilation?
thanks for your support

Aditya

Re: testing the compilation : Program received signal SIGFP

Posted: Wed Sep 25, 2013 11:56 pm
by rhtownsend
aditya grahari wrote:hi rich,

i've just to try testing compilation for gyre version 2.1.1 . And, the code of the error printed like this:
make[1]: Entering directory `/home/grahari/test/gyre/test'
make[2]: Entering directory `/home/grahari/test/gyre/test/ad'
TEST homogeneous compressible model (analytic structure)
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0 0x403A2613
#1 0x403A2CB0
#2 0x400203FF
#3 0x806ED2D in __gyre_input_MOD_read_numpar
#4 0x804B8A6 in MAIN__ at gyre_ad.f90:0
/home/grahari/test/gyre/test/ad/../scripts/test_gyre.sh: line 16: 2361 Floating point exception$EXEC $FILE > /dev/null
...failed during execution of /home/grahari/test/gyre/bin/gyre_ad
make[2]: Leaving directory `/home/grahari/test/gyre/test/ad'
make[2]: Entering directory `/home/grahari/test/gyre/test/nad'
TEST MESA model for beta Cephei star
Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0 0x403A2613
#1 0x403A2CB0
#2 0x400203FF
#3 0x8102C01 in __gyre_mesa_file_MOD_read_mesa_file
#4 0x8074BFE in __gyre_input_MOD_read_coeffs
#5 0x804B970 in MAIN__ at gyre_nad.f90:0
/home/grahari/test/gyre/test/nad/../scripts/test_gyre.sh: line 16: 2367 Floating point exception$EXEC $FILE > /dev/null
...failed during execution of /home/grahari/test/gyre/bin/gyre_nad
make[2]: Leaving directory `/home/grahari/test/gyre/test/nad'
make[1]: Leaving directory `/home/grahari/test/gyre/test'
its result must be succeeded, if i look at the description of the website. So, are there any problem for my compilation?
thanks for your support

Aditya
Hi Aditya --

Thanks for this bug report -- you're right, this shouldn't happen!

Could you tell me what system your compiling this on -- and what version of the MESA SDK you're using?

Many thanks,

Rich

Re: testing the compilation : Program received signal SIGFP

Posted: Fri Sep 27, 2013 1:34 am
by aditya grahari

Hi Aditya --

Thanks for this bug report -- you're right, this shouldn't happen!

Could you tell me what system your compiling this on -- and what version of the MESA SDK you're using?

Many thanks,

Rich
thanks rich for your response

I actually use ubuntu v 11.10(32 bit) and mesasdk that released on april 8th 2013

cheers
aditya

Re: testing the compilation : Program received signal SIGFP

Posted: Sun Oct 06, 2013 10:21 am
by rhtownsend
aditya grahari wrote:

Hi Aditya --

Thanks for this bug report -- you're right, this shouldn't happen!

Could you tell me what system your compiling this on -- and what version of the MESA SDK you're using?

Many thanks,

Rich
thanks rich for your response

I actually use ubuntu v 11.10(32 bit) and mesasdk that released on april 8th 2013

cheers
aditya
Hi Aditya --

Please could you do the following:
  • edit src/Make.inc and set DEBUG=yes
  • run 'make clean'
  • run 'make'
  • change into the test/ad/hom subdirectory
  • run 'gdb ../../../bin/gyre_ad'
  • at the gdb prompt, type 'run gyre_ad.in'
Then, send me the debugging output which is produced.

cheers,

Rich

Re: testing the compilation : Program received signal SIGFP

Posted: Sun Oct 06, 2013 12:10 pm
by aditya grahari
Hi Aditya --

Please could you do the following:
  • edit src/Make.inc and set DEBUG=yes
  • run 'make clean'
  • run 'make'
  • change into the test/ad/hom subdirectory
  • run 'gdb ../../../bin/gyre_ad'
  • at the gdb prompt, type 'run gyre_ad.in'
Then, send me the debugging output which is produced.

cheers,

Rich
hi rich

I have followed your command like that and the result of the output like this :
Starting program: /home/grahari/test/gyre/bin/gyre_ad gyre_ad.in
[Thread debugging using libthread_db enabled]

gyre_ad [2.1.1]
===============

Compiler : GCC version 4.9.0 20130408 (experimental)
Compiler options : -I /usr/include/i386-linux-gnu -I /home/grahari/Downloads/mesasdk/include -mtune=generic -march=pentiumpro -g -Wall -Wno-unused-dummy-argument -Wno-maybe-uninitialized -std=f2008 -finit-real=snan -ffpe-trap=invalid,overflow,zero -fbacktrace -fcheck=all -finline-limit=0 -fopenmp
OpenMP Threads : 4
MPI Processors : 1

Initialization
==============


Program received signal SIGFPE, Arithmetic exception.
0x080ba914 in __gyre_input_MOD_read_coeffs ()
(gdb)
cheers

Aditya

Re: testing the compilation : Program received signal SIGFP

Posted: Mon Oct 07, 2013 4:26 pm
by rhtownsend
aditya grahari wrote:
Hi Aditya --

Please could you do the following:
  • edit src/Make.inc and set DEBUG=yes
  • run 'make clean'
  • run 'make'
  • change into the test/ad/hom subdirectory
  • run 'gdb ../../../bin/gyre_ad'
  • at the gdb prompt, type 'run gyre_ad.in'
Then, send me the debugging output which is produced.

cheers,

Rich
hi rich

I have followed your command like that and the result of the output like this :
Starting program: /home/grahari/test/gyre/bin/gyre_ad gyre_ad.in
[Thread debugging using libthread_db enabled]

gyre_ad [2.1.1]
===============

Compiler : GCC version 4.9.0 20130408 (experimental)
Compiler options : -I /usr/include/i386-linux-gnu -I /home/grahari/Downloads/mesasdk/include -mtune=generic -march=pentiumpro -g -Wall -Wno-unused-dummy-argument -Wno-maybe-uninitialized -std=f2008 -finit-real=snan -ffpe-trap=invalid,overflow,zero -fbacktrace -fcheck=all -finline-limit=0 -fopenmp
OpenMP Threads : 4
MPI Processors : 1

Initialization
==============


Program received signal SIGFPE, Arithmetic exception.
0x080ba914 in __gyre_input_MOD_read_coeffs ()
(gdb)
cheers

Aditya
Hi Adithya --

I'm able to reproduce your error on a 32-bit Fedora Core 6 system running inside a virtual machine. So, you're not alone!

The error message printed out when the program crashes is unhelpful, and it's not clear what's going on (perhaps a compiler bug?). But I've found a possible work-around: please open src/Make.inc, find the first line which defines FFLAGS, and delete the part '-finit-real=snan'. Then, 'make clean' and 'make' in the top-level directory, and run the tests.

Does this work?

cheers,

Rich

Re: testing the compilation : Program received signal SIGFP

Posted: Wed Oct 09, 2013 12:06 am
by aditya grahari
hello Rich

it works! and the prompt printed like this:
make[1]: Entering directory `/home/grahari/test/gyre/test'
make[2]: Entering directory `/home/grahari/test/gyre/test/ad'
TEST homogeneous compressible model (analytic structure) ...succeeded
TEST homogeneous compressible model (polytropic structure) ...succeeded
TEST MESA model for beta Cephei star ...succeeded
TEST MESA model for RGB star ...succeeded
TEST MESA model for slowly pulsating B-type star ...succeeded
make[2]: Leaving directory `/home/grahari/test/gyre/test/ad'
make[2]: Entering directory `/home/grahari/test/gyre/test/nad'
TEST MESA model for beta Cephei star ...succeeded
TEST MESA model for slowly pulsating B-type star ...succeeded
make[2]: Leaving directory `/home/grahari/test/gyre/test/nad'
make[1]: Leaving directory `/home/grahari/test/gyre/test'
thanks for your support Rich,

Aditya.