Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

forrtl: severe (174): SIGSEGV, segmentation fault

kathrika
Beginner
536 Views
I get a segfault while running a simulation:

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
ww3_shel_debug 0000000000419C37 w3src2md_mp_w3sds 580 w3src2md.f
ww3_shel_debug 0000000000424508 w3srcemd_mp_w3src 330 w3srcemd.f
ww3_shel_debug 000000000044BA00 w3wavemd_mp_w3wav 975 w3wavemd.f
ww3_shel_debug 000000000046358E MAIN__ 831 ww3_shel.f
ww3_shel_debug 0000000000403422 Unknown Unknown Unknown
libc.so.6 0000003697C1DA44 Unknown Unknown Unknown
ww3_shel_debug 0000000000403369 Unknown Unknown Unknown


w3src2md_mp_w3sds:
line 579 DO IK=IKHW, NK
line 580 EBD(IK) = 0.
line 581 DO ITH=1, NTH


The segfault occurs midway in the simulation and occurs at the same point of the simulation for the same input data.
Memory usage is stable (~101MB) and is always well below (just 10% of) the total RAM.
I use a 64 bit dual core Xeon / Fedora core 7 / Compiler ver 10.0.023.
Compiler options: "-free -c -i-static -heap-arrays".
I run with "ulimit -s unlimited".

Please help.
Kathrika



0 Kudos
1 Reply
Ron_Green
Moderator
536 Views
Kathrika,

are you sure IK is not exceeding the array boundaries? Try these compiler options:

-g -traceback -check bounds

might also try adding -fp-stack-check to the above

ron
0 Kudos
Reply