On Wednesday 07 March 2007 11:51, justin finnerty wrote:
Hello,
I am having problems running a program under Suse 10.2 that works on 10.0 when I increase the size of a buffer from 4MB to 8MB. The test program immediately segv faults on entry into the main function under 10.2 but runs fine on 10.0.
Stack space is limited to 8MB by default. This is by ulimit. You can set this for the current shell with ulimit -s 20000 for example, to increase the limit to 20000K. Or you can increase it globally by editing /etc/security/limits.conf But it is better to allocate on the heap, as others have pointed out --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org