This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: msan and gcc ?
- From: Xinliang David Li <davidxl at google dot com>
- To: Kostya Serebryany <kcc at google dot com>
- Cc: Dmitry Vyukov <dvyukov at google dot com>, VandeVondele Joost <joost dot vandevondele at mat dot ethz dot ch>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "dvyukov at gcc dot gnu dot org" <dvyukov at gcc dot gnu dot org>, "jakub at redhat dot com" <jakub at redhat dot com>, "kcc at gcc dot gnu dot org" <kcc at gcc dot gnu dot org>
- Date: Wed, 1 Oct 2014 09:24:43 -0700
- Subject: Re: msan and gcc ?
- Authentication-results: sourceware.org; auth=none
- References: <908103EDB4893A42920B21D3568BFD9315115A1A at MBX23 dot d dot ethz dot ch> <CACT4Y+a1B=epexGa0y0baESRKgpqC5r1T8gW91xRM8_4aW=zgw at mail dot gmail dot com> <CAN=P9pi60ukXrdqhxWMwx=+fzwBGoC+Q_s6nkffGuTyFzoX9yg at mail dot gmail dot com>
It may be helpful to document the following in msan's official page:
1) success stories (chrome land?)
2) runtime overhead comparison with valgrind
David
On Wed, Oct 1, 2014 at 9:07 AM, Kostya Serebryany <kcc@google.com> wrote:
> [as text for real this time]
> Sanitizer compiler module sizes in LLVM (in lines):
> 1823 AddressSanitizer.cpp
> 2780 MemorySanitizer.cpp
> 564 ThreadSanitizer.cpp
> Also note, that msan is the hardest to deploy among others sanitizers
> because it requires to compile *everything*,
> including libc++/libstdc++ and other system libs.
> We've managed to do that for large projects like Chromium, LLVM, GCC,
> and a few even larger ones,
> and it was certainly worth it. Having msan in GCC would be nice, but
> it is lots of work.
>
> --kcc
>
> On Wed, Oct 1, 2014 at 12:42 AM, Dmitry Vyukov <dvyukov@google.com> wrote:
>> On Wed, Oct 1, 2014 at 11:30 AM, VandeVondele Joost
>> <joost.vandevondele@mat.ethz.ch> wrote:
>>> Hi,
>>>
>>> I've noticed that gcc includes a msan_interface.h file, and I'm wondering if this implies that memory sanitizer is already part of gcc. If not, are there plans to port this useful looking tool to gcc during the current stage 1 ?
>>
>> Hi,
>>
>> No, msan is not part of gcc. And I am not aware of any plans to port
>> msan to gcc.
>> Note that msan's compiler pass is the most involved one as compared to
>> asan/tsan.