gh-158522: Fix truncated stack for a task whose coroutine recurses - #158526
Merged
Merged
Conversation
maurycy
reviewed
Oct 5, 2026
Contributor
|
Some non-blocking nits; LGreatTM |
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
…6j7tU.rst Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
pablogsal
approved these changes
Oct 5, 2026
pablogsal
left a comment
Member
There was a problem hiding this comment.
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.
|
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
…coroutine recurses (pythonGH-158526) (python#158870)" This reverts commit a904b39.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix truncated stack for a task whose coroutine recurses
For more details see gh-158522