-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
sys.settrace and sys.setprofile are not re-entrant #94510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Jul 2, 2022
ambv
added a commit
that referenced
this issue
Jul 5, 2022
GH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv
pushed a commit
to ambv/cpython
that referenced
this issue
Jul 5, 2022
…d sys.settrace (pythonGH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 40d81fd) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
ambv
pushed a commit
to ambv/cpython
that referenced
this issue
Jul 5, 2022
…d sys.settrace (pythonGH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 40d81fd) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Jul 5, 2022
…d sys.settrace (pythonGH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl>. (cherry picked from commit 40d81fd) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal
added a commit
that referenced
this issue
Jul 5, 2022
ambv
added a commit
that referenced
this issue
Jul 5, 2022
This is now fixed in 3.10 - 3.12. Thanks, Pablo! ✨ 🍰 ✨ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We should raise in this case.
The text was updated successfully, but these errors were encountered: