writing to stdout throws segmentation fault in fortran

强颜欢笑 提交于 2019-12-25 16:54:40

问题


I working with some legacy code, but I'm running into a seg fault. Analyzing the core dump with gdb gives

Program terminated with signal 11, Segmentation fault.
#0  0x00000000007d2200 in se_fly (iq=0) at se.f90:384
384      WRITE(stdout,'(/5x,a)') repeat('=',67)

What is strange to me is that I've run this piece of code with different initial conditions without issues, so I suspect that I've hit a memory wall but the core dump analysis seems to suggest otherwise.

EDIT: compiled with ifort 14.0.0

来源:https://stackoverflow.com/questions/22025860/writing-to-stdout-throws-segmentation-fault-in-fortran

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