- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am merely running a previously successful project in IFORT with the compiler option changed to IFX. The project compiles successfully but produces the run time error forrtl: severe (170): Program Exception - stack overflow (shown in the DOS window) and Unhandled exception at 0x00007FF72C2BFEE7 in myifxprog.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000000148803000) in a MSVSC popup window. Any suggestions would be greatly appreciated as there is no diagnostic information available. I also noticed that the debugger is not displaying any variables or the variables have a red bullet with a cross in it (undefined address).
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Enable all runtime checks, and run in Debug configuration. Something may show up.
Stack Overflow can occur when a temporary needs to be created for:
ArrayOut = (Array Expression)
If this be the case, then this can be corrected in two ways:
1) enable heap arrays
2) Replace the "offending" statement with DO loop(s)
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@jimdempseyatthecove Thanks for the suggestions. I enabled heap arrays but the error did not go away. The debugger halts at a subroutine name i.e. at
-> subroutine mysub(arg1, arg2)
and not at a specific executable statement. So cannot narrow it down to a particular variable. Again, the program works fine in IFORT and gfortran so this is an IFX specific error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Windows VS to set heap-arrays
PRoject Properties
Fortran
Optimization
Heap arrays set to 0
clean
Rebuild
run
If Linux use -heap-arrays
option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Ron_Green This is exactly what I did. The error persists with heap arrays.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page