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
Incorrect line number calculated in traceback #93662
Comments
Originally noticed by @godlygeek |
Notice that if you change the input to be:
Then the line numbers and the tracebacks are correct (likely due to the difference in column offset):
|
May be related to #93249 |
It looks like the table is correct, but the parsing to get the line number is wrong. |
It's actually a bug in compiler front-end. It produces an instruction with |
Consider the following code:
If you execute this with 3.11.0a7 you get (correct traceback):
but on 3.11.0b1 you get:
Notice that the last line number for
_run_with_file_output
is wrong (255 instead of 6).Bisecting points at:
The text was updated successfully, but these errors were encountered: