-
Notifications
You must be signed in to change notification settings - Fork 19
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
Compiler Crash "Assertion !AS->hasBoundsExpr() failed" #525
Comments
Comment from @AnnaKornfeldSimpson: https://github.com/AnnaKornfeldSimpson/parson/tree/crashRepro Terminal output: |
Comment from @dtarditi: Yes, this is a compiler bug. The following small piece of code will trigger this crash:
It looks like we are accidentally walking a bounds expression that the compiler has inferred to use when implementing the dynamic check. We end up traversing the IR for the expression object->names[I] twice, which triggers the assert. |
This issue was copied from checkedc/checkedc-clang#526
I made a change that I was certain was incorrect, but I wanted to see what guidance I would get from the error message. Instead, it seems to have been sufficiently unpredictable as to crash the compiler.
It prints the error message including
Assertion !AS->hasBoundsExpr() failed
then pauses for several seconds before printing the stack trace.Attached are the information printed in the terminal window, and files specified in the bug report instructions (remove extra ".txt" extension after downloading).
clangCrashTerminalOutput.txt
parson-3e2b4f.c.txt
parson-3e2b4f.sh.txt
tests-c3dc85.c.txt
The text was updated successfully, but these errors were encountered: