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

Kuba Brecka kuba.brecka at gmail.com
Thu Sep 25 17:32:49 PDT 2014


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.

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/lldb-commits/attachments/20140925/363614da/attachment.html>


More information about the lldb-commits mailing list