Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Asyncio debugging tools no longer work (ps andpstree) #143952

Closed
Labels
3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error
@johnslavik

Description

@johnslavik

Bug report

Bug description:

SinceGH-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"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 180,in build_task_table    id2name, _, _ = _index(result)~~~~~~^^^^^^^^  File"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 49,in _index    internal_stack = [_format_stack_entry(frame)forframein call_stack]~~~~~~~~~~~~~~~~~~~^^^^^^^  File"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 30,in _format_stack_entryif elem.lineno == 0 and elem.filename =="":       ^^^^^^^^^^^AttributeError:'_remote_debugging.FrameInfo' object has no attribute'lineno'❯ ./python -m asyncio pstree 873785|& tail -n 10  File"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 155,in build_async_tree    id2name, awaits, task_stacks = _index(result)~~~~~~^^^^^^^^  File"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 49,in _index    internal_stack = [_format_stack_entry(frame)forframein call_stack]~~~~~~~~~~~~~~~~~~~^^^^^^^  File"/home/bswck/Python/cpython/main/Lib/asyncio/tools.py", line 30,in _format_stack_entryif elem.lineno == 0 and elem.filename =="":       ^^^^^^^^^^^AttributeError:'_remote_debugging.FrameInfo' object has no attribute'lineno'

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp