Message86006
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. |
|
Date |
User |
Action |
Args |
2009-04-15 23:37:37 | ggenellina | set | recipients:
+ ggenellina |
2009-04-15 23:37:37 | ggenellina | set | messageid: <1239838657.22.0.326859227165.issue5765@psf.upfronthosting.co.za> |
2009-04-15 23:37:36 | ggenellina | link | issue5765 messages |
2009-04-15 23:37:35 | ggenellina | create | |
|