-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
test_pdb crashes when run after test_sys_settrace #108976
Comments
These tests also occur in #108982, so this all may be symptoms of the same bug. |
I'm able to reduce the MRE: import sys
sys._getframe().f_trace_opcodes = True
breakpoint()
a = 1 It will bring up the pdb console, and you can just |
The crash is a bit tricky, and affects more than The fundamental reason was when I have a fix which simply checks if this case happens when opcode is requested from This might not be the best way to fix it, but it's clean and simple. If @markshannon has a better idea, I can do something different. |
…mization during callback. (pythonGH-109131)
This is fixed now, both in main and 3.12 |
Crash report
Just run two tests sequentially:
It is only reproducible in 3.12+.
Linked PRs
The text was updated successfully, but these errors were encountered: