cpython/Modules/_remote_debugging
Miss Islington (bot) 4bb96fc239
[3.15] gh-159739: Avoid destroying a remote unwinder cache twice (GH-159982) (#160023)
In a free-threaded build, if allocating the thread-local bytecode cache fails after the code-object cache has been created, the initializer destroys the first cache and returns an error without clearing its pointer. Failed construction then invokes the unwinder's deallocator, which destroys the same cache again and can crash the profiling process instead of propagating `MemoryError`.
(cherry picked from commit b577a5403a)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
2026-10-21 11:53:05 -07:00
..
clinic [3.15] gh-149302: Fix incorrect docstring in RemoteUnwinder.get_all_awaited_by (GH-149312) (#158805) 2026-10-04 22:30:00 +01:00
_remote_debugging.h [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
asyncio.c [3.15] gh-159620: Fix remote asyncio stacks stopping at async generators (GH-159623) (GH-159654) 2026-10-17 23:37:58 +00:00
binary_io.h [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
binary_io_reader.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
binary_io_writer.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
code_objects.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
debug_offsets_validation.h [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
frame_cache.c [3.15] gh-151613: Fix remote debugging frame cache ABA (#152448) 2026-06-27 17:42:31 +00:00
frames.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
gc_stats.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
gc_stats.h
interpreters.c
module.c [3.15] gh-159739: Avoid destroying a remote unwinder cache twice (GH-159982) (#160023) 2026-10-21 11:53:05 -07:00
object_reading.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00
subprocess.c [3.15] gh-158893: Make os.strerror() thread-safe (#159120) 2026-10-10 22:08:49 +02:00
threads.c [3.15] Restore deferred backports for 3.15.1, including GH-158874 (#158882) 2026-10-11 15:42:59 +01:00