-
-
Notifications
You must be signed in to change notification settings - Fork 29.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
Python/flowgraph.c:528: _Bool all_exits_have_lineno(basicblock *): Assertion `0' failed #114828
Comments
This simplified input compiles in 3.11 but now doesn't:
CC @carljm Gives:
|
…ythonGH-115139) (cherry picked from commit fedbf77) Co-authored-by: Carl Meyer <carl@oddbird.net>
…GH-115139) (#115140) gh-114828: Fix __class__ in class-scope inlined comprehensions (GH-115139) (cherry picked from commit fedbf77) Co-authored-by: Carl Meyer <carl@oddbird.net>
@iritkatriel The fix for the simplified case that results in the "unknown scope" crash is merged and backported. I'm not sure if there are other remaining issues here that can lead to the "all exits have lineno" assertion error mentioned in the title, so I'll leave this open, but remove my assignment. Thanks for the ping! |
The fuzzer is pretty good at finding them, so I think we can close this and I'll be back with a new bug in a day or two if it finds another path to that assert. |
@alex The issue with super was kind of accidentally discovered here - if it wasn't for the line number assertion, I think the fuzzer would not have found it, right? I'm guessing the fuzzer discards any code that doesn't compile, but here we had code that should have compiled (it did in 3.11). |
Yes, it currently ignores any exceptions: https://github.com/python/cpython/blob/main/Modules/_xxtestfuzz/fuzzer.c#L550-L553 One thing we could do is make it crash on Is there ever any non-bug reason for compile() to raise a systemerror? |
I doubt it. Sound like a good idea to treat SystemError as a problem. |
Great. Unless you're interested in working on it, I'll add it to my TODO list to add that check. |
…symtable.h (pythonGH-115143) (cherry picked from commit 8f0998e) Co-authored-by: Carl Meyer <carl@oddbird.net>
Crash report
What happened?
Reproducing code:
Crash:
cc: @iritkatriel
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: