C++
C++ Thread Sanitizer (TSan): Detecting Data Races and Thread Bugs
ThreadSanitizer (TSan) is a dynamic analysis tool built into Clang and GCC that detects data races, deadlocks, and other concurrency bugs in C++ programs. It instruments your binary at compile time and reports races with precise stack traces. Enabling TSan Compile with -fsanitize=thread and link with the same flag: