Title: Fatal Python error from `warnings._release_lock()` · Issue #129766 · python/cpython · GitHub
Open Graph Title: Fatal Python error from `warnings._release_lock()` · Issue #129766 · python/cpython
X Title: Fatal Python error from `warnings._release_lock()` · Issue #129766 · python/cpython
Description: Crash report What happened? Exposing the mutex used by the _warnings module in #128386 has made it possible to abort the interpreter by calling warnings._release_lock(): import warnings warnings._release_lock() Error message: Fatal Pytho...
Open Graph Description: Crash report What happened? Exposing the mutex used by the _warnings module in #128386 has made it possible to abort the interpreter by calling warnings._release_lock(): import warnings warnings._r...
X Description: Crash report What happened? Exposing the mutex used by the _warnings module in #128386 has made it possible to abort the interpreter by calling warnings._release_lock(): import warnings warnings._r...
Opengraph URL: https://github.com/python/cpython/issues/129766
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fatal Python error from `warnings._release_lock()`","articleBody":"# Crash report\n\n### What happened?\n\nExposing the mutex used by the `_warnings` module in https://github.com/python/cpython/pull/128386 has made it possible to abort the interpreter by calling `warnings._release_lock()`:\n\n```python\nimport warnings\nwarnings._release_lock()\n```\n\nError message:\n```\nFatal Python error: _PyRecursiveMutex_Unlock: unlocking a recursive mutex that is not owned by the current thread\nPython runtime state: initialized\n\nCurrent thread 0x0000718eb9295740 (most recent call first):\n File \"\u003cstring\u003e\", line 1 in \u003cmodule\u003e\nAborted (core dumped)\n```\n\nFound using [fusil](https://github.com/devdanzin/fusil) by @vstinner.\n\n### CPython versions tested on:\n\nCPython main branch, 3.14\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.0a4+ (heads/main:e1006ce1de, Feb 6 2025, 17:22:01) [GCC 13.3.0]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-129771\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2025-02-07T03:31:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/129766/cpython/issues/129766"}
| 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:be2f2ad8-5a19-7df9-a9c3-d7fa9bc0c54a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8518:14F0B0:DD95EC:12A85F2:6A532A31 |
| html-safe-nonce | 3a2913210b4c91e4e6b520eb290766f9048faa74e8fd48f61e5b893558d6bca9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTE4OjE0RjBCMDpERDk1RUM6MTJBODVGMjo2QTUzMkEzMSIsInZpc2l0b3JfaWQiOiI0NjE0NTg2MjA1NDY3NzgxNjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 008a4ccbefe5472630dd2ad28a1cf41c9c67e6fabacf24ff003b6ca2c7f7dcd7 |
| hovercard-subject-tag | issue:2837149808 |
| 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/129766/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf8141cc4af236cf78591789632684ac97e5c030c34c46cc8d95d16aa41dfd2a/python/cpython/issues/129766 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf8141cc4af236cf78591789632684ac97e5c030c34c46cc8d95d16aa41dfd2a/python/cpython/issues/129766 |
| og:image:alt | Crash report What happened? Exposing the mutex used by the _warnings module in #128386 has made it possible to abort the interpreter by calling warnings._release_lock(): import warnings warnings._r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devdanzin |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width