Closed
Labels
3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Crash report
del frame.f_trace_opcodes crashes in 3.13.
>>> import sys
>>> frame = sys._getframe()
>>> del frame.f_trace_opcodes
Segmentation faultframe_settrace_opcodes() passes the value to PyBool_Check() without checking it for NULL, and the setter is called with NULL when the attribute is deleted. del frame.f_trace_lines is safe, because it is a PyMemberDef entry.
In 3.14 and newer the accessor is generated by Argument Clinic, whose @setter rejects the deletion with AttributeError, so only 3.13 is affected.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Activity
[3.13] gh-156189: Fix a crash when deleting frame.f_trace_opcodes (GH…