Skip to content

[3.14] gh-159620: Fix remote asyncio stacks stopping at async generators (GH-159623) - #159655

Merged
pablogsal merged 2 commits into
python:3.14from
pablogsal:backport/pr-159623-314
Oct 18, 2026
Merged

pablogsal merged 2 commits into
python:3.14from
pablogsal:backport/pr-159623-314

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Backport gh-159623 to 3.14. Follow async-generator wrappers when inspecting suspended coroutine chains and locating the running task's code object.

Adapted to the monolithic remote-debugging module and 3.14's one-slot await-pointer offset. The existing live-process stress test now retries failed samples within its original timeout, as main and 3.15 already do. Windows ARM64 exposed a race when an awaited object was freed during a sample.

The external-inspection suite passes on a debug build: 25 tests ran, with 2 skipped. The new regression tests also pass reference-leak checks.

…enerators (pythonGH-159623)

Follow asynchronous-generator send/throw wrappers when unwinding suspended
and running asyncio tasks.

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>

(cherry picked from commit 2188f9b)
@pablogsal
pablogsal disabled auto-merge October 17, 2026 23:38
@pablogsal
pablogsal enabled auto-merge (squash) October 17, 2026 23:38
@pablogsal
pablogsal merged commit 2224fff into python:3.14 Oct 18, 2026
49 checks passed
@pablogsal
pablogsal deleted the backport/pr-159623-314 branch October 18, 2026 00:04
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