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

Hans Wennborg hans at chromium.org
Wed May 22 04:56:25 PDT 2013


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



More information about the llvm-commits mailing list