Redian新闻
>
Linux fortran segmentation fail.
avatar
Linux fortran segmentation fail.# Computation - 科学计算
p*w
1
我的一个程序, 把array size扩大64倍后, 出现,
./program
segmentation fail
什么都没做就failed了.
没有array越界的问题.
array的大小是double 64*128*128
不算大.
查linux system monitor, 1.9G of 2.0G is used.
不知是什么愿因?
有谁知道么? 谢谢.
avatar
f*r
2
Run ulimit -s to see what stack size limit you have on the machine,
adjust that number. (Usually a larger one will help)

【在 p*w 的大作中提到】
: 我的一个程序, 把array size扩大64倍后, 出现,
: ./program
: segmentation fail
: 什么都没做就failed了.
: 没有array越界的问题.
: array的大小是double 64*128*128
: 不算大.
: 查linux system monitor, 1.9G of 2.0G is used.
: 不知是什么愿因?
: 有谁知道么? 谢谢.

avatar
p*w
3
all unlimited. I kind of feel I may exceed some boudary but use big
matrix in common block.
I have thought all subroutines share the same common block variable,
maybe I am wrong? Need test it.

【在 f****r 的大作中提到】
: Run ulimit -s to see what stack size limit you have on the machine,
: adjust that number. (Usually a larger one will help)

avatar
n*t
4
use heap.

【在 p*w 的大作中提到】
: 我的一个程序, 把array size扩大64倍后, 出现,
: ./program
: segmentation fail
: 什么都没做就failed了.
: 没有array越界的问题.
: array的大小是double 64*128*128
: 不算大.
: 查linux system monitor, 1.9G of 2.0G is used.
: 不知是什么愿因?
: 有谁知道么? 谢谢.

avatar
j*r
5


【在 n******t 的大作中提到】
: use heap.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。