diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-07-05 18:52:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 18:52:33 (GMT) |
commit | 5e24c80b948da6995990296cf262d9eae265e8ec (patch) | |
tree | ca0c20c8012eea7e14d34c7f1488587b88977b05 /Modules | |
parent | fd34bfe48444fdb22ff1ae78941cf621854b351f (diff) | |
download | cpython-5e24c80b948da6995990296cf262d9eae265e8ec.zip cpython-5e24c80b948da6995990296cf262d9eae265e8ec.tar.gz cpython-5e24c80b948da6995990296cf262d9eae265e8ec.tar.bz2 |
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH-94511) (#94579)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_lsprof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 703067c..8d754aa 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -744,7 +744,7 @@ profiler_dealloc(ProfilerObject *op) if (op->flags & POF_ENABLED) { PyThreadState *tstate = PyThreadState_GET(); if (_PyEval_SetProfile(tstate, NULL, NULL) < 0) { - PyErr_WriteUnraisable((PyObject *)op); + _PyErr_WriteUnraisableMsg("When destroying _lsprof profiler", NULL); } } |