You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate clangsa with codechecker on our CI. We have quite a big project (about ~1000 TUs). The problem I see is that after random changes, clangsa starts reporting bugs in quite old files that we didn't touch for years.
This also happens when new annotations gets added (like ownership_returns). Some old reports disappear, some new appears (unrelated to added annotation)
I tried both ctu modes and results are the same. I also tried using -j1, which seems to help sometimes, but makes analisys too slow, which is unacceptable on CI
Bugs are real (which is amazing), but it makes life for developers quite hard, since they see reports in files they didn't even touch.
Unfortunately, I cannot provide a reproducer, since codebase is proprietary, but I wonder if it's known and there is a way to somehow workaround it.
The text was updated successfully, but these errors were encountered:
---------------------------------------------------------------
Kind | Version
---------------------------------------------------------------
Base package version | 6.23.1
Package build date | 2023-12-14T14:38
Git commit ID (hash) | 2a8fa6e711a4ff591280a79fe8798dee2507d984
Git tag information | 6.23.1
---------------------------------------------------------------
qemu source on hash 7425b6277f12e82952cede1f531bfc689bf77fb1
second run CC_ANALYZER_BIN='clangsa:/usr/bin/clang-18' CodeChecker analyze --ctu compile_commands.json -o reports --analyzers clangsa -d deadcode.DeadStores -e fuchsia.HandleChecker
Diff command show some new reports (really unrealated to added attribute)
λ > CodeChecker cmd diff -b reports1 -n reports --new
[INFO 2024-10-18 13:55] - Matching local report directories (--baseline): /home/paskripkin/Documents/sources/qemu/reports1
[INFO 2024-10-18 13:55] - Matching local report directories (--newname): /home/paskripkin/Documents/sources/qemu/reports
[MEDIUM] /home/paskripkin/Documents/sources/qemu/contrib/elf2dmp/main.c:549:13: Use of memory allocated with size zero [unix.Malloc]
state = qemu_elf.state[0];
^
Found 1 defect(s) in main.c
[MEDIUM] /home/paskripkin/Documents/sources/qemu/contrib/elf2dmp/qemu_elf.c:103:31: Use of memory allocated with size zero [unix.Malloc]
qe->state[cpu_nr] = nhdr_get_desc(nhdr);
^
Found 1 defect(s) in qemu_elf.c
I am trying to integrate clangsa with codechecker on our CI. We have quite a big project (about ~1000 TUs). The problem I see is that after random changes, clangsa starts reporting bugs in quite old files that we didn't touch for years.
This also happens when new annotations gets added (like
ownership_returns
). Some old reports disappear, some new appears (unrelated to added annotation)I tried both ctu modes and results are the same. I also tried using
-j1
, which seems to help sometimes, but makes analisys too slow, which is unacceptable on CIBugs are real (which is amazing), but it makes life for developers quite hard, since they see reports in files they didn't even touch.
Unfortunately, I cannot provide a reproducer, since codebase is proprietary, but I wonder if it's known and there is a way to somehow workaround it.
The text was updated successfully, but these errors were encountered: