Skip to content

Use-after-free crash if multiple interpreters import asyncio module #84474

@jquesnelle

Description

@jquesnelle
BPO 40294
Nosy @vstinner, @miss-islington, @shihai1991, @jquesnelle
PRs
  • bpo-40294: Fix use-after-free in _asynciomodule.c when module is loaded/unloaded multiple times #19542
  • [3.8] bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) #19565
  • Files
  • main.c: Reproduction C API program
  • 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 2020-04-17.02:42:48.843>
    created_at = <Date 2020-04-15.17:32:05.638>
    labels = ['expert-C-API', '3.8', '3.9', 'type-crash']
    title = 'Use-after-free crash if multiple interpreters import asyncio module'
    updated_at = <Date 2020-04-17.02:42:48.842>
    user = 'https://github.com/jquesnelle'

    bugs.python.org fields:

    activity = <Date 2020-04-17.02:42:48.842>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-17.02:42:48.843>
    closer = 'vstinner'
    components = ['C API']
    creation = <Date 2020-04-15.17:32:05.638>
    creator = 'jquesnelle'
    dependencies = []
    files = ['49064']
    hgrepos = []
    issue_num = 40294
    keywords = ['patch']
    message_count = 9.0
    messages = ['366531', '366532', '366598', '366636', '366637', '366638', '366639', '366640', '366641']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'miss-islington', 'shihai1991', 'jquesnelle']
    pr_nums = ['19542', '19565']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue40294'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of life3.9 (EOL)end of lifetopic-C-APItype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions