Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem with stack overflow

Problem with stack overflow

Problem with stack overflow

Hi everyone,

I have an error message forrtl: severe(170): Program exception - stack overflow

My program is doing some grid search. It ran fine with a small number of grids, but then I got this message when I increase the number of grids to the realistic level. I read the topic https://software.intel.com/en-us/forums/topic/2994... but I still don't understand. ( I use Intel Visual Fortran Compiler with IMSL libraries (use include 'link_fnl_static_hpc.h') and I ran the program by clicking Start without debugging so I don't know what "ifort" is.

Anyone could suggest me the way out of this ?

Thank you very much.

PS. I use Windows 7 with Intel(R) Xeon(R) CPU W350 @2.80GHZ
RAM 6.00 GB
64 bit operating system (but the compiler was installed as 32 bit due to some installation problem)

RE: Problem with stack overflow

ifort is the fortran compiler.

From visual studio, under debug/exceptions, check win32 exceptions.
Press F5 to run your program.

RE: Problem with stack overflow

So, how would I solve this overflow problem ? Thanks.

RE: Problem with stack overflow

When the program stops in the debugger, it tells you where the problem lies. If you're saying that it works with small amounts of data but not with large ones, then it is a matter of increasing your array sizes.

If it is badly written, say something like


real res(5), oneway(5,2), otherway(2,5), ranks(2), flat(10)
do ii = 1, 5
   do jj = 1, 2
   end do
end do 
Then you may have problems. If it is written properly


integer, parameter:: XMAX=5, YMAX=2
real res(XMAX), oneway(XMAX,YMAX), otherway(YMAX,XMAX), ranks(YMAX), flat(XMAX*YMAX)
do ii = 1, XMAX
   do jj = 1, YMAX 
Then it will be really easy to modify

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close