"ulimit -s" has no effect?

"Martin v. Löwis" martin at v.loewis.de
Thu Feb 5 01:21:51 EST 2004


Maciej Kalisiak wrote:
> Now, my understanding is that I get the segfault when Python overruns the C
> stack.  Naturally the last number printed should go up when I increase the
> stack size in the shell before calling Python, by using "ulimit -s <number 
> of k>".   But this seems to not be the case.  Whatever value I use with
> ulimit, Python always segfaults at the same recursion depth.  Any advice on
> how to get things to work proper with this?

As a starting point, verify that the limit you set actually does get
set. It may be that you don't have permission to increase your stack
limit.

Regards,
Martin




More information about the Python-list mailing list