unsufficient virtual space/stack to run the programm

Support knowledgebase (stack)
Applies to

SuSE Linux: All versions

Symptom:

During the execution of a programme the error message:
unsufficient virtual space/stack to run the programm appears.

Cause:

The maximum stack, which is fixed for all users, is set by default by kernel. In this case it concerns the stack memory, which is required during the execution of particular programmes e.g. through recursive function calls, calculations, etc. The superuser has available an unlimited stack capacity. The usual user, however, does not. You must be satisfied with a maximum of 8192 KB.

Solution:

It is necessary to interfere in kernel to increase the stack capacity. The maximum stack capacity is defined in the file /usr/src/linux/include/linux/sched.h. The variable _STK_LIM defines this capacity. It is set to 8*1024*1024 by default.
Keywords: STACK, UNSUFFICIENT, SPACE, BASH, ULIMIT

SDB-stack, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 27. Nov 1996
SuSE Linux AG - Last generated: 14. Mai 2002 by choeger (sdb_gen 1.40.0)