GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure · Issue #150374 · python/cpython

Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure #150374

New issue
Copy link
New issue
Copy link
Closed
Closed
Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure#150374
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@lpyu001
lpyu001
opened on May 25, 2026
Issue body actions

Bug report

Bug description:

import.c:double lock release

_PyImport_LoadLazyImportTstate (line 3931): _PyImport_ReleaseLock called before goto error, then error path releases again → Py_FatalError("unlocking a recursive mutex not owned by current thread").

This is a sub-issue of #146102 with gist details

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

  • gh-150374:Fix double release of import lock in lazy import reification #150376
  • [3.15] gh-150374: Fix double release of import lock in lazy import reification (GH-150376) #150378

Activity

  1. lpyu001
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 25, 2026
  2. kumaraditya303
    added a commit that references this issue on May 25, 2026

    gh-150374: Fix double release of import lock in lazy import reificati…

    5498eba
  3. kumaraditya303
    closed this as completedon May 25, 2026
  4. kumaraditya303
    added a commit that references this issue on May 25, 2026

    [3.15] gh-150374: Fix double release of import lock in lazy import re…

    acd402e
  5. aisk
    added a parent issue on Jul 5, 2026
    • Umbrella issue: bugs found using cpython-review-toolkit #146102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.