[cfe-dev] Driver interaction with -fsanitize=memory

Kostya Serebryany kcc at google.com
Tue Sep 3 01:18:38 PDT 2013


On Tue, Sep 3, 2013 at 11:30 AM, dvyukov <dvyukov at gmail.com> wrote:

> Hi,
>
> Please also include tsan into this plan (and probably asan?). Tsan does not
> need to see all memory accesses, but it needs to see all synchronization.
> Some atomic-operation-based synchronization in shared_ptr is compiled into
> libstdc++ and causes false positives:
> http://llvm.org/bugs/show_bug.cgi?id=17066


If we are going to implement this for msan and asan, surely we want this
for asan as well. It will improve asan in two ways:
 1. memory accesses in libraries will now be instrumented (and thus more
bugs will be detected).
 2. the libraries will get compiled with frame pointers thus allowing fast
unwinder to work properly (this is essential for suppressions in lsan).

--kcc


>
>
>
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Driver-interaction-with-fsanitize-memory-tp4034088p4034204.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130903/4f053695/attachment.html>


More information about the cfe-dev mailing list