https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87457 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think the problem is that the std::thread code in libstdc++.so isn't built with ThreadSanitizer.