[compiler-rt] r182384 - [asan] LSan hooks in asan_rtl.

Alexey Samsonov samsonov at google.com
Wed May 22 05:46:38 PDT 2013


I think r182465 should help. Sorry for the breakage!


On Wed, May 22, 2013 at 3:56 PM, Hans Wennborg <hans at chromium.org> wrote:

> Hi Sergey,
>
> On Tue, May 21, 2013 at 3:15 PM, Sergey Matveev <earthdok at google.com>
> wrote:
> > Author: smatveev
> > Date: Tue May 21 09:15:35 2013
> > New Revision: 182384
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=182384&view=rev
> > Log:
> > [asan] LSan hooks in asan_rtl.
> >
> > Modified:
> >     compiler-rt/trunk/lib/asan/asan_flags.h
> >     compiler-rt/trunk/lib/asan/asan_rtl.cc
>
> [...]
>
> > @@ -448,6 +465,10 @@ void __asan_init() {
> >      Atexit(asan_atexit);
> >    }
> >
> > +  if (flags()->detect_leaks) {
> > +    Atexit(__lsan::DoLeakCheck);
> > +  }
> > +
> >    // interceptors
> >    InitializeAsanInterceptors();
> >
> > @@ -527,6 +548,8 @@ void __asan_init() {
> >    main_thread->ThreadStart(internal_getpid());
> >    force_interface_symbols();  // no-op.
> >
> > +  __lsan::InitCommonLsan();
> > +
>
> __lsan::DoLeakCheck and  __lsan::InitCommonLsan are defined in
> lsan_common.cc, which does not get compiled in the Makefile based
> build.
>
> This is breaking the Chromium build:
>
> http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos_asan/builds/6839/steps/compile/logs/stdio
>
> Any idea how to fix this?
>
> Thanks,
> Hans
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130522/7aea0278/attachment.html>


More information about the llvm-commits mailing list