Skip to content

queue.Queue() is not reentrant, so signals and GC can cause deadlocks #59181

@JohanAR

Description

@JohanAR
mannequin
BPO 14976
Nosy @gvanrossum, @tim-one, @rhettinger, @gpshead, @ncoghlan, @pitrou, @serhiy-storchaka, @1st1, @applio
PRs
  • bpo-14976: Reentrant simple queue #3346
  • Files
  • queue_deadlock.py: signal hander reading/writing a queue
  • queue_sendint.c: send 2 signals to specified process in rapid succession
  • queuebug2.py: gc-based-queue-problem.py
  • q_reentrancy.patch
  • 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-15.23:27:50.989>
    created_at = <Date 2012-06-01.08:43:03.911>
    labels = ['3.7', 'type-bug', 'library']
    title = 'queue.Queue() is not reentrant, so signals and GC can cause deadlocks'
    updated_at = <Date 2018-01-17.01:04:26.008>
    user = 'https://bugs.python.org/JohanAR'

    bugs.python.org fields:

    activity = <Date 2018-01-17.01:04:26.008>
    actor = 'gregory.p.smith'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-15.23:27:50.989>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2012-06-01.08:43:03.911>
    creator = 'JohanAR'
    dependencies = []
    files = ['25786', '25787', '46806', '47092']
    hgrepos = []
    issue_num = 14976
    keywords = ['patch']
    message_count = 51.0
    messages = ['162062', '162065', '162069', '162076', '211436', '275181', '275377', '275404', '275421', '275485', '291764', '300421', '300422', '300455', '300478', '300489', '300491', '300499', '300504', '300505', '300509', '300510', '300511', '300532', '300567', '300574', '300575', '300577', '300581', '300723', '300825', '301170', '301173', '301175', '301176', '301207', '301299', '301321', '301322', '301378', '301379', '301380', '301383', '301386', '301409', '310014', '310025', '310026', '310109', '310111', '310125']
    nosy_count = 15.0
    nosy_names = ['gvanrossum', 'tim.peters', 'rhettinger', 'gregory.p.smith', 'ncoghlan', 'pitrou', 'zzzeek', 'python-dev', 'sbt', 'serhiy.storchaka', 'JohanAR', 'yselivanov', 'itamarst', 'davin', 'Catalin Patulea']
    pr_nums = ['3346']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14976'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard 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