https://github.com/python/cpython/commit/5c4bb9b7f6a779351afcdd76f390c572b3c1dc06
commit: 5c4bb9b7f6a779351afcdd76f390c572b3c1dc06
branch: main
author: Kumar Aditya <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-09-15T15:39:15+01:00
summary:
gh-137992: fix `PyRefTracer_SetTracer` to start world before returning
(#138925)
fix deadlock in PyRefTracer_SetTracer
files:
M Objects/object.c
diff --git a/Objects/object.c b/Objects/object.c
index c9bcc0c7b09e63..1f10c2531fead1 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -3292,6 +3292,7 @@ int PyRefTracer_SetTracer(PyRefTracer tracer, void *data)
{
if (_PyRuntime.ref_tracer.tracer_func != NULL) {
_PyReftracerTrack(NULL, PyRefTracer_TRACKER_REMOVED);
if (PyErr_Occurred()) {
+ _PyEval_StartTheWorldAll(&_PyRuntime);
return -1;
}
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]