Details
- Reviewers
george.karpenkov NoQ xazax.hun rnkovacs - Commits
- rGa82810c56bc9: [analyzer][MallocChecker] Improve warning messages on double-delete errors
rL349283: [analyzer][MallocChecker] Improve warning messages on double-delete errors
rC349283: [analyzer][MallocChecker] Improve warning messages on double-delete errors
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks, nice catch!
It seems that the ReportDoubleDelete() thing was never used for reporting double-delete, but it was used for some strange check when a destructor is called. Is that old code even correct?
It was used for reporting, there actually is a test case for it in test/Analysis/NewDelete-checker-test.cpp on line 380.
Mm, yeah, but it's still weird to see it in checkPreCall for CXXDestructorCall.
I suspect that your new warning covers these tests as well.
Ugh. MSVC buildbot is acting weird again. Also it is not acting deterministically.
I was also yelled at by it in D55388.
Which makes me suspect that it has something to do with checker registration, as i change checker option related behavior in my patch, and the crashes in MallocChecker deal with loading checker name.
Wait, no, i didn't do anything with checker options yet. Something else then, i guess.
Ok, D55388 seems to have landed (3 builds without failures in move checker), so i guess these are separate problems after all.
The first failing build seems to be http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/2662 - it includes both this commit and rC349281.
Interesting, I've been watching the bots closely, but got no mail after a while. I'm not sure what the cause is, so I'll revert one-by-one.
One of the common reasons for that is that the buildbot was already failing when you committed your stuff. Which is why for many buildbots there are special people who look at them and tell people to fix their stuff manually.
This time it wasn't the case though: build 2661 was green. So dunno. I definitely did receive a mail from this buildbot when it failed on my patch.
But generally it's fine if you don't notice that you're breaking a buildbot or two. It's not something to worry about. Sooner or later, they will come after you :)