Closed
Description
Crash report
What happened?
l = 200000
a = 'P/a'*l
import ast
ast.literal_eval(a)
The above code makes Python 3.9/3.10 crash with Segmentation Fault.
This error input can be correctly detected in Python 3.11+ with RecursionError: maximum recursion depth exceeded during ast construction
, but it still results into crash in 3.9.20 and 3.10.15.
A smaller l
such as 200
will get the correct error Value Error: malformed node or string
for all Python 3.9+
CPython versions tested on:
3.9, 3.10
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.9.20 (main, Oct 3 2024, 07:27:41) [GCC 11.2.0], Python 3.10.15 (main, Oct 3 2024, 07:27:34) [GCC 11.2.0]
Metadata
Metadata
Assignees
Projects
Status
Todo