ThreadSanitizer
A sanitizer that detects data races between threads.
ThreadSanitizer (TSan, -fsanitize=thread) tracks memory accesses and synchronization and reports two threads touching the same data without ordering, with both stacks. It cannot be combined with ASan.
See also