Skip to content

gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks - #159170

Merged
asvetlov merged 2 commits into
python:mainfrom
deadlovelll:gh-159168-pstree
Nov 2, 2026
Merged

asvetlov merged 2 commits into
python:mainfrom
deadlovelll:gh-159168-pstree

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fix RecursionError in asyncio pstree on a deep chain of tasks

See gh-159168

Comment thread Lib/asyncio/tools.py Resolved
Comment thread Lib/asyncio/tools.py Resolved
@asvetlov asvetlov added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 2, 2026
@asvetlov
asvetlov merged commit bb9d26d into python:main Nov 2, 2026
57 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @deadlovelll for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 2, 2026
@bedevere-app

bedevere-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

GH-161177 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 2, 2026
@asvetlov

asvetlov commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thanks, @deadlovelll!

asvetlov added a commit that referenced this pull request Nov 2, 2026
…n of tasks (GH-159170) (#161177)

* gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks (GH-159170)

* gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks

* Apply suggestions from code review

---------
(cherry picked from commit bb9d26d)

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>

* Use plain lineno in backported test_tools tests

3.14 has no LocationInfo helper; FrameInfo takes an int lineno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
asvetlov added a commit that referenced this pull request Nov 2, 2026
…n of tasks (GH-159170) (#161176)

gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks (GH-159170)

* gh-159168: Fix RecursionError in asyncio pstree on a deep chain of tasks

* Apply suggestions from code review

---------
(cherry picked from commit bb9d26d)

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
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