Skip to content

race condition in threading._newname() #56075

@PeterSaveliev

Description

@PeterSaveliev
BPO 11866
Nosy @rhettinger, @amauryfa, @pitrou, @bitdancer
Files
  • thread_test.py: simple test python script that illustrates _newname() race
  • newname_race_fix.patch: race condition fix (itertools, w/o locking)
  • 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/rhettinger'
    closed_at = <Date 2014-10-04.21:50:27.904>
    created_at = <Date 2011-04-18.11:29:02.372>
    labels = ['type-bug', 'library']
    title = 'race condition in threading._newname()'
    updated_at = <Date 2014-10-04.21:50:27.900>
    user = 'https://bugs.python.org/PeterSaveliev'

    bugs.python.org fields:

    activity = <Date 2014-10-04.21:50:27.900>
    actor = 'r.david.murray'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2014-10-04.21:50:27.904>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2011-04-18.11:29:02.372>
    creator = 'Peter.Saveliev'
    dependencies = []
    files = ['21704', '21866']
    hgrepos = []
    issue_num = 11866
    keywords = ['patch']
    message_count = 10.0
    messages = ['133963', '135004', '135019', '141990', '141994', '142015', '142016', '169656', '228498', '228499']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'amaury.forgeotdarc', 'pitrou', 'r.david.murray', 'python-dev', 'Peter.Saveliev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue11866'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    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