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

stack overflow - /heap-arrays does not help!

remekk
Beginner
687 Views

Hello,

I am compiling my program with the Intel Compiler 10.1.025 for Windows and have a problem that has already been raised on this forum. When I try to run my program, I get the following error message: "forrtl: severe (170): Program Exception - stack overflow". I have increased the size of the stack reserve, as it has already been suggested, but always get the same error:

forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
prog.exe 004C0E97 Unknown Unknown Unknown
prog.exe 0040101E Unknown Unknown Unknown
prog.exe 004C0FBF Unknown Unknown Unknown
kernel32.dll 7C817067 Unknown Unknown Unknown

I have also tried to use the option /heap-arrays, and get the following:

forrtl: severe (41): insufficient virtual memory
Image PC Routine Line Source
prog.exe 00511BFA Unknown Unknown Unknown
prog.exe 0050F461 Unknown Unknown Unknown
prog.exe 004C06E4 Unknown Unknown Unknown
prog.exe 0049F7CB Unknown Unknown Unknown
prog.exe 0044B3FE Unknown Unknown Unknown
prog.exe 0040101E Unknown Unknown Unknown
prog.exe 004FA77F Unknown Unknown Unknown
kernel32.dll 7C817067 Unknown Unknown Unknown

Do you have any idea on how I could fix this problem? Any suggestion or help would be most welcome!

Thank you in advance,

remek

0 Kudos
2 Replies
Ron_Green
Moderator
687 Views
Quoting - remekk

Hello,

I am compiling my program with the Intel Compiler 10.1.025 for Windows and have a problem that has already been raised on this forum. When I try to run my program, I get the following error message: "forrtl: severe (170): Program Exception - stack overflow". I have increased the size of the stack reserve, as it has already been suggested, but always get the same error:

forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
prog.exe 004C0E97 Unknown Unknown Unknown
prog.exe 0040101E Unknown Unknown Unknown
prog.exe 004C0FBF Unknown Unknown Unknown
kernel32.dll 7C817067 Unknown Unknown Unknown

I have also tried to use the option /heap-arrays, and get the following:

forrtl: severe (41): insufficient virtual memory
Image PC Routine Line Source
prog.exe 00511BFA Unknown Unknown Unknown
prog.exe 0050F461 Unknown Unknown Unknown
prog.exe 004C06E4 Unknown Unknown Unknown
prog.exe 0049F7CB Unknown Unknown Unknown
prog.exe 0044B3FE Unknown Unknown Unknown
prog.exe 0040101E Unknown Unknown Unknown
prog.exe 004FA77F Unknown Unknown Unknown
kernel32.dll 7C817067 Unknown Unknown Unknown

Do you have any idea on how I could fix this problem? Any suggestion or help would be most welcome!

Thank you in advance,

remek

At this point then it will be necessary to have more information. You should build and run the debug configuration with /traceback /Zi so that a proper stack trace will point to the offending code. OR you could submit a zip'ed copy of your project and files to premier.intel.com.

There may be some syntactic solutions - creating INTERFACE blocks for external routines for example. It really depends on what statement(s) cause the overflow.

ron

0 Kudos
Steve_Nuchia
New Contributor I
687 Views
The fact that it shows "insufficient virtual memory" suggests that the amount of memory being requested is just too large for his system configuration. Without more information we can't be sure, but fooling with stack settings is probably just rearranging the deck chairs on the Titanic.

0 Kudos
Reply