p*w 发帖数: 124 | 1 我的一个程序, 把array size扩大64倍后, 出现,
./program
segmentation fail
什么都没做就failed了.
没有array越界的问题.
array的大小是double 64*128*128
不算大.
查linux system monitor, 1.9G of 2.0G is used.
不知是什么愿因?
有谁知道么? 谢谢. | f****r 发帖数: 27 | 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. : 不知是什么愿因? : 有谁知道么? 谢谢.
| p*w 发帖数: 124 | 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)
| n******t 发帖数: 4406 | 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. : 不知是什么愿因? : 有谁知道么? 谢谢.
| j***r 发帖数: 19 | 5
【在 n******t 的大作中提到】 : use heap.
|
|