This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/59215] tsan: warning in shared_ptr_base.h
- From: "kcc at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Nov 2013 17:59:45 +0000
- Subject: [Bug sanitizer/59215] tsan: warning in shared_ptr_base.h
- Auto-submitted: auto-generated
- References: <bug-59215-4 at http dot gcc dot gnu dot org/bugzilla/>
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).