You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sys.settrace and sys.setprofile are not re-entrant #94510
The code that sets trace and profile functions is not re-entrant. We are leaking objects if removing a profile/trace functions triggers a re-entrant call.
Activity
[-]sys.settrace is not re-entrant[/-][+]sys.settrace and sys.setprofile are not re-entrant[/+]pythongh-94510: Raise on re-entrant calls to sys.setprofile and sys.s…
gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (
[3.11] pythongh-94510: Raise on re-entrant calls to sys.setprofile an…
[3.10] pythongh-94510: Raise on re-entrant calls to sys.setprofile an…
[3.10] pythongh-94510: Raise on re-entrant calls to sys.setprofile an…
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syss…
[3.11] gh-94510: Raise on re-entrant calls to sys.setprofile and sys.…
ambv commentedon Jul 5, 2022
This is now fixed in 3.10 - 3.12. Thanks, Pablo! ✨ 🍰 ✨
vstinner commentedon Oct 14, 2022
This change introduce a randomly failure in test_import: issue #98257.
I propose to make the function reentrant, rather than detecting and rejecting reentrant call: PR #98258.