[issue1881] increase parser stack limit

Ralf Schmitt report at bugs.python.org
Thu Feb 7 21:59:34 CET 2008


Ralf Schmitt added the comment:

when I set the the stack size to 128kb on a 64bit linux with ulimit -s
128, the tests still pass (default stack size is 8192 kb).

However the following fails at recursion level 180 with a segfault:
def f(count):
    print count
    f(count+1)
f(0)

If I set the stack size to 96k, the interpreter cannot even start that
script. So this change should be pretty safe to not overwrite stack
boundaries.

Anything else I can do to get this in?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1881>
__________________________________


More information about the Python-bugs-list mailing list