Skip to content

Potential deadlock in concurrent futures when garbage collection occurs during Queue.get #65208

@simonjagoe

Description

@simonjagoe
BPO 21009
Nosy @gpshead, @brianquinlan, @mdickinson, @pitrou, @applio
Superseder
  • bpo-32576: concurrent.futures.thread deadlock due to Queue in weakref callback
  • Files
  • executor-hang.py: Script exercising hang
  • executor-hang-faulthandler.txt
  • 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 2018-01-17.22:03:30.250>
    created_at = <Date 2014-03-21.15:47:26.814>
    labels = ['type-bug', 'library']
    title = 'Potential deadlock in concurrent futures when garbage collection occurs during Queue.get'
    updated_at = <Date 2018-04-10.05:47:26.678>
    user = 'https://bugs.python.org/simonjagoe'

    bugs.python.org fields:

    activity = <Date 2018-04-10.05:47:26.678>
    actor = 'devurandom'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-17.22:03:30.250>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2014-03-21.15:47:26.814>
    creator = 'simon.jagoe'
    dependencies = []
    files = ['34551', '47132']
    hgrepos = []
    issue_num = 21009
    keywords = []
    message_count = 10.0
    messages = ['214380', '215972', '274591', '275413', '275414', '275424', '301168', '301811', '310207', '310212']
    nosy_count = 9.0
    nosy_names = ['gregory.p.smith', 'bquinlan', 'mark.dickinson', 'pitrou', 'devurandom', 'simon.jagoe', 'Chris.Farrow', 'davin', 'Patrik Dufresne']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'patch review'
    status = 'closed'
    superseder = '32576'
    type = 'behavior'
    url = 'https://bugs.python.org/issue21009'
    versions = ['Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions