https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125659
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- There is some quite old documentation about needing to build the library internals with race detectors enabled here: https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html#debug.races
