Re: large array, ia64, "segmentation fault"

Joe Buck <[email protected]> Mon, 29 Nov 2004 11:15:24 -0800
Newsgroups gmane.comp.gcc.devel,gmane.linux.redhat.ia64.general,gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
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 <[email protected]> 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.