0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 03:01:36 +01:00
cpython/Misc/NEWS.d/next
Sam Gross 4b63cd170e
gh-122527: Fix a crash on deallocation of PyStructSequence (GH-122577)
The `PyStructSequence` destructor would crash if it was deallocated after
its type's dictionary was cleared by the GC, because it couldn't compute
the "real size" of the instance. This could occur with relatively
straightforward code in the free-threaded build or with a reference
cycle involving the type in the default build, due to differing orders
in which `tp_clear()` was called.

Account for the non-sequence fields in `tp_basicsize` and use that,
along with `Py_SIZE()`, to compute the "real" size of a
`PyStructSequence` in the dealloc function. This avoids the accesses to
the type's dictionary during dealloc, which were unsafe.
2024-08-02 18:11:44 +02:00
..
Build gh-121996: Introduce --disable-safety and --enable-slower-safety options (#122054) 2024-07-23 09:22:04 +09:00
C API gh-116622: Fix testPyObjectPrintOSError on Android (#122487) 2024-07-31 08:21:43 +08:00
C_API gh-89364: Export PySignal_SetWakeupFd() function (#121537) 2024-07-10 15:47:08 +02:00
Core and Builtins gh-122445: populate only modified fields in __static_attributes__ (#122446) 2024-08-02 15:40:42 +01:00
Core_and_Builtins gh-122527: Fix a crash on deallocation of PyStructSequence (GH-122577) 2024-08-02 18:11:44 +02:00
Documentation gh-117765: Improve documentation for mocker.patch.dict (#121755) 2024-07-15 07:14:17 +00:00
IDLE gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605) 2024-08-01 23:02:43 -04:00
Library gh-122334: Fix crash when importing ssl after re-initialization (#122481) 2024-08-02 19:06:20 +05:30
macOS
Security gh-122133: Authenticate socket connection for socket.socketpair() fallback (GH-122134) 2024-07-29 14:44:35 -07:00
Tests gh-112301: Compiler warning management tooling (#121730) 2024-07-27 09:57:44 +00:00
Tools-Demos
Windows