Hi,
I’m trying to convert the text reports of Google Sanitizers into CodeChecker support format (plist). Instruction are posted here: report-converter - CodeChecker
I’ve used Clang-9, 12, and 16 with no success, both on ASAN and TSAN.
I’m using Codechecker 6.22.
I’m running the next commands and get similar errors:
for ASan:
report-converter -t asan -o ./build asan.output
[INFO] - No ‘asan’ results can be found in ‘asan.output’.
[WARNING] - Use ‘–meta’ option to provide extra information to the CodeChecker server such as analyzer version and analysis command when storing the results to it. For more information see the --help.
For tsan:
report-converter -t tsan -o ./build tsan.output
[INFO] - No ‘tsan’ results can be found in ‘tsan.output’.
[WARNING] - Use ‘–meta’ option to provide extra information to the CodeChecker server such as analyzer version and analysis command when storing the results to it. For more information see the --help.
What am I doing wrong? is there another way around it or other tools to convert to plist?
This is the content of asan.output:
cat asan.output
=================================================================
==2651==ERROR: LeakSanitizer: detected memory leaksDirect leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x4c822d in operator new(unsigned long) (a.out+0x4c822d)
#1 0x4cab48 in main asan.cpp:4:12
#2 0x7f4c6fd6f082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s).
This is the content of my tsan.output:
==================
WARNING: ThreadSanitizer: data race (pid=1498476)
Write of size 4 at 0x000000f9792c by thread T2:
#0 increment() /home/ad_harshtiw/data_race/data_race.cpp:8:20 (data_race+0x4b4073)
#1 void std::__invoke_impl<void, void ()()>(std::__invoke_other, void (&&)()) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bits/invoke.h:60:14 (data_race+0x4b4ddd)
#2 std::__invoke_result<void ()()>::type std::__invoke<void ()()>(void (&&)()) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bits/invoke.h:95:14 (data_race+0x4b4ce0)
#3 void std::_Invoker<std::tuple<void ()()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:244:13 (data_race+0x4b4c88)
#4 std::_Invoker<std::tuple<void ()()> >::operator()() /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:251:11 (data_race+0x4b4c28)
#5 std::_State_impl<std:
:_Invoker<std::tuple<void ()()> > >::_M_run() /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:195:13 (data_race+0x4b499f)
#6 (libstdc++.so.6+0xd6df3)
Previous write of size 4 at 0x000000f9792c by thread T1:
#0 increment() /home/ad_harshtiw/data_race/data_race.cpp:8:20 (data_race+0x4b4073)
#1 void std::__invoke_impl<void, void ()()>(std::__invoke_other, void (&&)()) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bits/invoke.h:60:14 (data_race+0x4b4ddd)
#2 std::__invoke_result<void ()()>::type std::__invoke<void ()()>(void (&&)()) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/bits/invoke.h:95:14 (data_race+0x4b4ce0)
#3 void std::_Invoker<std::tuple<void ()()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:244:13 (data_race+0x4b4c88)
#4 std::_Invoker<std::tuple<void ()()> >::operator()() /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:251:11 (data_race+0x4b4c28)
#5 std::_State_impl<std:
:_Invoker<std::tuple<void ()()> > >::_M_run() /usr/bin/…/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/include/c++/9/thread:195:13 (data_race+0x4b499f)
#6 (libstdc++.so.6+0xd6df3)
Location is global ‘shared_data’ of size 4 at 0x000000f9792c (data_race+0x000000f9792c)
Thread T2 (tid=1498479, running) created by main thread at:
#0 pthread_create (data_race+0x424bbb)
#1 std::_M_start_thread(std::unique_ptr<std:
:_State, std::default_deletestd::thread::_State >, void ()()) (libstdc++.so.6+0xd70c9)
#2 main /home/ad_harshtiw/data_race/data_race.cpp:14:17 (data_race+0x4b40d8)
Thread T1 (tid=1498478, running) created by main thread at:
#0 pthread_create (data_race+0x424bbb)
#1 std::_M_start_thread(std::unique_ptr<std:
:_State, std::default_deletestd::thread::_State >, void ()()) (libstdc++.so.6+0xd70c9)
#2 main /home/ad_harshtiw/data_race/data_race.cpp:13:17 (data_race+0x4b40c5)
SUMMARY: ThreadSanitizer: data race /home/ad_harshtiw/data_race/data_race.cpp:8:20 in increment()Shared data: 1118900
ThreadSanitizer: reported 1 warnings