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

Peculiar Segmentation Fault

inkant
Anfänger
649Aufrufe
Using ifort v.11
on 2 quad core Intel Xeon processors.

I am getting segmentation fault if I do not use -fast option. I mean the code works fine if I use -fast option, while invoking ifort but crashes if I do not use it.
I am wondering if this is STACK overflow. I have already increased the stack size to unlimited.

I am having plenty of cache 16MB and plenty of RAM 16GB.
I have no clue as to what is happening.
0 Kudos
1 Antworten
Ron_Green
Moderator
649Aufrufe
Quoting - inkant
Using ifort v.11
on 2 quad core Intel Xeon processors.

I am getting segmentation fault if I do not use -fast option. I mean the code works fine if I use -fast option, while invoking ifort but crashes if I do not use it.
I am wondering if this is STACK overflow. I have already increased the stack size to unlimited.

I am having plenty of cache 16MB and plenty of RAM 16GB.
I have no clue as to what is happening.

Are you saying the compiler seg faults, or is the code seg faulting at runtime?

I'll assume it's your code seg faulting, and that you are on Linux and not Mac OS X. Correct me if any of this is wrong.

Next, what version of 11.0 are you using? I would recommend 11.0.081 and not the latest 11.0.083.

Next, -fast includes these options: -ipo, -O3, -no-prec-div, -static, and -xHost. What options do you use when you don't use -fast?

Next, compile and link with -g -traceback and see if you can find where the code is segfaulting.

I would try these options:

-O2 -xhost -g -traceback -fp-stack-check -heap-arrays -check all -fp-stack-check -gen-interfaces -warn interfaces

leave off those last 2 options if you have 11.0.083.

ron
Antworten