fortran memory problem# Computation - 科学计算
l*n
1 楼
有一段fortran的程序,编译后,执行的时候,有时候给出正确的结果,有的时候给
出segmentation fault
ERROR is 1.909169931504362E-004
0xb7469768 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) step
Single stepping until exit from function __libc_start_main,
which has no line number information.
Program exited normally.
正常
(gdb) step
Single stepping until exit from function main,
which has no line number information.
Program received signal SIGSEGV, Segmentation fault.
0x0804d505 in gmodule_mp_div2_ ()
(gdb) where
#0 0x0804d505
出segmentation fault
ERROR is 1.909169931504362E-004
0xb7469768 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) step
Single stepping until exit from function __libc_start_main,
which has no line number information.
Program exited normally.
正常
(gdb) step
Single stepping until exit from function main,
which has no line number information.
Program received signal SIGSEGV, Segmentation fault.
0x0804d505 in gmodule_mp_div2_ ()
(gdb) where
#0 0x0804d505