Skip to content

fix for bpo-36402 (threading._shutdown() race condition) causes reference leak #81969

Description

@akruis
mannequin
BPO 37788
Nosy @mdickinson, @jaraco, @pitrou, @vstinner, @vadmium, @koobs, @akruis, @pablogsal, @miss-islington, @shihai1991, @haoren3696, @ViktorPegy, @victorvorobev
PRs
  • bpo-37788: fix reference leak caused by threading._shutdown_locks #15175
  • bpo-37788: Fix a reference leak if a thread is not joined #15228
  • [3.7] bpo-37788: Fix a reference leak if a thread is not joined (GH-15228) #15336
  • [3.8] bpo-37788: Fix a reference leak if a thread is not joined (GH-15228) #15337
  • Revert "bpo-37788: Fix a reference leak if a thread is not joined" #15338
  • [3.7] bpo-37788: Fix continuous memory leak occurs when multiple subthreads which are not joined are started. #25148
  • bpo-37788: Fix a reference leak if a thread is not joined. #25226
  • bpo-37788: Fix reference leak when Thread is never joined #26103
  • [3.10] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) #26138
  • [3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) #26142
  • bpo-37788: Fix reference leak when Thread is never joined #27473
  • [3.8] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) #28239
  • Files
  • threading-leak-test-case.diff
  • 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-05-15.09:53:03.268>
    created_at = <Date 2019-08-07.16:22:52.588>
    labels = ['3.11', 'library', '3.9', '3.10', 'performance']
    title = 'fix for bpo-36402 (threading._shutdown() race condition) causes reference leak'
    updated_at = <Date 2021-09-08.12:30:51.049>
    user = 'https://github.com/akruis'

    bugs.python.org fields:

    activity = <Date 2021-09-08.12:30:51.049>
    actor = 'victorvorobev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-15.09:53:03.268>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2019-08-07.16:22:52.588>
    creator = 'anselm.kruis'
    dependencies = []
    files = ['48534']
    hgrepos = []
    issue_num = 37788
    keywords = ['patch', '3.7regression']
    message_count = 23.0
    messages = ['349173', '349225', '349973', '349977', '349980', '354460', '354463', '358641', '359477', '359479', '371866', '380391', '388606', '388609', '388611', '388618', '389671', '389696', '390118', '390817', '393709', '393710', '394307']
    nosy_count = 16.0
    nosy_names = ['mark.dickinson', 'jaraco', 'pitrou', 'vstinner', 'python-dev', 'martin.panter', 'koobs', 'anselm.kruis', 'pablogsal', 'miss-islington', 'shihai1991', 'Zhipeng Xie', 'krypticus', 'Arkady M', 'ViktorPegy', 'victorvorobev']
    pr_nums = ['15175', '15228', '15336', '15337', '15338', '25148', '25226', '26103', '26138', '26142', '27473', '28239']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue37788'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifeperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions