由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - fortran memory problem
相关主题
是不是cygwin问题?<>全书下载
Linux fortran segmentation fail.哪里有Fortran教程可下?
老板的程序在unix上运行没问题Fortran里面哪个函数显示系统时间?
Write In Cwhere to down a standard Fortran90 complier?
详细介绍Fortran 77的站点一工程计算站点
问个面试问题,请教Include unix libraries in windows fortran
请帮我看看这个MPI_Scatter() 问题help fortran read format
Re: anyone know how to compile a libary coded in c which any be used bRe: help fortran read format, why not try excel?
相关话题的讨论汇总
话题: fortran话题: gdb话题: single话题: program话题: 0x0804d505
进入Computation版参与讨论
1 (共1页)
l******n
发帖数: 9344
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
O******e
发帖数: 734
2
Recompile the code with -g and array bounds checking, then run in debugger.

【在 l******n 的大作中提到】
: 有一段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

l******n
发帖数: 9344
3
find the problem!
Intel fortran (ifort)的automatic variable居然有时候不allocate memory,FT!

【在 O******e 的大作中提到】
: Recompile the code with -g and array bounds checking, then run in debugger.
j**u
发帖数: 6059
4
good to know, hehe

【在 l******n 的大作中提到】
: find the problem!
: Intel fortran (ifort)的automatic variable居然有时候不allocate memory,FT!

O******e
发帖数: 734
5
What status does the allocate statement return? Did you test for that?

【在 l******n 的大作中提到】
: find the problem!
: Intel fortran (ifort)的automatic variable居然有时候不allocate memory,FT!

1 (共1页)
进入Computation版参与讨论
相关主题
Re: help fortran read format, why not try excel?详细介绍Fortran 77的站点
Fortran和C++的数据转换问题问个面试问题,请教
[转载] How to check the stack-size?请帮我看看这个MPI_Scatter() 问题
g77与f90结合的问题Re: anyone know how to compile a libary coded in c which any be used b
是不是cygwin问题?<>全书下载
Linux fortran segmentation fail.哪里有Fortran教程可下?
老板的程序在unix上运行没问题Fortran里面哪个函数显示系统时间?
Write In Cwhere to down a standard Fortran90 complier?
相关话题的讨论汇总
话题: fortran话题: gdb话题: single话题: program话题: 0x0804d505