[issue32758] Stack overflow when parse long expression to AST
Serhiy Storchaka
report at bugs.python.org
Sat Feb 3 13:29:48 EST 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
There is also a regression in 3.7 when compile a long expression.
In 3.6:
>>> compile('+a'*1000000, '?', 'eval')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RecursionError: maximum recursion depth exceeded during compilation
In 3.7:
>>> compile('+a'*1000000, '?', 'eval')
Segmentation fault (core dumped)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32758>
_______________________________________
More information about the Python-bugs-list
mailing list