writing to stdout throws segmentation fault in for

2019-09-08 07:18发布

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

0条回答
登录 后发表回答