Skip to content

Race condition in Thread._wait_for_tstate_lock() #89437

@vstinner

Description

@vstinner
BPO 45274
Nosy @serhiy-storchaka, @eryksun, @pablogsal, @maggyero, @miss-islington, @bensimner, @gaborbernat
PRs
  • bpo-45274: Fix Thread._wait_for_tstate_lock() race condition #28532
  • [3.9] bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532) #28579
  • [3.10] bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532) #28580
  • bpo-45274: Fix one race condition Thread.join #31290
  • Files
  • threading_bug.patch
  • threading_bug.py
  • 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 2021-09-27.12:53:47.975>
    created_at = <Date 2021-09-23.20:13:09.454>
    labels = ['library', '3.9', '3.10', '3.11']
    title = 'Race condition in Thread._wait_for_tstate_lock()'
    updated_at = <Date 2022-03-12.00:31:02.958>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-03-12.00:31:02.958>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-27.12:53:47.975>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2021-09-23.20:13:09.454>
    creator = 'vstinner'
    dependencies = []
    files = ['50299', '50300']
    hgrepos = []
    issue_num = 45274
    keywords = ['patch']
    message_count = 12.0
    messages = ['402523', '402524', '402532', '402535', '402540', '402542', '402597', '402704', '402706', '402707', '402710', '402718']
    nosy_count = 7.0
    nosy_names = ['serhiy.storchaka', 'eryksun', 'pablogsal', 'maggyero', 'miss-islington', 'bjs', 'gaborjbernat']
    pr_nums = ['28532', '28579', '28580', '31290']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45274'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesstdlibPython modules in the Lib dir

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions