forrtl: severe (174): SIGSEGV, segmentation fault occurred

---http://software.intel.com/en-us/forums/showthread.php?t=57110

There are infinite possibilities. Two articles I wrote for Windows Fortran would also be
instructive for you. These cover Access Violation (SEGV on Linux) and Stack Overflow. On
Linux, you can try raising the stack limit with "ulimit -s" or "limit stacksizae unlimited"
depending on your shell.

# set unlimited stack size
ulimit -s unlimited

#check stack size
ulimit -a


---http://blog.csdn.net/brace/article/details/1102422

(2)使用strace execfile,运行程序,出错时会显示那个系统调用错

 

---http://space.itpub.net/241379/viewspace-691490

在Linux下写程序的时候,如果程序比较大,经常会遇到“段错误”(segmentation fault)这样的问题,这主要就是由于Linux系统初始的堆栈大小(stack size)太小的缘故,一般为10M。我一般把stack size设置成256M,这样就没有段错误了!命令为:
ulimit -s 262140
如果要系统自动记住这个配置,就编辑/etc/profile文件,在 “ulimit -S -c 0 > /dev/null 2>&1”行下,添加“ulimit -s 262140”,保存重启系统就可以了!

你可能感兴趣的:(for)