You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fatal Python error from warnings._release_lock() #129766
Exposing the mutex used by the _warnings module in #128386 has made it possible to abort the interpreter by calling warnings._release_lock():
importwarningswarnings._release_lock()
Error message:
Fatal Python error: _PyRecursiveMutex_Unlock: unlocking a recursive mutex that is not owned by the current thread
Python runtime state: initialized
Current thread 0x0000718eb9295740 (most recent call first):
File "<string>", line 1 in <module>
Aborted (core dumped)
Activity
devdanzin commentedon Feb 7, 2025
cc @nascheme and @kumaraditya303
sobolevn commentedon Feb 7, 2025
We should use
_PyRecursiveMutex_TryUnlockand raiseRuntimeErrorinstead, like in many other places.pythongh-129766: Fix crash on calling `warnings._release_lock` with n…
pythongh-129766: Fix crash on calling `warnings._release_lock` with n…
gh-129766: Fix crash on calling `warnings._release_lock` with no lock (…
sobolevn commentedon Feb 7, 2025
Fixed! Thanks for the report.