[issue215555] Parser crashes for deeply nested list displays

Ralf Schmitt report at bugs.python.org
Mon Jan 21 11:17:00 CET 2008


Ralf Schmitt added the comment:

Ok, I've upped the limit to some very high value and tried to provoke a
stack overflow.
eval("["*x+"]"*x) segfaults on my machine for x somewhere around 20000
(linux, amd64). When setting MAXSTACK to 5000 eval("["*x+"]"*x) works
for x <= 333. So, I guess this should be safe guess (even for the BSDs,
which have a smaller default stack size).

BTW: The hardest part was recognizing that nothing gets rebuilt and that
more then parser.o depended on parser.h. Don't you have some kind of
automatic dependency tracking? Or am I missing some build tools?

Anyway, patch in http://bugs.python.org/issue1881

____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue215555>
____________________________________


More information about the Python-bugs-list mailing list