Skip to content

gh-158522: Fix truncated stack for a task whose coroutine recurses - #158526

Merged
pablogsal merged 5 commits into
python:mainfrom
deadlovelll:gh-158522-frame
Oct 5, 2026
Merged

pablogsal merged 5 commits into
python:mainfrom
deadlovelll:gh-158522-frame

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fix truncated stack for a task whose coroutine recurses

For more details see gh-158522

Comment thread Modules/_remote_debugging/asyncio.c Outdated
Comment thread Lib/test/test_external_inspection.py Outdated
Comment thread Misc/NEWS.d/next/Library/2026-09-30-20-09-46.gh-issue-158522.L6j7tU.rst Outdated
@maurycy

maurycy commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Some non-blocking nits; LGreatTM

deadlovelll and others added 3 commits October 5, 2026 11:28

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frame-address boundary fixes recursive coroutine stacks without changing the debug-offset layout. The regression reproduces the one-frame result without the fix and returns all four frames with it. I also tested this merged with current main: test_external_inspection and test_profiling pass (544 tests, 9 skipped).

The line-length nit is already addressed in the latest commit. LGTM.

@pablogsal
pablogsal merged commit 05302c0 into python:main Oct 5, 2026
55 checks passed
@bedevere-app

bedevere-app Bot commented Oct 5, 2026

Copy link
Copy Markdown

GH-158870 is a backport of this pull request to the 3.15 branch.

pablogsal added a commit that referenced this pull request Oct 5, 2026
pablogsal added a commit to pablogsal/cpython that referenced this pull request Oct 5, 2026
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.

3 participants