]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143123: Protect against recursive tracer calls/finalization (GH-143126)
authorKen Jin <kenjin@python.org>
Wed, 14 Jan 2026 12:23:14 +0000 (20:23 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Jan 2026 12:23:14 +0000 (12:23 +0000)
commite370c8db52d8b0983158ba6261ab227d8158b8b4
tree1d6cab2c9836a40fa3b05a8c0fd13f41d66e4fab
parent6db952eae9591071eee1ecb279ac6aaa38052f52
gh-143123: Protect against recursive tracer calls/finalization (GH-143126)

* Stronger check for recursive traces

* Add a stop_tracing field

* Stop early when tracing exceptions
Include/internal/pycore_optimizer.h
Include/internal/pycore_tstate.h
Lib/test/test_capi/test_opt.py
Misc/NEWS.d/next/Core_and_Builtins/2025-12-23-23-36-41.gh-issue-143123.-51gt_.rst [new file with mode: 0644]
Python/bytecodes.c
Python/ceval.c
Python/ceval_macros.h
Python/generated_cases.c.h
Python/optimizer.c