-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[analyzer] "non-static stackless VarRegion" crash #124975
Labels
clang:static analyzer
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
@llvm/issue-subscribers-clang-static-analyzer Author: None (wjristow)
The following code crashes the Clang Static Analyzer when built with assertions:
Specifically, using Clang 19.1.0:
FTR, with a non-assetions compiler, it gets a sensible warning from the analyzer:
Looking through history, I see it passed with llvm 9.0, and crashes beginning with llvm 10.0. |
Crashes in |
The case reduces into this: https://godbolt.org/z/GPceG9Pxq void top(int *p) {
if (p) {}
extern bool SkipCheck;
if (SkipCheck)
return;
*p = 4;
} |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:static analyzer
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
The following code crashes the Clang Static Analyzer when built with assertions:
Specifically, using Clang 19.1.0:
Godbolt link.
FTR, with a non-assetions compiler, it gets a sensible warning from the analyzer:
Looking through history, I see it passed with llvm 9.0, and crashes beginning with llvm 10.0.
The text was updated successfully, but these errors were encountered: