Segmentation fault

Bug/problem reports for any of the GYRE executables (gyre_ad, gyre_nad, etc)
Post Reply
jacquelinegoldstein
Posts: 3
Joined: Tue Nov 11, 2014 12:37 pm

Segmentation fault

Post by jacquelinegoldstein » Tue Nov 11, 2014 12:43 pm

After successfully making gyre, make test reveals the following error:

Code: Select all

kleiner:gyre jgoldstein$ make test
make[1]: Entering directory `/Users/jgoldstein/myApplications/gyre/test'
make[2]: Entering directory `/Users/jgoldstein/myApplications/gyre/test/ad'
TEST homogeneous compressible model (analytic structure) ...succeeded
TEST homogeneous compressible model (polytropic structure) ...succeeded
TEST homogeneous compressible model (OpenMP) ...succeeded
TEST homogeneous compressible model (rotational Doppler shift) ...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
TEST FGONG solar model S ...succeeded
make[2]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test/ad'
make[2]: Entering directory `/Users/jgoldstein/myApplications/gyre/test/nad'
TEST MESA model for beta Cephei star ...succeeded
TEST MESA model for RGB star
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
0x10e1f4502

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x10e1f4502

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Backtrace for this error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  #0  #0  0x10e1f4502
0x10e1f4502
0x10e1f4502
#0  0x10e1f4502
#0  0x10e1f4502
#1  0x10e1f4cbe
#2  0x7fff976dbf19
#1  #1  #0  0x10e1f4cbe
#1  0x10e1f4cbe
0x10e1f4502
#1  #1  0x10e1f4cbe
#1  #2  #2  #1  0x10e1f4cbe
0x10e1f4cbe
0x7fff976dbf19
0x7fff976dbf19
0x10e1f4cbe
#2  #2  #2  0x10e1f4cbe
0x7fff976dbf19
0x7fff976dbf19
0x7fff976dbf19
#2  #2  0x7fff976dbf19
0x7fff976dbf19
#3  0x10dc19400
#3  0x10dc19400
#3  0x10dc19400
#3  0x10dc19400
#3  0x10dc18efb
#3  0x10dc19400
#4  0x10e37b5c8
#4  0x10e37b5c8
#4  0x10e37b5c8
#4  #4  0x10e37b5c8
0x10e37b5c8
#4  0x10e37b5c8
#5  0x7fff9a9a22fb
#6  0x7fff9a9a2278
#5  0x7fff9a9a22fb
#6  0x7fff9a9a2278
#5  0x7fff9a9a22fb
#6  0x7fff9a9a2278
#5  0x7fff9a9a22fb
#6  #5  0x7fff9a9a2278
test_support: line 19: 17063 Segmentation fault: 11  $exec $file > /dev/null
 ...failed during execution of ./gyre_nad
make[2]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test/nad'
make[1]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test'
kleiner:gyre jgoldstein$ 

User avatar
rhtownsend
Site Admin
Posts: 397
Joined: Sun Mar 31, 2013 4:22 pm

Re: Segmentation fault

Post by rhtownsend » Tue Nov 11, 2014 2:00 pm

Interesting. It seems that the problem is caused by the OpenMP stack overflowing. To fix, set the OMP_STACKSIZE variable to something large -- say, 2M.

The calculation still may fail due to a frequency mismatch, but this is not anything to worry about -- just numerical noise from changing gfortran versions, I think.

jacquelinegoldstein
Posts: 3
Joined: Tue Nov 11, 2014 12:37 pm

Re: Segmentation fault

Post by jacquelinegoldstein » Tue Nov 11, 2014 2:15 pm

Setting the OMP_STACKSIZE=2M fixed the seg fault, thank you.

Is the following failure what you were referring to from mismatched gfortrans?

Code: Select all

kleiner:gyre jgoldstein$ make test
make[1]: Entering directory `/Users/jgoldstein/myApplications/gyre/test'
make[2]: Entering directory `/Users/jgoldstein/myApplications/gyre/test/ad'
TEST homogeneous compressible model (analytic structure) ...succeeded
TEST homogeneous compressible model (polytropic structure) ...succeeded
TEST homogeneous compressible model (OpenMP) ...succeeded
TEST homogeneous compressible model (rotational Doppler shift) ...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
TEST FGONG solar model S ...succeeded
make[2]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test/ad'
make[2]: Entering directory `/Users/jgoldstein/myApplications/gyre/test/nad'
TEST MESA model for beta Cephei star ...succeeded
TEST MESA model for RGB star59c59
<                         3                     -852                        6                      858  0.1151452771661757E+002  0.2254338713810882E-002  0.1151480240127081E+002  0.2268811590471002E-002
--- field 5	relative error 4.17e-12
>                         3                     -852                        6                      858  0.1151452771656952E+002  0.2254338704980019E-002  0.1151480240127592E+002  0.2268811577668130E-002
 ...failed when comparing gyre_nad.txt and ref/gyre_nad.txt.x86_64-Darwin
make[2]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test/nad'
make[1]: Leaving directory `/Users/jgoldstein/myApplications/gyre/test'
kleiner:gyre jgoldstein$ 

User avatar
rhtownsend
Site Admin
Posts: 397
Joined: Sun Mar 31, 2013 4:22 pm

Re: Segmentation fault

Post by rhtownsend » Tue Nov 11, 2014 2:42 pm

Yep!

Post Reply