Open Quuxplusone opened 4 years ago
Bugzilla Link | PR44998 |
Status | NEW |
Importance | P normal |
Reported by | Nicolás Alvarez (nicolas.alvarez@gmail.com) |
Reported on | 2020-02-22 19:39:35 -0800 |
Last modified on | 2020-02-26 06:44:17 -0800 |
Version | trunk |
Hardware | PC Linux |
CC | dcoughlin@apple.com, llvm-bugs@lists.llvm.org, noqnoqneo@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
git-bisect in progress.
+Adam!
Also a regular reminder that alpha checkers are expected to be somewhat crashy and aren't supposed to be actually used until they're finished. Like, think of them as unmerged feature branches, but for historical reasons we use runtime flags for this purpose instead.
Bisection ended here:
[Analyzer] Split container modeling from iterator modeling
https://github.com/llvm/llvm-project/commit/9a08a3fab9993f9b93167de5c783dfed6dd7efc0
Hello,
Did you use -analyzer-config aggressive-binary-operation-simplification=true
when invoking clang? Such crashes are typical if this option is not used. I will create a fix which warns and does not allow the checker to be enabled if this option is not used. All iterator-related checkers depend on this option. Anyway, I tried your code and I did not get assertion with the option, but I got it without.
Fix to prevent usage of the checker without the appropriate option enabled: https://reviews.llvm.org/D75171
(In reply to Ádám Balogh from comment #4)
Did you use
-analyzer-config aggressive-binary-operation-simplification=true
when invoking clang? Such crashes are typical if this option is not used. All iterator-related checkers depend on this option.
No I didn't. Where is this documented? :)