[PATCH] [compiler-rt] ASan debugging API for report info extraction and locating addresses

Kostya Serebryany kcc at google.com
Thu Sep 25 21:49:00 PDT 2014


On Thu, Sep 25, 2014 at 5:32 PM, Kuba Brecka <kuba.brecka at gmail.com> wrote:

> Hm, one of the buildbots is complaining (already fixed it with r218483).
>
> FAIL: AddressSanitizer64 :: TestCases/debug_locate.cc (432 of 21228)
> ******************** TEST 'AddressSanitizer64 :: TestCases/debug_locate.cc' FAILED ********************
> Script:
> --
> /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.obj/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -O0 /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.src/projects/compiler-rt/test/asan/TestCases/debug_locate.cc -o /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.obj/projects/compiler-rt/test/asan/64bitConfig/TestCases/Output/debug_locate.cc.tmp &&  /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.obj/projects/compiler-rt/test/asan/64bitConfig/TestCases/Output/debug_locate.cc.tmp 2>&1
> --
> Exit Code: 23
>
> Command Output (stdout):
> --
> =================================================================
> ==28707==ERROR: LeakSanitizer: detected memory leaks
>
> Direct leak of 10 byte(s) in 1 object(s) allocated from:
>     #0 0x481cab in malloc /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40
>     #1 0x4a0971 in main /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-fast/llvm.src/projects/compiler-rt/test/asan/TestCases/debug_locate.cc:17:28
>     #2 0x7f88c07dfb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
>
> SUMMARY: AddressSanitizer: 10 byte(s) leaked in 1 allocation(s).
> --
>
>
> Do we have LeakSanitizer on by default on Linux? I thought it's off unless
> you specifically turn it on with ASAN_OPTIONS, at least that's what
> https://code.google.com/p/address-sanitizer/wiki/Flags says.
>
>
Yes, lsan is on by default, I've just fixed the wiki.
lsan is linux-only currently.

--kcc


> Kuba
>
>
> On Thu, Sep 25, 2014 at 5:05 PM, Kuba Brecka <kuba.brecka at gmail.com>
> wrote:
>
>> Landed in r218481, thanks for review!
>>
>> http://reviews.llvm.org/D4527
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140925/eab9a0cb/attachment.html>


More information about the llvm-commits mailing list