Skip to content

ast.literal_eval Segmentation Fault in Python 3.10 #126710

Closed as not planned
Closed as not planned
@EgodPrime

Description

@EgodPrime

Crash report

What happened?

a = 'P/a'*200000
import ast
ast.literal_eval(a)

The above code makes Python 3.10 crash with Segmentation Fault.

CPython versions tested on:

3.9, 3.10

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.10.15 (main, Oct 3 2024, 07:27:34) [GCC 11.2.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions