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

debug and release program

GHui
Novice
825 Views
My program works right when compile with -g, but it works wrong without -g. The error output is "forrtl: sever (174) : SIGSEGV, segmenttation fault occurred". How can I go on to resolve this error? Any help will be appreciated.
0 Kudos
3 Replies
Arjen_Markus
Honored Contributor II
825 Views
You should be able to get a traceback via the -traceback option.
That will indicate at least where this occurred.
Possibilities that come to mind: uninitialised variables or wrong argument lists.
Debug versions tend to be rather tolerant to such things in my experience.

Regards,

Arjen
0 Kudos
GHui
Novice
825 Views
The program works fine with "-g" or "-g -traceback". I think there are uninitialised variables or wrong argument, too. The project is too big to hard to review every code.
0 Kudos
Steven_L_Intel1
Employee
825 Views
See my suggestions in your other thread.
0 Kudos
Reply