-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Raising during line tracing events causes assertion failures when opcode tracing is enabled #96864
Comments
Oof, thanks for the report. I'm looking at it now. @pablogsal, marking as a 3.11 release blocker until I can find out if the assertion failures in debug mode are new or not. |
Minimal reproducer: import sys
def trace(frame, event, arg):
if event == "line":
raise Exception('BOOM!')
frame.f_trace_opcodes = True
return trace
def main():
pass
sys.settrace(trace)
main() Verified that 3.10, 3.11, and main all abort when compiled in debug mode. In release mode, 3.10 raises Either way, I'll start working on fixes for all three. |
opcode
/line
tracing events causes assertion failures
opcode
/line
tracing events causes assertion failuresline
tracing events causes assertion failures when opcode tracing is enabled
line
tracing events causes assertion failures when opcode tracing is enabled…nGH-96880) (cherry picked from commit c10e33a) Co-authored-by: Brandt Bucher <[email protected]>
(cherry picked from commit c10e33a) Co-authored-by: Brandt Bucher <[email protected]>
…pythonGH-96880). (cherry picked from commit c10e33a) Co-authored-by: Brandt Bucher <[email protected]>
Thanks again for the report! |
Example:
3.12.0a0 (main:e47b96c44f) crashes with the following message:
Stack trace:
3.10.7 prints this traceback:
OS version: Linux 5.16.9-arch1-1 x86_64.
The text was updated successfully, but these errors were encountered: