Skip to content

threading module can deadlock after fork #39802

@mikemccand

Description

@mikemccand
BPO 874900
Nosy @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp
Files
  • fork_threading.py: demo script
  • fork-and-threading5-gps01.patch: fixes fork-and-thread4, pitrou's fork_threading.py works with this patch.
  • threading-874900-improvement-gps01.diff: is this an improvement? is it needed?
  • forkthread.patch
  • forkthread2.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 2008-09-06.23:04:57.802>
    created_at = <Date 2004-01-11.14:28:06.000>
    labels = ['interpreter-core', 'type-bug', 'release-blocker']
    title = 'threading module can deadlock after fork'
    updated_at = <Date 2011-07-11.06:04:45.798>
    user = 'https://bugs.python.org/mikemccand'

    bugs.python.org fields:

    activity = <Date 2011-07-11.06:04:45.798>
    actor = 'nirai'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-09-06.23:04:57.802>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2004-01-11.14:28:06.000>
    creator = 'mikemccand'
    dependencies = []
    files = ['9288', '10889', '10932', '11378', '11379']
    hgrepos = []
    issue_num = 874900
    keywords = ['patch', 'needs review']
    message_count = 54.0
    messages = ['60453', '60454', '60455', '61693', '61695', '69423', '69437', '69466', '69467', '69468', '69470', '69476', '69477', '69478', '69479', '69492', '69512', '69549', '69550', '69569', '69601', '69603', '69607', '69696', '69702', '69784', '69793', '69795', '69825', '69867', '69868', '69878', '69888', '69889', '69893', '69894', '69928', '70174', '71297', '71298', '71301', '71315', '71818', '71824', '72546', '72549', '72550', '72551', '72552', '72591', '72716', '72717', '72721', '72727']
    nosy_count = 10.0
    nosy_names = ['gregory.p.smith', 'jcea', 'mikemccand', 'tzot', 'amaury.forgeotdarc', 'Rhamphoryncus', 'pitrou', 'benjamin.peterson', 'jnoller', 'bobbyi']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue874900'
    versions = ['Python 3.0']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions