The stack limits in Linux may be set within the tcsh or bash shells as
follows:
In bash and similar shells you can use theese three
commands:
- ulimit -a
- ulimit -Ha
- ulimit -s unlimited
that will respectively print soft limits, hard limits
and remove the stack limit.
In tcsh and similar shells the commands would look
like this:
- limit
- limit -h
- limit s unlimited
After removing the stack limit try runing your program
from the same shell.