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

CVFORTRAN 66b forrtl: severe (170): Program Exception - stack overflow

Intel_C_Intel
Employee
643 Views
This program can run on Linux with pgf90 well,but when i run my program on win2000server,it says:
forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
2DWP.exe 00401A73 Unknown Unknown Unknown
2DWP.exe 004029B9 Unknown Unknown Unknown
2DWP.exe 00449929 Unknown Unknown Unknown
2DWP.exe 0042EDB9 Unknown Unknown Unknown
KERNEL32.dll 77E7CA90 Unknown Unknown Unknown
Incrementally linked image--PC correlation disabled.
Press any key to continue

The help of cvf says:
severe(170): Program Exception - stack overflow
FOR$IOS_PGM_STKOVF. The Compaq Fortran RTL has detected a stack overflow while executing your program. See your Release Notes for information on how to increase stack size.

Part of the f90 program is:

main program:
integer,parameter::dim=1499
call initialWP(kesai,beita,0,dim,j)

subroutine initialWP(kesai,beita,select,dim,m)
dimension::kesai(0:dim+1,0:dim+1),beita(dim)

if dim=99,it is OK.

Can you help me and tell me why this happen and how to deal with this problem,thank you!

My email is lihm0@163.com
0 Kudos
3 Replies
Steven_L_Intel1
Employee
643 Views
0 Kudos
Intel_C_Intel
Employee
643 Views
your text hereyour text hereyour text here
your code here
your text here
0 Kudos
Intel_C_Intel
Employee
643 Views
Thank you very much!
It works well.
:)
0 Kudos
Reply