Abort from GenericAlias.__sizeof__
: ob->ob_type != &PyLong_Type
#127603
Labels
3.12
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
It's possible to abort the interpreter in 3.12 by calling
__sizeof__
of aGenericAlias
instance:Abort message:
Found using fusil by @vstinner.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.12.8+ (heads/3.12:8e3c2d2, Dec 4 2024, 10:58:33) [GCC 11.4.0]
The text was updated successfully, but these errors were encountered: