Message86006
| 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: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 |
|