Skip to content

Forking in a thread raises RuntimeError #51491

@csernazs

Description

@csernazs
mannequin
BPO 7242
Nosy @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann
Files
  • thread_test.py: A test demonstrating the issue.
  • patch_1.diff: A possible fix for this issue created for python 2.6.4.
  • patch_2.diff: Patch re-initializing import_lock on all platforms after fork().
  • thread_unittest.py: Unittest for the patch
  • 7242_unittest.diff: Unit test that tests the issue
  • issue7242-gps01.diff: update of patch_2 + thread_unittest
  • 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 = 'https://github.com/gpshead'
    closed_at = <Date 2010-03-01.04:41:35.268>
    created_at = <Date 2009-10-30.10:58:01.329>
    labels = ['extension-modules', 'type-bug']
    title = 'Forking in a thread raises RuntimeError'
    updated_at = <Date 2010-12-18.16:55:12.147>
    user = 'https://github.com/csernazs'

    bugs.python.org fields:

    activity = <Date 2010-12-18.16:55:12.147>
    actor = 'Oren_Held'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2010-03-01.04:41:35.268>
    closer = 'gregory.p.smith'
    components = ['Extension Modules']
    creation = <Date 2009-10-30.10:58:01.329>
    creator = 'csernazs'
    dependencies = []
    files = ['15232', '15247', '16011', '16378', '16381', '16395']
    hgrepos = []
    issue_num = 7242
    keywords = ['patch']
    message_count = 26.0
    messages = ['94701', '94702', '94704', '94765', '94820', '94822', '94832', '95075', '98148', '98211', '98287', '98299', '98335', '99202', '100090', '100100', '100143', '100144', '100171', '100200', '100204', '100211', '100231', '100233', '100245', '124294']
    nosy_count = 9.0
    nosy_names = ['loewis', 'twouters', 'gregory.p.smith', 'csernazs', 'pitrou', 'doughellmann', 'dagobert', 'Oren_Held', 'jednaszewski']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue7242'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions