0
0
mirror of https://github.com/python/cpython.git synced 2024-11-25 09:39:56 +01:00
cpython/Misc/NEWS.d
Jeremy Maitin-Shepard 8cc5aa47ee
gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805)
Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon threads (our long standing mis-feature) but could also be threads spawned by extension modules that then try to call into Python. This marks the `PyThread_exit_thread` public C API as deprecated as there is no plausible safe way to accomplish that on any supported platform in the face of things like C++ code with finalizers anywhere on a thread's stack. Doing this was the least bad option.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-10-02 09:17:49 -07:00
..
next gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) 2024-10-02 09:17:49 -07:00
3.5.0.rst
3.5.0a1.rst
3.5.0a2.rst
3.5.0a3.rst
3.5.0a4.rst
3.5.0b1.rst
3.5.0b2.rst
3.5.0b3.rst
3.5.0b4.rst
3.5.0rc1.rst
3.5.0rc2.rst
3.5.0rc3.rst
3.5.0rc4.rst
3.5.1.rst
3.5.1rc1.rst
3.5.2.rst
3.5.2rc1.rst
3.5.3.rst
3.5.3rc1.rst
3.5.4.rst
3.5.4rc1.rst
3.5.5.rst
3.5.5rc1.rst
3.6.0.rst
3.6.0a1.rst
3.6.0a2.rst
3.6.0a3.rst
3.6.0a4.rst
3.6.0b1.rst
3.6.0b2.rst
3.6.0b3.rst
3.6.0b4.rst
3.6.0rc1.rst
3.6.0rc2.rst
3.6.1.rst
3.6.1rc1.rst
3.6.2.rst
3.6.2rc1.rst
3.6.2rc2.rst
3.6.3.rst
3.6.3rc1.rst
3.6.4.rst
3.6.4rc1.rst
3.6.5.rst
3.6.5rc1.rst
3.6.6.rst
3.6.6rc1.rst
3.7.0.rst
3.7.0a1.rst
3.7.0a2.rst
3.7.0a3.rst
3.7.0a4.rst
3.7.0b1.rst
3.7.0b2.rst
3.7.0b3.rst
3.7.0b4.rst
3.7.0b5.rst
3.7.0rc1.rst
3.8.0a1.rst
3.8.0a2.rst
3.8.0a3.rst
3.8.0a4.rst
3.8.0b1.rst
3.9.0a1.rst
3.9.0a2.rst
3.9.0a3.rst
3.9.0a4.rst
3.9.0a5.rst
3.9.0a6.rst
3.9.0b1.rst
3.10.0a1.rst
3.10.0a2.rst
3.10.0a3.rst
3.10.0a4.rst
3.10.0a5.rst
3.10.0a6.rst
3.10.0a7.rst
3.10.0b1.rst
3.11.0a1.rst
3.11.0a2.rst
3.11.0a3.rst
3.11.0a4.rst
3.11.0a5.rst
3.11.0a6.rst
3.11.0a7.rst
3.11.0b1.rst
3.12.0a1.rst
3.12.0a2.rst
3.12.0a3.rst
3.12.0a4.rst
3.12.0a5.rst
3.12.0a6.rst
3.12.0a7.rst
3.12.0b1.rst
3.13.0a1.rst
3.13.0a2.rst
3.13.0a3.rst
3.13.0a4.rst
3.13.0a5.rst
3.13.0a6.rst
3.13.0b1.rst