Skip to content

[3.15] gh-112564: Fix UAF for gc debug print (gh-160662) - #161896

Merged
nascheme merged 1 commit into
python:3.15from
johng:backport-8b85375-3.15
Nov 12, 2026
Merged

nascheme merged 1 commit into
python:3.15from
johng:backport-8b85375-3.15

Conversation

@johng

@johng johng commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Fix a crash in the garbage collector when gc.DEBUG_COLLECTABLE or
gc.DEBUG_UNCOLLECTABLE is set and writing the debug output to
sys.stderr frees one of the objects being reported.
(cherry picked from commit 8b85375)

Fix a crash in the garbage collector when gc.DEBUG_COLLECTABLE or
gc.DEBUG_UNCOLLECTABLE is set and writing the debug output to
sys.stderr frees one of the objects being reported.
(cherry picked from commit 8b85375)
@nascheme
nascheme merged commit 73ec530 into python:3.15 Nov 12, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants