Deadlock in Py_EndInterpreter following bpo-1596321: Fix threading._shutdown() for the main thread #122517
Labels
3.9
only security fixes
3.10
only security fixes
3.11
only security fixes
topic-subinterpreters
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I have encountered a deadlock during subinterpreter shutdown after upgrading from Python 3.9.7 to 3.9.8. Git bisection reveals that #28589 ("Fix threading._shutdown() for the main thread (GH-28549)") is the culprit.
This is the gdp stacktrace for the only thread in Python code at the time of the deadlock:
I believe this could be the same issue described by GrahamDumpleton/mod_wsgi#730 and this commit is reverted in each version of Fedora Python e.g. for 3.12: fedora-python/cpython@4b35a8e. However, I have not been able to find an existing cpython report for the problem.
CPython versions tested on:
3.9, 3.10
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: