Skip to content

[3.13] gh-156189: Fix a crash when deleting frame.f_trace_opcodes - #156190

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:gh-156189-frame-trace-opcodes
Aug 21, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:gh-156189-frame-trace-opcodes

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

The setter passed the value to PyBool_Check() without checking it for NULL, so del frame.f_trace_opcodes crashed. It now raises AttributeError, like in 3.14, where the accessor is generated by Argument Clinic.

The setter passed the value to PyBool_Check() without checking it for
NULL.
@serhiy-storchaka
serhiy-storchaka merged commit acdb9a7 into python:3.13 Aug 21, 2026
46 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the gh-156189-frame-trace-opcodes branch August 27, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants