Title: Asyncio debugging tools no longer work (`ps` and `pstree`) · Issue #143952 · python/cpython · GitHub
Open Graph Title: Asyncio debugging tools no longer work (`ps` and `pstree`) · Issue #143952 · python/cpython
X Title: Asyncio debugging tools no longer work (`ps` and `pstree`) · Issue #143952 · python/cpython
Description: Bug report Bug description: Since GH-142394 the asyncio debugging tools no longer work at all: ❯ ./python t.py ^Z [1]+ Stopped ./python t.py ❯ jobs -l [1]+ 873785 Stopped ./python t.py ❯ ./python -m asyncio ps 873785 |& tail -n 10 File "...
Open Graph Description: Bug report Bug description: Since GH-142394 the asyncio debugging tools no longer work at all: ❯ ./python t.py ^Z [1]+ Stopped ./python t.py ❯ jobs -l [1]+ 873785 Stopped ./python t.py ❯ ./python -...
X Description: Bug report Bug description: Since GH-142394 the asyncio debugging tools no longer work at all: ❯ ./python t.py ^Z [1]+ Stopped ./python t.py ❯ jobs -l [1]+ 873785 Stopped ./python t.py ❯ ./python -...
Opengraph URL: https://github.com/python/cpython/issues/143952
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Asyncio debugging tools no longer work (`ps` and `pstree`)","articleBody":"# Bug report\n\n### Bug description:\n\nSince GH-142394 the asyncio debugging tools no longer work at all:\n\n```bash\n❯ ./python t.py\n^Z\n[1]+ Stopped ./python t.py\n\n❯ jobs -l\n[1]+ 873785 Stopped ./python t.py\n\n❯ ./python -m asyncio ps 873785 |\u0026 tail -n 10\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 180, in build_task_table\n id2name, _, _ = _index(result)\n ~~~~~~^^^^^^^^\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 49, in _index\n internal_stack = [_format_stack_entry(frame) for frame in call_stack]\n ~~~~~~~~~~~~~~~~~~~^^^^^^^\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 30, in _format_stack_entry\n if elem.lineno == 0 and elem.filename == \"\":\n ^^^^^^^^^^^\nAttributeError: '_remote_debugging.FrameInfo' object has no attribute 'lineno'\n\n❯ ./python -m asyncio pstree 873785 |\u0026 tail -n 10\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 155, in build_async_tree\n id2name, awaits, task_stacks = _index(result)\n ~~~~~~^^^^^^^^\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 49, in _index\n internal_stack = [_format_stack_entry(frame) for frame in call_stack]\n ~~~~~~~~~~~~~~~~~~~^^^^^^^\n File \"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py\", line 30, in _format_stack_entry\n if elem.lineno == 0 and elem.filename == \"\":\n ^^^^^^^^^^^\nAttributeError: '_remote_debugging.FrameInfo' object has no attribute 'lineno'\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143954\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/johnslavik","@type":"Person","name":"johnslavik"},"datePublished":"2026-01-17T06:44:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/143952/cpython/issues/143952"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf9c86ff-1d08-f1de-de38-fed5e29a2169 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B972:15B1C2:7C29917:A303F8C:696DCC65 |
| html-safe-nonce | d1b644795b2e0a98ac5847283837cae121532ce032c0967fbc17fa0c94c9e3c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTcyOjE1QjFDMjo3QzI5OTE3OkEzMDNGOEM6Njk2RENDNjUiLCJ2aXNpdG9yX2lkIjoiNDI1MDE3MDAyMDA3MjM3NzQ0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 959761e8804792a0b23222fdbf114a3aeefd926a2aee65ff9e4ca2401a3eaeec |
| hovercard-subject-tag | issue:3824558615 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/143952/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad08cc0d0255fdd1ef05e7805f88fa84132682a68ab43d64d60a99c04055110f/python/cpython/issues/143952 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad08cc0d0255fdd1ef05e7805f88fa84132682a68ab43d64d60a99c04055110f/python/cpython/issues/143952 |
| og:image:alt | Bug report Bug description: Since GH-142394 the asyncio debugging tools no longer work at all: ❯ ./python t.py ^Z [1]+ Stopped ./python t.py ❯ jobs -l [1]+ 873785 Stopped ./python t.py ❯ ./python -... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnslavik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width