This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ggenellina
Recipients ggenellina
Date 2009-02-28.11:26:42
SpamBayes Score 6.9030075e-09
Marked as misclassified No
Message-id <1235820404.86.0.303625232795.issue5392@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2009-02-28 11:26:44ggenellinasetrecipients: + ggenellina
2009-02-28 11:26:44ggenellinasetmessageid: <1235820404.86.0.303625232795.issue5392@psf.upfronthosting.co.za>
2009-02-28 11:26:43ggenellinalinkissue5392 messages
2009-02-28 11:26:42ggenellinacreate