The return in RunningOnValgrind is necessary or we get 'illegal instruction' error.
I tried and it seems to work well.
Compiling with clang-archer finds the race as usual. If you compile with clang and link against libarcher but without -fsanitize=thread the ompt_start_tool returns immediately and does not register any callbacks.
The return in RunningOnValgrind is necessary or we get 'illegal instruction' error.
I tried and it seems to work well.
Compiling with
clang-archer
finds the race as usual. If you compile withclang
and link againstlibarcher
but without-fsanitize=thread
theompt_start_tool
returns immediately and does not register any callbacks.