avatar
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
avatar
O*e
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

avatar
l*n
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.
avatar
j*u
4
good to know, hehe

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

avatar
O*e
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!

相关阅读
python 语言的设计思想PhD student positions at <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="bffafafcecffead1d6c9dacdccd6cbc6">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> of California, Merced人工智能,机器人审稿机会, 一周内有效matlab parallel 编程想内推到facebook的可以联系我内推哦~让霍金打字快一倍,SwiftKey 是怎么做到的?(zz)美东药厂分子动力学暑假实习现存的早于四库全书版本的隋书里,都没有记载圆周率的部分超弱GPA申请CS的硕士/博士有希望吗?求选校建议我们组招计算方面博士后了DMBD'2019想转行CS的同学应该去Programming版如何合并两个数据文件 (转载)Characterization 与 Evaluation 这两个概念的区别是什么?CS master/phd 兼职(时薪 25-30美金)Master of science in information system NEU BoPHP Web Developer Co-op Opportunity关于working memory的部分令我印象深刻MOBILE APPS DEVELOPER 方向好不好.ask for help for R programming (转载)
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。