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-04-15.23:37:34
SpamBayes Score 0.00032111994
Marked as misclassified No
Message-id <1239838657.22.0.326859227165.issue5765@psf.upfronthosting.co.za>
In-reply-to
Content
Originally reported by Juanjo Conti at PyAr: 
http://blog.gmane.org/gmane.org.user-groups.python.argentina/
day=20090415

Evaluating this expression causes a stack overflow, and the Python 
interpreter exits abnormally:

eval("()" * 30000)

3.0.1, 2.6, 2.5 and current 2.x trunk all fail on Windows; the original 
reporter was likely using Linux. Some versions may require a larger 
constant instead of 30000.

2.4 isn't affected; it raises a "TypeError: 'tuple' object is not 
callable" as expected, even for extremely long sequences.

Alberto Bertogli said: inside eval, symtable_visit_expr() (Python/
symtable.c) is called recursively (thru the VISIT/VISIT_SEQ macros), 
eventually taking all stack space.
History
Date User Action Args
2009-04-15 23:37:37ggenellinasetrecipients: + ggenellina
2009-04-15 23:37:37ggenellinasetmessageid: <1239838657.22.0.326859227165.issue5765@psf.upfronthosting.co.za>
2009-04-15 23:37:36ggenellinalinkissue5765 messages
2009-04-15 23:37:35ggenellinacreate