This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: large array, ia64, "segmentation fault"
On Mon, Nov 29, 2004 at 10:53:03AM -0800, David Mosberger wrote:
> >>>>> On Sat, 27 Nov 2004 11:27:30 +0800 (CST), hx w <ye_hx_w@yahoo.com.cn> said:
>
> hx> Excuse me , In the REHL3 64bit platform ,how many can
> hx> i increase the stack size? I mean the maximum size.
>
> Depends on the shell. With bash:
>
> $ ulimit -s unlimited
Off topic, but risky advice has just been given.
This is not advisable, unless you want to risk waking the OOM-killer when
you accidentally write an infinite recursion. At one time, "unlimited"
was the default in seveal GNU/Linux distros, and I ran into this problem
several times.
I would suggest choosing a limit that leaves room in your swap file in
case some program decides to use all the stack you allow it.