Title: Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure · Issue #150374 · python/cpython · GitHub
Open Graph Title: Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure · Issue #150374 · python/cpython
X Title: Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure · Issue #150374 · python/cpython
Description: 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...
Open Graph Description: 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("...
X Description: 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(&...
Opengraph URL: https://github.com/python/cpython/issues/150374
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Double release of import lock in _PyImport_LoadLazyImportTstate on PySet_Add failure","articleBody":"# Bug report\n\n### Bug description:\n\n# import.c:double lock release\n\n_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\").\n\nThis is a sub-issue of https://github.com/python/cpython/issues/146102 with [gist details](https://gist.github.com/devdanzin/432d9af1a8833bef53bc9ae342310622)\n\n\n\n\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-150376\n* gh-150378\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/lpyu001","@type":"Person","name":"lpyu001"},"datePublished":"2026-05-25T07:28:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/150374/cpython/issues/150374"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a34d03a-0d90-1697-88b4-f92e35a6ac37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1C8:12149B:771E7A:A9858F:6A5102FB |
| html-safe-nonce | e7b2c9acfaf6614cda7f12497885ea0da068f16e2ab135ec8417e4c891f82d5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUM4OjEyMTQ5Qjo3NzFFN0E6QTk4NThGOjZBNTEwMkZCIiwidmlzaXRvcl9pZCI6IjI4MzU1MTQxMTA0MDUzMTMyNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6fb92e33051afbed061840ec6250e9b87f401eb76a5cae1ef19d3f701d853df |
| hovercard-subject-tag | issue:4515121642 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150374/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f8fe416540eb0063e6536b3c48ab66bec81ec979da9ff6cf0c910b026cf5144/python/cpython/issues/150374 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f8fe416540eb0063e6536b3c48ab66bec81ec979da9ff6cf0c910b026cf5144/python/cpython/issues/150374 |
| og:image:alt | 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("... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpyu001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width