[Bug sanitizer/59215] tsan: warning in shared_ptr_base.h

kcc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 20 18:00:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59215

--- Comment #5 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
> > But only if you re-compile stdlibc++ with tsan, 
> 
> It's libstdc++ not stdlibc++, I don't know why everyone gets that wrong :-)

Sorry (I usually get it right) :) 

> 
> Anyway, this is already documented:
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html#debug.races

I know that's confusing, but this has nothing to do with ThreadSanitizer v2,
which is being discussed in this bug. 
Those annotations are for ThreadSanitizer v1 which used binary translation
and did not understand atomics natively. (also for helgrind, etc).



More information about the Gcc-bugs mailing list