forrt1: severe (170): Program Exception - stack overflow

泪湿孤枕 提交于 2019-12-02 13:52:06

问题


and thanks ahead of time for any help!

I have compiled a program (which I did not write) and it works just fine on Mac's but when I try to execute the program on Windows I get the following error message shortly after execution of the program began:

forrt1: severe (170): Program Exception - stack overflow

I am not an ifort or Fortran user, but trying to compile a program for work.

I did an "ifort --version" and I am using Intel Visual Fortran Compiler XE with verion 12.0.0.104. I have been working on this problem for a few days now and I have tried messing with the flags in the Makefile some, but with no luck.

If I can provide any further information, I'll try to do my best. Thanks again!


回答1:


Try adding the following flags during compilation to get more information printed out:

/traceback /check:all

check will do runtime error checking, traceback will tell the compiler to generate extra information when a severe error occurs at runtime.




回答2:


When you compile the program, try the option /heap-arrays to have the compiler place arrays on the heap instead of the stack. Otherwise try making the stack available to the executable larger.



来源:https://stackoverflow.com/questions/6874506/forrt1-severe-170-program-exception-stack-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!