- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have an mpi project with heap arrays set to zero that fails with the error "forrtl: severe (170): Program Exception - stack overflow" on one Windows machine but not another. The two machines have very similar specs. On the machine where the code is failing, if I increase the stack allocation, the code still fails but produces a different error further into the program (an access violation). On the other machine, the code seems to work fine. The program runs all the way through and produces sensible output. Any suggestions? Could there be some difference in configuration between the two machines that I'm overlooking that explains the difference?
Thanks,
Jamie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the suggestion. I probably did not provide enough information in the initial post. When it produced a stack overflow, it failed on the first line. When it produced an access violation it was various minutes into the code. Given that, it feels hard to explain the stack overflow with the access violation, but I guess not impossible. The access violation produced no traceback despite traceback being on (as I think it is often the case), so it is hard to be sure what was going on. Still, I tried initialising all variables by default, and it did not solve the issue. I know that is not definitive, but I didn't know what else to try.
Still, it is all a bit academic now as updating OneAPI fixed the issue. The program is now also producing the same results on both machines, which have slightly different oneAPI versions, but both of which are more recent than the version I had on the machine that was giving problems.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My suspicion is that there is some uninitialized data being referenced that triggers this symptom, and the behavior depends on whatever memory contents were present at the time. The stack overflow error is leading you astray.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the suggestion. I probably did not provide enough information in the initial post. When it produced a stack overflow, it failed on the first line. When it produced an access violation it was various minutes into the code. Given that, it feels hard to explain the stack overflow with the access violation, but I guess not impossible. The access violation produced no traceback despite traceback being on (as I think it is often the case), so it is hard to be sure what was going on. Still, I tried initialising all variables by default, and it did not solve the issue. I know that is not definitive, but I didn't know what else to try.
Still, it is all a bit academic now as updating OneAPI fixed the issue. The program is now also producing the same results on both machines, which have slightly different oneAPI versions, but both of which are more recent than the version I had on the machine that was giving problems.

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