[New-bugs-announce] [issue5392] stack overflow after hitting recursion limit twice
Gabriel Genellina
report at bugs.python.org
Sat Feb 28 12:26:44 CET 2009
New submission from Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:
Set sys.setrecursionlimit to 50 or lower. Then, the second time the
recursion limit is reached, the interpreter crashes with a stack
overflow.
This happens both with released 3.0.1 and the py3k branch, on Windows.
At least on my PC, 51 appears to be the minimum acceptable value for
sys.setrecursionlimit.
Python 3.1a0 (py3k, Feb 28 2009, 04:16:04) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
p3> import sys
p3> sys.setrecursionlimit(20)
p3> def g(): g()
...
p3> g()
Traceback (most recent call last):
...
RuntimeError: maximum recursion depth exceeded
p3> g()
Fatal Python error: Cannot recover from stack overflow.
This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
C:\APPS\python\py3k\PCbuild>
----------
components: Interpreter Core
messages: 82906
nosy: gagenellina
severity: normal
status: open
title: stack overflow after hitting recursion limit twice
type: crash
versions: Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5392>
_______________________________________
More information about the New-bugs-announce
mailing list