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

forrtl: severe (170): Program Exception - stack overflow

laura_s_kang
Beginner
973 Views
I got the following error msg.
forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
main.exe 005174E5 Unknown Unknown Unknown
main.exe 0045BC32 _MAIN__ 220 main.f
main.exe 00530145 Unknown Unknown Unknown
main.exe 005179B0 Unknown Unknown Unknown
KERNEL32.dll 7C59893D Unknown Unknown Unknown
When I did some search, it seemed like I had to increase the stach size. So I did it by /F. They said the default was 1,000,000, but when I changed it to
/F1000000000000 (and lots of numbers between) and it still gives the same error msg, I started to wonder whether I actually increased the stack size or whether something else is going on. I added "/F1000000000000" to "Additional Options" box under "Command Line" under "Linker." Did I do it right? Or is there something else I should look into?
I have Intel Fortran 8.1 and am running it on Visual Studio .net.
Thanks, Laura
0 Kudos
1 Reply
Steven_L_Intel1
Employee
973 Views
1GB is the maximum stack. Pick a smaller number, such as 100000000.
0 Kudos
Reply