Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.14] gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470)#140504

Merged
colesbury merged 1 commit into
python:3.14python/cpython:3.14from
miss-islington:backport-574405c-3.14miss-islington/cpython:backport-574405c-3.14Copy head branch name to clipboard
Oct 23, 2025
Merged

[3.14] gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470)#140504
colesbury merged 1 commit into
python:3.14python/cpython:3.14from
miss-islington:backport-574405c-3.14miss-islington/cpython:backport-574405c-3.14Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

The make_gen() function creates and tracks generator/coro objects, but
doesn't fully initialize all the fields. At a minimum, we need to
initialize all the fields that may be accessed by gen_traverse because
the call to compute_cr_origin() can trigger a GC.
(cherry picked from commit 574405c)

Co-authored-by: Sam Gross colesbury@gmail.com

…pythongh-140470)

The `make_gen()` function creates and tracks generator/coro objects, but
doesn't fully initialize all the fields. At a minimum, we need to
initialize all the fields that may be accessed by gen_traverse because
the call to `compute_cr_origin()` can trigger a GC.
(cherry picked from commit 574405c)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury colesbury enabled auto-merge (squash) October 23, 2025 14:19
@colesbury colesbury merged commit 3944e9b into python:3.14 Oct 23, 2025
48 checks passed
@miss-islington miss-islington deleted the backport-574405c-3.14 branch January 2, 2026 17:59
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.