"ulimit -s" has no effect?
Maciej Kalisiak
mac at dgp.toronto.edu
Thu Feb 5 16:46:09 EST 2004
Mathias Waack <M.Waack at gmx.de> writes:
> Have you tried it with a different shell? Your example works for me
> as expected. But I'm using a bash where ulimit is a builtin. Don't
> know about zsh.
"ulimit" is a builtin in zsh as well. But I did try under "bash" from a Linux
console. Same behaviour. On two different machines. This must be something
embarassingly simple. Sanity check, just to be on the same page, here's my
procedure:
1. % python
2. # type in routine
>>> def foo(i):
print i
foo(i+1)
3. >>> foo(0)
4. this properly raises exception at depth 998 or so
5. import sys
6. sys.setrecursionlimit(1000000)
7. >>> foo(0)
8. segfaults at about depth 7000+
9. % ulimit -s 32000
10. repeat steps 1 through 7
11. same segfault point
--
Maciej Kalisiak | <mac at dgp.toronto.edu> | http://www.dgp.toronto.edu/~mac
More information about the Python-list
mailing list