---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”,保存重啟系統就可以了!