Skip to content

asyncio doesn't warn if a task is destroyed during its execution #65362

Closed
@RichardKiss

Description

@RichardKiss
BPO 21163
Nosy @gvanrossum, @pitrou, @vstinner, @giampaolo, @1st1, @gvanrossum, @mpaolini
Files
  • asyncio-gc-issue.py
  • log_destroyed_pending_task.patch
  • dont_log_pending.patch
  • test2.py: script showing gc collecting unreferenced asyncio tasks
  • issue_22163_patch_0.diff: hold references to all waited futures in task
  • test3.py: script showing real-life-like example gc collecting unreferenced asyncio tasks
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-07-16.16:57:08.632>
    created_at = <Date 2014-04-05.21:10:31.905>
    labels = ['type-bug', 'library', 'expert-asyncio']
    title = "asyncio doesn't warn if a task is destroyed during its execution"
    updated_at = <Date 2014-09-20.21:15:28.592>
    user = 'https://bugs.python.org/richardkiss'

    bugs.python.org fields:

    activity = <Date 2014-09-20.21:15:28.592>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-07-16.16:57:08.632>
    closer = 'vstinner'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2014-04-05.21:10:31.905>
    creator = 'richard.kiss'
    dependencies = []
    files = ['34741', '35691', '35781', '36405', '36408', '36413']
    hgrepos = []
    issue_num = 21163
    keywords = ['patch']
    message_count = 37.0
    messages = ['215633', '215638', '215639', '215640', '215642', '215646', '215647', '220986', '221010', '221096', '221375', '221387', '221470', '221495', '221503', '221508', '221573', '221574', '221578', '221580', '221956', '221957', '222699', '223230', '223232', '223233', '225493', '225497', '225498', '225499', '225500', '225504', '225520', '225522', '227173', '227176', '227177']
    nosy_count = 10.0
    nosy_names = ['gvanrossum', 'pitrou', 'vstinner', 'giampaolo.rodola', 'python-dev', 'yselivanov', 'Guido.van.Rossum', 'richard.kiss', 'Richard.Kiss', 'mpaolini']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21163'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions