How to use GCC "TSan" Thread Sanitizer?
Issue
- How to use GCC "TSan" Thread Sanitizer?
- Compiling and linking with
-fsanitize=threadprints an error:
/usr/bin/ld: cannot find /usr/lib64/libtsan.so.0.0.0
collect2: error: ld returned 1 exit status
Environment
- Red Hat Enterprise Linux 7 and later
- GCC G++ GNU C and C++ Compiler 4.8 and later
- ThreadSanitizer (TSan)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.