- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
@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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Windows VS to set heap-arrays
PRoject Properties
Fortran
Optimization
Heap arrays set to 0
clean
Rebuild
run
If Linux use -heap-arrays
option.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
@Ron_Green This is exactly what I did. The error persists with heap arrays.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite