> We have plans to actually compile the symbolizer into the binary and do > in-process symbolization, but it's not there yet.nice!> I'm confused here. compiler-rt and clang/llvm instrumentation depend on each otherThese two projects don't need to be interdependent and, for the most part, they aren't. In the same way that llvm does not depend on clang, compiler-rt can be standalone too if the sanitizer's instrumentation tests were moved to clang. compiler-rt is just a C library and its functions can be tested in isolation.> our bots seem to be green. Could you refer to guilty svn revision?Hmm, I just did another clean build, just to be sure. I consistently have see 14 failures (tests and logs below). I believe r182853 broke the SanitizerCommon tests and r182854 broke the asan tests, but I'm not 100% certain and unfortunately don't have time to dive into this one. Would you mind taking a quick scan of the logs below and letting me know if anything stands out to you. Failing Tests (14): AddressSanitizer :: Linux/unpoison_tls.cc AddressSanitizer :: deep_thread_stack.cc AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ManyThreadsTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.PthreadExitTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadNamesTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedTest AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize Here's the log. Anything stand out to you? -- Testing: 15209 tests, 4 threads -- Testing: FAIL: AddressSanitizer :: Linux/unpoison_tls.cc (19 of 15209) ******************** TEST 'AddressSanitizer :: Linux/unpoison_tls.cc' FAILED ******************** Script: -- /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp 2>&1 /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp 2>&1 -- Exit Code: 1 Command Output (stdout): -- ==19600==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf6111030, 0xf6111000) #0 0x8069d63 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8069d63) #1 0x806d30b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806d30b) #2 0x8074342 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8074342) #3 0x806afc8 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806afc8) #4 0x806b2ee (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806b2ee) #5 0x805e07d (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x805e07d) #6 0xf76c496d (/lib32/libpthread.so.0+0x596d) -- ******************** Testing: FAIL: AddressSanitizer :: deep_thread_stack.cc (32 of 15209) ******************** TEST 'AddressSanitizer :: deep_thread_stack.cc' FAILED ******************** Script: -- /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O2 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O3 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O0 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O2 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O3 /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -o /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp && /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp 2>&1 | /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc -- Exit Code: 1 Command Output (stderr): -- /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc:52:11: error: expected string not found in input // CHECK: AddressSanitizer: heap-use-after-free ^ <stdin>:1:1: note: scanning from here ==19996==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, 0xf612e000) ^ <stdin>:1:7: note: possible intended match here ==19996==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, 0xf612e000) ^ -- ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ManyThreadsTest (119 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ManyThreadsTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ManyThreadsTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ManyThreadsTest ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf31f7030, 0xf31f7000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, 0xf467c000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xed2c5030, 0xed2c5000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef8d9030, 0xef8d9000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, 0xf2872000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf025e030, 0xf025e000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xee5cf030, 0xee5cf000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeef54030, 0xeef54000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, 0xedc4a000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1eed030, 0xf1eed000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xec940030, 0xec940000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1568030, 0xf1568000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3b7c030, 0xf3b7c000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebfbb030, 0xebfbb000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeacb1030, 0xeacb1000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0be3030, 0xf0be3000) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, 0x0) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, 0x0) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) ==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, 0x0) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #0 0x806c0e3==21625==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, 0x0) (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf766d96d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.PthreadExitTest (131 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.PthreadExitTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.PthreadExitTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.PthreadExitTest ==21955==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, 0xf457b000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf762196d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadNamesTest (161 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadNamesTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadNamesTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadNamesTest ==22250==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, 0xf467c000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf769496d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest (162 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadStackReuseTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadStackReuseTest ==22256==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, 0xf457b000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf761196d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest (164 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadedMallocStressTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadedMallocStressTest ==22260==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, 0xf30f7000) ==22260==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, 0xf457b000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf760596d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest (165 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadedOneSizeMallocStressTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadedOneSizeMallocStressTest ==22262==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, 0xf2872000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf76aa96d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest (166 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadedQuarantineTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadedQuarantineTest ==22272==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, 0xf457b000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf75ca96d (/lib32/libpthread.so.0+0x596d) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest (167 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadedStressStackReuseTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadedStressStackReuseTest ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3a7c030, 0xf3a7c000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, 0xf457b000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef7d9030, 0xef7d9000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf015e030, 0xf015e000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1ded030, 0xf1ded000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2772030, 0xf2772000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeee54030, 0xeee54000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1468030, 0xf1468000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0ae3030, 0xf0ae3000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedb4a030, 0xedb4a000) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, 0xf30f7000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeabb1030, 0xeabb1000) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf75e096d (/lib32/libpthread.so.0+0x596d) ==22274==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebebb030, 0xebebb000) ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedTest (168 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedTest' FAILED ******************** Note: Google Test filter = AddressSanitizer.ThreadedTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizer [ RUN ] AddressSanitizer.ThreadedTest /local/mnt/workspace/draco/compiler-rt/lib/asan/tests/asan_test.cc:860: Failure Death test: ThreadedTestSpawn() Result: died but not with expected error. Expected: Thread T.*created.*Thread T.*created.*Thread T.*created Actual msg: [ DEATH ] ==22299==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3c7c030, 0xf3c7c000) [ DEATH ] #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) [ DEATH ] #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) [ DEATH ] #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) [ DEATH ] #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) [ DEATH ] #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) [ DEATH ] #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) [ DEATH ] #6 0xf765296d (/lib32/libpthread.so.0+0x596d) [ DEATH ] [ FAILED ] AddressSanitizer.ThreadedTest (45 ms) [----------] 1 test from AddressSanitizer (45 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (47 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] AddressSanitizer.ThreadedTest 1 FAILED TEST YOU HAVE 25 DISABLED TESTS ******************** Testing: FAIL: AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest (197 of 15209) ******************** TEST 'AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest' FAILED ******************** Note: Google Test filter AddressSanitizerInterface.ManyThreadsWithStatsStressTest [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AddressSanitizerInterface [ RUN ] AddressSanitizerInterface.ManyThreadsWithStatsStressTest ==22460==AddressSanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, 0xedc4a000) #0 0x806c0e3 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) #1 0x806f68b (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) #2 0x80766c2 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) #3 0x806d348 (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) #4 0x806d66e (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) #5 0x80603fd (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) #6 0xf769996d (/lib32/libpthread.so.0+0x596d) ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker (14911 of 15209) ******************** TEST 'SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker' FAILED ******************** Note: Google Test filter = SanitizerCommon.ThreadStackTlsWorker [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from SanitizerCommon [ RUN ] SanitizerCommon.ThreadStackTlsWorker ==15484==Sanitizer CHECK failed: /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 ((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size)) (4148203568, 4148203520) ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize (14914 of 15209) ******************** TEST 'SanitizerCommon-Unit :: Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize' FAILED ******************** Note: Google Test filter = SanitizerLinux.ThreadDescriptorSize [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from SanitizerLinux [ RUN ] SanitizerLinux.ThreadDescriptorSize /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc:230: Failure Value of: ThreadDescriptorSize() Actual: 1216 Expected: (uptr)result Which is: 1168 [ FAILED ] SanitizerLinux.ThreadDescriptorSize (2 ms) [----------] 1 test from SanitizerLinux (2 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (2 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] SanitizerLinux.ThreadDescriptorSize 1 FAILED TEST ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 2 warning(s) in tests. Testing Time: 138.05s ******************** On Thu, May 30, 2013 at 12:28 PM, Alexey Samsonov <samsonov at google.com> wrote:> > On Thu, May 30, 2013 at 10:05 PM, Greg Fitzgerald <garious at gmail.com> wrote: >> >> The sanitizer common and asan that mention 'thread' are failing for me >> this morning. How are your bots looking? Last good commit here was >> 512c616cacf70ca029a2bf719a482b902f3687cd. > > > Hm, our bots seem to be green. Could you refer to guilty svn revision? >> >> >> > You could try preprocessing your report with perl or sed to fix paths >> > to your binaries. It would be great to have an option for that in >> > asan_symbolize.py. >> > >> > As for addr2line, we just install binutils-multiarch ubuntu package. >> >> Cool, that gets the job done, thanks. Looks like there's some effort >> going into embedding the addr2line functionality into compiler-rt. Is >> that something folks are actively working on? > > > Well, LLVM has llvm-symbolizer tool, which is analogous to addr2line. > For now sanitizer tools are able to use it for out-of-process symbolization > (e.g. on Linux you won't have to run report through asan_symbolize.py if > you provide env variable ASAN_SYMBOLIZER_PATH=/path/to/llvm-symbolizer). > We have plans to actually compile the symbolizer into the binary and do > in-process symbolization, but it's not there yet. Not sure if that's what > you mean > by "addr2line in compiler-rt". >> >> >> >> > Tests are different: certainly tests that depend on instrumentation >> > are built with clang from the same build tree (that is tests "depend" on >> > Clang). >> >> The compiler-rt library definitions have no dependency on the clang >> instrumentation, correct? Only the other way around? > > > I'm confused here. compiler-rt and clang/llvm instrumentation depend on each > other, > so the version of Clang you use should be the same as the version of > compiler-rt. > >> >> >> Thanks, >> Greg >> >> >> On Thu, May 30, 2013 at 1:03 AM, Alexey Samsonov <samsonov at google.com> >> wrote: >> > >> > On Thu, May 30, 2013 at 3:40 AM, Greg Fitzgerald <garious at gmail.com> >> > wrote: >> >> >> >> > Cool, can you use clang 3.3 then? :) >> >> >> >> I can, but digging deeper I see that the compiler-rt sanitizer tests >> >> depend on just-built-clang for its object instrumentation. The next >> >> time >> >> the instrumentation changes, I'd expect those tests to break. If the >> >> lit >> >> tests that require -fsanitize were moved to the clang repo, then I >> >> think >> >> it'd be safe to build compiler-rt with clang 3.3 or gcc 4.6.3. >> > >> > >> > Tests are different: certainly tests that depend on instrumentation are >> > built with clang from the same build tree (that is tests "depend" on >> > Clang). >> > * when you run "make" in your build tree, you build Clang and runtimes >> > with >> > a host compiler >> > * when you run "make check-all" in your build tree, you use this Clang >> > and >> > runtimes to build/run tests. >> > >> >> >> >> >> >> >> >> Back to Android, I built the ASan shared object and successfully ran >> >> this >> >> example: >> >> >> >> >> >> https://code.google.com/p/address-sanitizer/source/browse/wiki/example_UseAfterFree.cc?r=1580 >> >> >> >> But unlike these instructions: >> >> http://www.chromium.org/developers/testing/addresssanitizer >> >> >> >> the Android instructions don't mention asan_symbolize.py >> >> https://code.google.com/p/address-sanitizer/wiki/Android >> >> >> >> When I use asan_symbolize.py (from Linux), I see no symbols in the >> >> stack >> >> trace and the following error messages: >> >> >> >> addr2line: '/data/example_UseAfterFree': No such file >> >> addr2line: '/data/libclang_rt.asan-arm-android.so': No such file >> >> addr2line: '/system/lib/libstdc++.so': No such file >> >> >> >> How can I decode those addresses in the stack trace? Is there a way to >> >> configure asan_symbolize.py to find my binaries and >> >> arm-linux-androideabi-addr2line? >> >> >> >> Thanks, >> >> Greg >> >> >> >> P.S. Thanks for the colorful output. You make address sanitizing feel >> >> like Christmas. >> >> >> >> >> >> On Wed, May 29, 2013 at 7:28 AM, Alexey Samsonov <samsonov at google.com> >> >> wrote: >> >>> >> >>> On Wed, May 29, 2013 at 5:40 PM, Greg Fitzgerald <garious at gmail.com> >> >>> wrote: >> >>>> >> >>>> For me, UBsan fails with clang 3.2 and passes with clang 3.3. >> >>> >> >>> >> >>> Cool, can you use clang 3.3 then? :) I think that the reason selected >> >>> UBSan tests fail under clang 3.2 is a bug in Clang, which was fixed >> >>> (Richard >> >>> may correct me if I'm wrong). >> >>> I don't really want to mark these tests as "failing on a certain >> >>> version >> >>> of host compiler". >> >>>> >> >>>> >> >>>> Using a fixed version allows you to build all clang/llvm/compiler-rt >> >>>> with one compiler. It simplifies the build process quite a bit. >> >>>> Also >> >>>> better for isolating regressions in compiler-rt, especially if you >> >>>> use >> >>>> git-bisect. >> >>> >> >>> >> >>> I think you may fix a host compiler (it may be clang 3.3 or gcc >> >>> 4.6.3), >> >>> build w/o -Werror and stay happy most of the time. >> >>> Bootstrap process (use system compiler to build Clang, use this Clang >> >>> to >> >>> build LLVM+Clang+compiler-rt) isn't really scary, it adds just a few >> >>> lines >> >>> to your build script. >> >>> AFAIK some developers actually do this every day. But, yes, this is >> >>> not >> >>> user-friendly, and we probably should document it better (or even >> >>> provide >> >>> the scripts) somewhere... >> >>> >> >>>> >> >>>> >> >>>> Greg >> >>>> >> >>>> >> >>>> On May 29, 2013, at 12:30 AM, Alexey Samsonov <samsonov at google.com> >> >>>> wrote: >> >>>> >> >>>> UBsan tests work for me when I run "check-ubsan" in both build trees >> >>>> (the one with gcc 4.6.3 as a host compiler, and the one with fresh >> >>>> Clang). >> >>>> It's pretty convenient for us to use fresh Clang to configure LLVM >> >>>> and >> >>>> compiler-rt. One major reason is that autoconf/make build system >> >>>> always >> >>>> builds compiler-rt with just-built Clang. >> >>>> There are other benefits, like keeping sanitizers code >> >>>> "-Werror"-clean >> >>>> under the fresh Clang, ability to catch regressions in compiler etc. >> >>>> Why >> >>>> would you need a fixed version? >> >>>> >> >>>> >> >>>> On Tue, May 28, 2013 at 10:26 PM, Greg Fitzgerald <garious at gmail.com> >> >>>> wrote: >> >>>>> >> >>>>> Okay, dropping gcc 4.4.3 makes sense. How do you feel about using >> >>>>> clang 3.2 (and the upcoming 3.3) instead of tip-of-the-trunk clang? >> >>>>> It >> >>>>> looks like everything works great, but that you just need to make >> >>>>> those UB >> >>>>> tests 'unsupported' since they fail with "libclang_rt.ubsan was >> >>>>> built >> >>>>> without __int128 support". >> >>>>> >> >>>>> Thanks, >> >>>>> Greg >> >>>>> >> >>>>> >> >>>>> >> >>>>> On Mon, May 27, 2013 at 12:36 AM, Alexey Samsonov >> >>>>> <samsonov at google.com> >> >>>>> wrote: >> >>>>>> >> >>>>>> >> >>>>>> On Sun, May 26, 2013 at 12:17 AM, Evgeniy Stepanov >> >>>>>> <eugeni.stepanov at gmail.com> wrote: >> >>>>>>> >> >>>>>>> On Sat, May 25, 2013 at 4:12 AM, Greg Fitzgerald >> >>>>>>> <garious at gmail.com> >> >>>>>>> wrote: >> >>>>>>> > When I build compiler-rt with clang 3.2, all lsan tests pass. >> >>>>>>> > The >> >>>>>>> > only >> >>>>>>> > failing tests I see are in ubsan: >> >>>>>>> > >> >>>>>>> > Failing Tests (6): >> >>>>>>> > UndefinedBehaviorSanitizer :: Float/cast-overflow.cpp >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/add-overflow.cpp >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/div-zero.cpp >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/sub-overflow.cpp >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/uadd-overflow.cpp >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/usub-overflow.cpp >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > When I build with gcc 4.4.3, I need the changes below to get the >> >>>>>>> > source to >> >>>>>>> > compile (and then the lsan tests fails). What are you all using >> >>>>>>> > to >> >>>>>>> > build >> >>>>>>> > compiler-rt? are you developing on linux, osx or windows? >> >>>>>>> > Using >> >>>>>>> > gcc or >> >>>>>>> > llvm? Which should I expect to work? Any buildbots running? >> >>>>>>> >> >>>>>> >> >>>>>> As Evgeniy said, we build compiler-rt on Linux and on Mac OS X, and >> >>>>>> run tests for various sanitizers on our buildbots. >> >>>>>> Note that CMake build system of compiler-rt uses host compiler to >> >>>>>> build it. On Linux we use: >> >>>>>> 1) gcc 4.6.3 >> >>>>>> 2) tip-of-the-trunk Clang, >> >>>>>> and tests pass under both of these. >> >>>>>> >> >>>>>> gcc 4.4.3 seems way too old, so in some sense we've dropped support >> >>>>>> for it (you have to make changes, as old gcc is not >> >>>>>> smart enough to make some POD variables thread-local). >> >>>>>> >> >>>>>>> >> >>>>>>> I think we build compiler-rt with the host compiler, except for >> >>>>>>> Android. Which is usually a recently-built clang. n Linux, but we >> >>>>>>> exercise osx build on our buildbots. >> >>>>>>> We never build with compiler-rt not in projects/. >> >>>>>>> Our bot scripts are here: >> >>>>>>> >> >>>>>>> >> >>>>>>> https://code.google.com/p/address-sanitizer/source/browse/#svn%2Ftrunk%2Fbuild%2Fscripts%2Fslave >> >>>>>>> The bots itself are not publicly visible, we hope to change that >> >>>>>>> soon. >> >>>>>>> >> >>>>>>> > >> >>>>>>> > And lastly, are there build instructions to build the Android >> >>>>>>> > shared object? >> >>>>>>> > Is there any way to build an android static lib? How about for >> >>>>>>> > arm-linux? >> >>>>>>> >> >>>>>>> Android runtime is special, we build it in a separate build tree >> >>>>>>> configured with >> >>>>>>> >> >>>>>>> -DCMAKE_TOOLCHAIN_FILE=$LLVM_CHECKOUT/cmake/platforms/Android.cmake >> >>>>>>> See buildbot_cmake.sh for details. >> >>>>>>> >> >>>>>>> > >> >>>>>>> > Thanks, >> >>>>>>> > Greg >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > diff --git a/lib/interception/interception.h >> >>>>>>> > b/lib/interception/interception.h >> >>>>>>> > index d50af35..1771d4e 100644 >> >>>>>>> > --- a/lib/interception/interception.h >> >>>>>>> > +++ b/lib/interception/interception.h >> >>>>>>> > @@ -27,8 +27,8 @@ typedef __sanitizer::uptr SIZE_T; >> >>>>>>> > typedef __sanitizer::sptr SSIZE_T; >> >>>>>>> > typedef __sanitizer::sptr PTRDIFF_T; >> >>>>>>> > typedef __sanitizer::s64 INTMAX_T; >> >>>>>>> > -typedef __sanitizer::OFF_T OFF_T; >> >>>>>>> > -typedef __sanitizer::OFF64_T OFF64_T; >> >>>>>>> > +//typedef __sanitizer::OFF_T OFF_T; >> >>>>>>> > +//typedef __sanitizer::OFF64_T OFF64_T; >> >>>>>>> > >> >>>>>>> > // How to add an interceptor: >> >>>>>>> > // Suppose you need to wrap/replace system function (generally, >> >>>>>>> > from libc): >> >>>>>>> > diff --git a/lib/lsan/lsan_allocator.cc >> >>>>>>> > b/lib/lsan/lsan_allocator.cc >> >>>>>>> > index 9bf27b1..190dce8 100644 >> >>>>>>> > --- a/lib/lsan/lsan_allocator.cc >> >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc >> >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, >> >>>>>>> > AllocatorCache, >> >>>>>>> > SecondaryAllocator> Allocator; >> >>>>>>> > >> >>>>>>> > static Allocator allocator; >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; >> >>>>>>> > >> >>>>>>> > void InitializeAllocator() { >> >>>>>>> > allocator.Init(); >> >>>>>>> > diff --git a/lib/msan/msan_allocator.cc >> >>>>>>> > b/lib/msan/msan_allocator.cc >> >>>>>>> > index 7435843..3e6adb6 100644 >> >>>>>>> > --- a/lib/msan/msan_allocator.cc >> >>>>>>> > +++ b/lib/msan/msan_allocator.cc >> >>>>>>> > @@ -33,7 +33,7 @@ typedef LargeMmapAllocator<> >> >>>>>>> > SecondaryAllocator; >> >>>>>>> > typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, >> >>>>>>> > SecondaryAllocator> Allocator; >> >>>>>>> > >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; >> >>>>>>> > static Allocator allocator; >> >>>>>>> > >> >>>>>>> > static int inited = 0; >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > On Fri, May 24, 2013 at 6:10 AM, Sergey Matveev >> >>>>>>> > <earthdok at google.com> wrote: >> >>>>>>> >> >> >>>>>>> >> I blame this line in lsan/lit_tests/lit.cfg: >> >>>>>>> >> >> >>>>>>> >> # Setup attributes common for all compiler-rt projects. >> >>>>>>> >> compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects", >> >>>>>>> >> "compiler-rt", >> >>>>>>> >> "lib", "lit.common.cfg") >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> On Fri, May 24, 2013 at 2:53 PM, Alexey Samsonov >> >>>>>>> >> <samsonov at google.com> >> >>>>>>> >> wrote: >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> On Fri, May 24, 2013 at 3:37 AM, Greg Fitzgerald >> >>>>>>> >>> <garious at gmail.com> >> >>>>>>> >>> wrote: >> >>>>>>> >>>> >> >>>>>>> >>>> > it assumes that compiler-rt is checked out to >> >>>>>>> >>>> > llvm/projects/compiler-rt. Apparently, this is a problem. >> >>>>>>> >>>> >> >>>>>>> >>>> I have a patch for this ready. I'll send it to you and >> >>>>>>> >>>> llvm-commits. >> >>>>>>> >>>> Most of the tests pass with "make check-all" but the >> >>>>>>> >>>> recently-added lsan >> >>>>>>> >>>> tests are all failing. Do those fail for you as well? If >> >>>>>>> >>>> so, >> >>>>>>> >>>> can we XFAIL >> >>>>>>> >>>> them for now and try to keep the "make check-all" build >> >>>>>>> >>>> clean? >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> Thanks! I'll take a look at the patch today. LSan tests work >> >>>>>>> >>> fine >> >>>>>>> >>> for me, >> >>>>>>> >>> and we have them on our buildbot as well. What are the >> >>>>>>> >>> failures >> >>>>>>> >>> you see? >> >>>>>>> >>> >> >>>>>>> >>>> >> >>>>>>> >>>> >> >>>>>>> >>>> Thanks, >> >>>>>>> >>>> Greg >> >>>>>>> >>>> >> >>>>>>> >>>> >> >>>>>>> >>>> >> >>>>>>> >>>> On Wed, May 22, 2013 at 9:39 PM, Alexey Samsonov >> >>>>>>> >>>> <samsonov at google.com> >> >>>>>>> >>>> wrote: >> >>>>>>> >>>>> >> >>>>>>> >>>>> Hi! >> >>>>>>> >>>>> >> >>>>>>> >>>>> The docs look strange to me - I don't indeed see any CMake >> >>>>>>> >>>>> support for >> >>>>>>> >>>>> running compiler-rt tests. >> >>>>>>> >>>>> Probably compiler-rt folks can comment on this... >> >>>>>>> >>>>> I think you should run compilert-rt tests manually by smth. >> >>>>>>> >>>>> like >> >>>>>>> >>>>> compiler-rt/test/Unit/test. >> >>>>>>> >>>>> >> >>>>>>> >>>>> CMake build system is able of running a bunch of sanitizer >> >>>>>>> >>>>> tests >> >>>>>>> >>>>> (AddressSanitizer, ThreadSanitizer etc.), and it assumes >> >>>>>>> >>>>> that >> >>>>>>> >>>>> compiler-rt is checked out to llvm/projects/compiler-rt. >> >>>>>>> >>>>> Apparently, >> >>>>>>> >>>>> this is a problem. There was a patch that tried to address >> >>>>>>> >>>>> this, but >> >>>>>>> >>>>> it never got committed. >> >>>>>>> >>>>> >> >>>>>>> >>>>> >> >>>>>>> >>>>> >> >>>>>>> >>>>> On Wed, May 22, 2013 at 11:38 PM, Greg Fitzgerald >> >>>>>>> >>>>> <garious at gmail.com> >> >>>>>>> >>>>> wrote: >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> Anybody working on porting the compiler-rt tests to cmake? >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> The online documentation shows a preference for cmake and >> >>>>>>> >>>>>> ctest, but >> >>>>>>> >>>>>> the CMakeLists file has the comment "Currently the tests >> >>>>>>> >>>>>> have >> >>>>>>> >>>>>> not been >> >>>>>>> >>>>>> ported to CMake, so disable this directory." How should we >> >>>>>>> >>>>>> be >> >>>>>>> >>>>>> running the >> >>>>>>> >>>>>> test suite? >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> http://compiler-rt.llvm.org/ >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> My immediate issue is that "make check-all" fails in the >> >>>>>>> >>>>>> cmake >> >>>>>>> >>>>>> build >> >>>>>>> >>>>>> when compiler-rt is outside the projects directory. When I >> >>>>>>> >>>>>> point to >> >>>>>>> >>>>>> compiler-rt with LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, lit >> >>>>>>> >>>>>> still looks for >> >>>>>>> >>>>>> lit.common.cfg within "projects/compiler-rt" instead of the >> >>>>>>> >>>>>> external >> >>>>>>> >>>>>> directory. I use similar CMake variables for Clang and >> >>>>>>> >>>>>> Polly >> >>>>>>> >>>>>> and have had >> >>>>>>> >>>>>> no trouble. Any recommendations for how to fix? >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> Thanks, >> >>>>>>> >>>>>> Greg >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> >> >>>>>>> >>>>>> _______________________________________________ >> >>>>>>> >>>>>> LLVM Developers mailing list >> >>>>>>> >>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> >>>>>>> >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >>>>>>> >>>>>> >> >>>>>>> >>>>> >> >>>>>>> >>>>> >> >>>>>>> >>>>> >> >>>>>>> >>>>> -- >> >>>>>>> >>>>> Alexey Samsonov, MSK >> >>>>>>> >>>> >> >>>>>>> >>>> >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> -- >> >>>>>>> >>> Alexey Samsonov, MSK >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > _______________________________________________ >> >>>>>>> > LLVM Developers mailing list >> >>>>>>> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> >>>>>>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >>>>>>> > >> >>>>>>> _______________________________________________ >> >>>>>>> LLVM Developers mailing list >> >>>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> Alexey Samsonov, MSK >> >>>>> >> >>>>> >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Alexey Samsonov, MSK >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Alexey Samsonov, MSK >> >> >> >> >> > >> > >> > >> > -- >> > Alexey Samsonov, MSK > > > > > -- > Alexey Samsonov, MSK
r182853 introduced an assumption about the size of thread descriptor in glibc. On your system it's 48 bytes off, which is why the tests fail. What version of libc are you using? On Fri, May 31, 2013 at 2:04 AM, Greg Fitzgerald <garious at gmail.com> wrote:> > We have plans to actually compile the symbolizer into the binary and do > > in-process symbolization, but it's not there yet. > > nice! > > > > I'm confused here. compiler-rt and clang/llvm instrumentation depend on > each other > > These two projects don't need to be interdependent and, for the most > part, they aren't. In the same way that llvm does not depend on > clang, compiler-rt can be standalone too if the sanitizer's > instrumentation tests were moved to clang. compiler-rt is just a C > library and its functions can be tested in isolation. > > > > our bots seem to be green. Could you refer to guilty svn revision? > > Hmm, I just did another clean build, just to be sure. I > consistently have see 14 failures (tests and logs below). I believe > r182853 broke the SanitizerCommon tests and r182854 broke the asan > tests, but I'm not 100% certain and unfortunately don't have time to > dive into this one. Would you mind taking a quick scan of the logs > below and letting me know if anything stands out to you. > > Failing Tests (14): > AddressSanitizer :: Linux/unpoison_tls.cc > AddressSanitizer :: deep_thread_stack.cc > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest > AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest > SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker > SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize > > > Here's the log. Anything stand out to you? > > -- Testing: 15209 tests, 4 threads -- > Testing: > FAIL: AddressSanitizer :: Linux/unpoison_tls.cc (19 of 15209) > ******************** TEST 'AddressSanitizer :: Linux/unpoison_tls.cc' > FAILED ******************** > Script: > -- > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > 2>&1 > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > 2>&1 > -- > Exit Code: 1 > Command Output (stdout): > -- > ==19600==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf6111030, > 0xf6111000) > #0 0x8069d63 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8069d63) > #1 0x806d30b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806d30b) > #2 0x8074342 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8074342) > #3 0x806afc8 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806afc8) > #4 0x806b2ee > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806b2ee) > #5 0x805e07d > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x805e07d) > #6 0xf76c496d (/lib32/libpthread.so.0+0x596d) > -- > > ******************** > Testing: > FAIL: AddressSanitizer :: deep_thread_stack.cc (32 of 15209) > ******************** TEST 'AddressSanitizer :: deep_thread_stack.cc' > FAILED ******************** > Script: > -- > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O2 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O3 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O0 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O2 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O3 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -- > Exit Code: 1 > Command Output (stderr): > -- > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc:52:11: > error: expected string not found in input > // CHECK: AddressSanitizer: heap-use-after-free > ^ > <stdin>:1:1: note: scanning from here > ==19996==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, > 0xf612e000) > ^ > <stdin>:1:7: note: possible intended match here > ==19996==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, > 0xf612e000) > ^ > -- > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest (119 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ManyThreadsTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ManyThreadsTest > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf31f7030, > 0xf31f7000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, > 0xf467c000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xed2c5030, > 0xed2c5000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef8d9030, > 0xef8d9000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, > 0xf2872000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf025e030, > 0xf025e000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xee5cf030, > 0xee5cf000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeef54030, > 0xeef54000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, > 0xedc4a000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1eed030, > 0xf1eed000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xec940030, > 0xec940000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1568030, > 0xf1568000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3b7c030, > 0xf3b7c000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebfbb030, > 0xebfbb000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeacb1030, > 0xeacb1000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0be3030, > 0xf0be3000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #0 0x806c0e3==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf766d96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest (131 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.PthreadExitTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.PthreadExitTest > ==21955==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf762196d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest (161 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadNamesTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadNamesTest > ==22250==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, > 0xf467c000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf769496d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest (162 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadStackReuseTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadStackReuseTest > ==22256==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf761196d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest (164 of > 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedMallocStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedMallocStressTest > ==22260==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, > 0xf30f7000) > ==22260==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf760596d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest (165 > of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest' > FAILED ******************** > Note: Google Test filter = AddressSanitizer.ThreadedOneSizeMallocStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedOneSizeMallocStressTest > ==22262==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, > 0xf2872000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf76aa96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest (166 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedQuarantineTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedQuarantineTest > ==22272==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf75ca96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest (167 of > 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedStressStackReuseTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedStressStackReuseTest > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3a7c030, > 0xf3a7c000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef7d9030, > 0xef7d9000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf015e030, > 0xf015e000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1ded030, > 0xf1ded000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2772030, > 0xf2772000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeee54030, > 0xeee54000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1468030, > 0xf1468000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0ae3030, > 0xf0ae3000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedb4a030, > 0xedb4a000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, > 0xf30f7000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeabb1030, > 0xeabb1000) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf75e096d (/lib32/libpthread.so.0+0x596d) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebebb030, > 0xebebb000) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedTest (168 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedTest > /local/mnt/workspace/draco/compiler-rt/lib/asan/tests/asan_test.cc:860: > Failure > Death test: ThreadedTestSpawn() > Result: died but not with expected error. > Expected: Thread T.*created.*Thread T.*created.*Thread T.*created > Actual msg: > [ DEATH ] ==22299==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3c7c030, > 0xf3c7c000) > [ DEATH ] #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > [ DEATH ] #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > [ DEATH ] #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > [ DEATH ] #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > [ DEATH ] #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > [ DEATH ] #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > [ DEATH ] #6 0xf765296d (/lib32/libpthread.so.0+0x596d) > [ DEATH ] > [ FAILED ] AddressSanitizer.ThreadedTest (45 ms) > [----------] 1 test from AddressSanitizer (45 ms total) > > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (47 ms total) > [ PASSED ] 0 tests. > [ FAILED ] 1 test, listed below: > [ FAILED ] AddressSanitizer.ThreadedTest > > 1 FAILED TEST > YOU HAVE 25 DISABLED TESTS > > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest > (197 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest' > FAILED ******************** > Note: Google Test filter > AddressSanitizerInterface.ManyThreadsWithStatsStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizerInterface > [ RUN ] AddressSanitizerInterface.ManyThreadsWithStatsStressTest > ==22460==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, > 0xedc4a000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf769996d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > FAIL: SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker (14911 of > 15209) > ******************** TEST 'SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker' FAILED > ******************** > Note: Google Test filter = SanitizerCommon.ThreadStackTlsWorker > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from SanitizerCommon > [ RUN ] SanitizerCommon.ThreadStackTlsWorker > ==15484==Sanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > ((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size)) (4148203568, > 4148203520) > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > FAIL: SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize (14914 of > 15209) > ******************** TEST 'SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize' FAILED > ******************** > Note: Google Test filter = SanitizerLinux.ThreadDescriptorSize > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from SanitizerLinux > [ RUN ] SanitizerLinux.ThreadDescriptorSize > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc:230: > Failure > Value of: ThreadDescriptorSize() > Actual: 1216 > Expected: (uptr)result > Which is: 1168 > [ FAILED ] SanitizerLinux.ThreadDescriptorSize (2 ms) > [----------] 1 test from SanitizerLinux (2 ms total) > > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (2 ms total) > [ PASSED ] 0 tests. > [ FAILED ] 1 test, listed below: > [ FAILED ] SanitizerLinux.ThreadDescriptorSize > > 1 FAILED TEST > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > > 2 warning(s) in tests. > Testing Time: 138.05s > ******************** > > On Thu, May 30, 2013 at 12:28 PM, Alexey Samsonov <samsonov at google.com> > wrote: > > > > On Thu, May 30, 2013 at 10:05 PM, Greg Fitzgerald <garious at gmail.com> > wrote: > >> > >> The sanitizer common and asan that mention 'thread' are failing for me > >> this morning. How are your bots looking? Last good commit here was > >> 512c616cacf70ca029a2bf719a482b902f3687cd. > > > > > > Hm, our bots seem to be green. Could you refer to guilty svn revision? > >> > >> > >> > You could try preprocessing your report with perl or sed to fix paths > >> > to your binaries. It would be great to have an option for that in > >> > asan_symbolize.py. > >> > > >> > As for addr2line, we just install binutils-multiarch ubuntu package. > >> > >> Cool, that gets the job done, thanks. Looks like there's some effort > >> going into embedding the addr2line functionality into compiler-rt. Is > >> that something folks are actively working on? > > > > > > Well, LLVM has llvm-symbolizer tool, which is analogous to addr2line. > > For now sanitizer tools are able to use it for out-of-process > symbolization > > (e.g. on Linux you won't have to run report through asan_symbolize.py if > > you provide env variable ASAN_SYMBOLIZER_PATH=/path/to/llvm-symbolizer). > > We have plans to actually compile the symbolizer into the binary and do > > in-process symbolization, but it's not there yet. Not sure if that's what > > you mean > > by "addr2line in compiler-rt". > >> > >> > >> > >> > Tests are different: certainly tests that depend on instrumentation > >> > are built with clang from the same build tree (that is tests "depend" > on > >> > Clang). > >> > >> The compiler-rt library definitions have no dependency on the clang > >> instrumentation, correct? Only the other way around? > > > > > > I'm confused here. compiler-rt and clang/llvm instrumentation depend on > each > > other, > > so the version of Clang you use should be the same as the version of > > compiler-rt. > > > >> > >> > >> Thanks, > >> Greg > >> > >> > >> On Thu, May 30, 2013 at 1:03 AM, Alexey Samsonov <samsonov at google.com> > >> wrote: > >> > > >> > On Thu, May 30, 2013 at 3:40 AM, Greg Fitzgerald <garious at gmail.com> > >> > wrote: > >> >> > >> >> > Cool, can you use clang 3.3 then? :) > >> >> > >> >> I can, but digging deeper I see that the compiler-rt sanitizer tests > >> >> depend on just-built-clang for its object instrumentation. The next > >> >> time > >> >> the instrumentation changes, I'd expect those tests to break. If the > >> >> lit > >> >> tests that require -fsanitize were moved to the clang repo, then I > >> >> think > >> >> it'd be safe to build compiler-rt with clang 3.3 or gcc 4.6.3. > >> > > >> > > >> > Tests are different: certainly tests that depend on instrumentation > are > >> > built with clang from the same build tree (that is tests "depend" on > >> > Clang). > >> > * when you run "make" in your build tree, you build Clang and runtimes > >> > with > >> > a host compiler > >> > * when you run "make check-all" in your build tree, you use this Clang > >> > and > >> > runtimes to build/run tests. > >> > > >> >> > >> >> > >> >> > >> >> Back to Android, I built the ASan shared object and successfully ran > >> >> this > >> >> example: > >> >> > >> >> > >> >> > https://code.google.com/p/address-sanitizer/source/browse/wiki/example_UseAfterFree.cc?r=1580 > >> >> > >> >> But unlike these instructions: > >> >> http://www.chromium.org/developers/testing/addresssanitizer > >> >> > >> >> the Android instructions don't mention asan_symbolize.py > >> >> https://code.google.com/p/address-sanitizer/wiki/Android > >> >> > >> >> When I use asan_symbolize.py (from Linux), I see no symbols in the > >> >> stack > >> >> trace and the following error messages: > >> >> > >> >> addr2line: '/data/example_UseAfterFree': No such file > >> >> addr2line: '/data/libclang_rt.asan-arm-android.so': No such file > >> >> addr2line: '/system/lib/libstdc++.so': No such file > >> >> > >> >> How can I decode those addresses in the stack trace? Is there a way > to > >> >> configure asan_symbolize.py to find my binaries and > >> >> arm-linux-androideabi-addr2line? > >> >> > >> >> Thanks, > >> >> Greg > >> >> > >> >> P.S. Thanks for the colorful output. You make address sanitizing > feel > >> >> like Christmas. > >> >> > >> >> > >> >> On Wed, May 29, 2013 at 7:28 AM, Alexey Samsonov < > samsonov at google.com> > >> >> wrote: > >> >>> > >> >>> On Wed, May 29, 2013 at 5:40 PM, Greg Fitzgerald <garious at gmail.com > > > >> >>> wrote: > >> >>>> > >> >>>> For me, UBsan fails with clang 3.2 and passes with clang 3.3. > >> >>> > >> >>> > >> >>> Cool, can you use clang 3.3 then? :) I think that the reason > selected > >> >>> UBSan tests fail under clang 3.2 is a bug in Clang, which was fixed > >> >>> (Richard > >> >>> may correct me if I'm wrong). > >> >>> I don't really want to mark these tests as "failing on a certain > >> >>> version > >> >>> of host compiler". > >> >>>> > >> >>>> > >> >>>> Using a fixed version allows you to build all > clang/llvm/compiler-rt > >> >>>> with one compiler. It simplifies the build process quite a bit. > >> >>>> Also > >> >>>> better for isolating regressions in compiler-rt, especially if you > >> >>>> use > >> >>>> git-bisect. > >> >>> > >> >>> > >> >>> I think you may fix a host compiler (it may be clang 3.3 or gcc > >> >>> 4.6.3), > >> >>> build w/o -Werror and stay happy most of the time. > >> >>> Bootstrap process (use system compiler to build Clang, use this > Clang > >> >>> to > >> >>> build LLVM+Clang+compiler-rt) isn't really scary, it adds just a few > >> >>> lines > >> >>> to your build script. > >> >>> AFAIK some developers actually do this every day. But, yes, this is > >> >>> not > >> >>> user-friendly, and we probably should document it better (or even > >> >>> provide > >> >>> the scripts) somewhere... > >> >>> > >> >>>> > >> >>>> > >> >>>> Greg > >> >>>> > >> >>>> > >> >>>> On May 29, 2013, at 12:30 AM, Alexey Samsonov <samsonov at google.com > > > >> >>>> wrote: > >> >>>> > >> >>>> UBsan tests work for me when I run "check-ubsan" in both build > trees > >> >>>> (the one with gcc 4.6.3 as a host compiler, and the one with fresh > >> >>>> Clang). > >> >>>> It's pretty convenient for us to use fresh Clang to configure LLVM > >> >>>> and > >> >>>> compiler-rt. One major reason is that autoconf/make build system > >> >>>> always > >> >>>> builds compiler-rt with just-built Clang. > >> >>>> There are other benefits, like keeping sanitizers code > >> >>>> "-Werror"-clean > >> >>>> under the fresh Clang, ability to catch regressions in compiler > etc. > >> >>>> Why > >> >>>> would you need a fixed version? > >> >>>> > >> >>>> > >> >>>> On Tue, May 28, 2013 at 10:26 PM, Greg Fitzgerald < > garious at gmail.com> > >> >>>> wrote: > >> >>>>> > >> >>>>> Okay, dropping gcc 4.4.3 makes sense. How do you feel about using > >> >>>>> clang 3.2 (and the upcoming 3.3) instead of tip-of-the-trunk > clang? > >> >>>>> It > >> >>>>> looks like everything works great, but that you just need to make > >> >>>>> those UB > >> >>>>> tests 'unsupported' since they fail with "libclang_rt.ubsan was > >> >>>>> built > >> >>>>> without __int128 support". > >> >>>>> > >> >>>>> Thanks, > >> >>>>> Greg > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> On Mon, May 27, 2013 at 12:36 AM, Alexey Samsonov > >> >>>>> <samsonov at google.com> > >> >>>>> wrote: > >> >>>>>> > >> >>>>>> > >> >>>>>> On Sun, May 26, 2013 at 12:17 AM, Evgeniy Stepanov > >> >>>>>> <eugeni.stepanov at gmail.com> wrote: > >> >>>>>>> > >> >>>>>>> On Sat, May 25, 2013 at 4:12 AM, Greg Fitzgerald > >> >>>>>>> <garious at gmail.com> > >> >>>>>>> wrote: > >> >>>>>>> > When I build compiler-rt with clang 3.2, all lsan tests pass. > >> >>>>>>> > The > >> >>>>>>> > only > >> >>>>>>> > failing tests I see are in ubsan: > >> >>>>>>> > > >> >>>>>>> > Failing Tests (6): > >> >>>>>>> > UndefinedBehaviorSanitizer :: Float/cast-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/add-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/div-zero.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/sub-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/uadd-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/usub-overflow.cpp > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > When I build with gcc 4.4.3, I need the changes below to get > the > >> >>>>>>> > source to > >> >>>>>>> > compile (and then the lsan tests fails). What are you all > using > >> >>>>>>> > to > >> >>>>>>> > build > >> >>>>>>> > compiler-rt? are you developing on linux, osx or windows? > >> >>>>>>> > Using > >> >>>>>>> > gcc or > >> >>>>>>> > llvm? Which should I expect to work? Any buildbots running? > >> >>>>>>> > >> >>>>>> > >> >>>>>> As Evgeniy said, we build compiler-rt on Linux and on Mac OS X, > and > >> >>>>>> run tests for various sanitizers on our buildbots. > >> >>>>>> Note that CMake build system of compiler-rt uses host compiler to > >> >>>>>> build it. On Linux we use: > >> >>>>>> 1) gcc 4.6.3 > >> >>>>>> 2) tip-of-the-trunk Clang, > >> >>>>>> and tests pass under both of these. > >> >>>>>> > >> >>>>>> gcc 4.4.3 seems way too old, so in some sense we've dropped > support > >> >>>>>> for it (you have to make changes, as old gcc is not > >> >>>>>> smart enough to make some POD variables thread-local). > >> >>>>>> > >> >>>>>>> > >> >>>>>>> I think we build compiler-rt with the host compiler, except for > >> >>>>>>> Android. Which is usually a recently-built clang. n Linux, but > we > >> >>>>>>> exercise osx build on our buildbots. > >> >>>>>>> We never build with compiler-rt not in projects/. > >> >>>>>>> Our bot scripts are here: > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > https://code.google.com/p/address-sanitizer/source/browse/#svn%2Ftrunk%2Fbuild%2Fscripts%2Fslave > >> >>>>>>> The bots itself are not publicly visible, we hope to change that > >> >>>>>>> soon. > >> >>>>>>> > >> >>>>>>> > > >> >>>>>>> > And lastly, are there build instructions to build the Android > >> >>>>>>> > shared object? > >> >>>>>>> > Is there any way to build an android static lib? How about > for > >> >>>>>>> > arm-linux? > >> >>>>>>> > >> >>>>>>> Android runtime is special, we build it in a separate build tree > >> >>>>>>> configured with > >> >>>>>>> > >> >>>>>>> > -DCMAKE_TOOLCHAIN_FILE=$LLVM_CHECKOUT/cmake/platforms/Android.cmake > >> >>>>>>> See buildbot_cmake.sh for details. > >> >>>>>>> > >> >>>>>>> > > >> >>>>>>> > Thanks, > >> >>>>>>> > Greg > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > diff --git a/lib/interception/interception.h > >> >>>>>>> > b/lib/interception/interception.h > >> >>>>>>> > index d50af35..1771d4e 100644 > >> >>>>>>> > --- a/lib/interception/interception.h > >> >>>>>>> > +++ b/lib/interception/interception.h > >> >>>>>>> > @@ -27,8 +27,8 @@ typedef __sanitizer::uptr SIZE_T; > >> >>>>>>> > typedef __sanitizer::sptr SSIZE_T; > >> >>>>>>> > typedef __sanitizer::sptr PTRDIFF_T; > >> >>>>>>> > typedef __sanitizer::s64 INTMAX_T; > >> >>>>>>> > -typedef __sanitizer::OFF_T OFF_T; > >> >>>>>>> > -typedef __sanitizer::OFF64_T OFF64_T; > >> >>>>>>> > +//typedef __sanitizer::OFF_T OFF_T; > >> >>>>>>> > +//typedef __sanitizer::OFF64_T OFF64_T; > >> >>>>>>> > > >> >>>>>>> > // How to add an interceptor: > >> >>>>>>> > // Suppose you need to wrap/replace system function > (generally, > >> >>>>>>> > from libc): > >> >>>>>>> > diff --git a/lib/lsan/lsan_allocator.cc > >> >>>>>>> > b/lib/lsan/lsan_allocator.cc > >> >>>>>>> > index 9bf27b1..190dce8 100644 > >> >>>>>>> > --- a/lib/lsan/lsan_allocator.cc > >> >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc > >> >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, > >> >>>>>>> > AllocatorCache, > >> >>>>>>> > SecondaryAllocator> Allocator; > >> >>>>>>> > > >> >>>>>>> > static Allocator allocator; > >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; > >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; > >> >>>>>>> > > >> >>>>>>> > void InitializeAllocator() { > >> >>>>>>> > allocator.Init(); > >> >>>>>>> > diff --git a/lib/msan/msan_allocator.cc > >> >>>>>>> > b/lib/msan/msan_allocator.cc > >> >>>>>>> > index 7435843..3e6adb6 100644 > >> >>>>>>> > --- a/lib/msan/msan_allocator.cc > >> >>>>>>> > +++ b/lib/msan/msan_allocator.cc > >> >>>>>>> > @@ -33,7 +33,7 @@ typedef LargeMmapAllocator<> > >> >>>>>>> > SecondaryAllocator; > >> >>>>>>> > typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, > >> >>>>>>> > SecondaryAllocator> Allocator; > >> >>>>>>> > > >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; > >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; > >> >>>>>>> > static Allocator allocator; > >> >>>>>>> > > >> >>>>>>> > static int inited = 0; > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > On Fri, May 24, 2013 at 6:10 AM, Sergey Matveev > >> >>>>>>> > <earthdok at google.com> wrote: > >> >>>>>>> >> > >> >>>>>>> >> I blame this line in lsan/lit_tests/lit.cfg: > >> >>>>>>> >> > >> >>>>>>> >> # Setup attributes common for all compiler-rt projects. > >> >>>>>>> >> compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects", > >> >>>>>>> >> "compiler-rt", > >> >>>>>>> >> "lib", "lit.common.cfg") > >> >>>>>>> >> > >> >>>>>>> >> > >> >>>>>>> >> On Fri, May 24, 2013 at 2:53 PM, Alexey Samsonov > >> >>>>>>> >> <samsonov at google.com> > >> >>>>>>> >> wrote: > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> On Fri, May 24, 2013 at 3:37 AM, Greg Fitzgerald > >> >>>>>>> >>> <garious at gmail.com> > >> >>>>>>> >>> wrote: > >> >>>>>>> >>>> > >> >>>>>>> >>>> > it assumes that compiler-rt is checked out to > >> >>>>>>> >>>> > llvm/projects/compiler-rt. Apparently, this is a problem. > >> >>>>>>> >>>> > >> >>>>>>> >>>> I have a patch for this ready. I'll send it to you and > >> >>>>>>> >>>> llvm-commits. > >> >>>>>>> >>>> Most of the tests pass with "make check-all" but the > >> >>>>>>> >>>> recently-added lsan > >> >>>>>>> >>>> tests are all failing. Do those fail for you as well? If > >> >>>>>>> >>>> so, > >> >>>>>>> >>>> can we XFAIL > >> >>>>>>> >>>> them for now and try to keep the "make check-all" build > >> >>>>>>> >>>> clean? > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> Thanks! I'll take a look at the patch today. LSan tests work > >> >>>>>>> >>> fine > >> >>>>>>> >>> for me, > >> >>>>>>> >>> and we have them on our buildbot as well. What are the > >> >>>>>>> >>> failures > >> >>>>>>> >>> you see? > >> >>>>>>> >>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> Thanks, > >> >>>>>>> >>>> Greg > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> On Wed, May 22, 2013 at 9:39 PM, Alexey Samsonov > >> >>>>>>> >>>> <samsonov at google.com> > >> >>>>>>> >>>> wrote: > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> Hi! > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> The docs look strange to me - I don't indeed see any CMake > >> >>>>>>> >>>>> support for > >> >>>>>>> >>>>> running compiler-rt tests. > >> >>>>>>> >>>>> Probably compiler-rt folks can comment on this... > >> >>>>>>> >>>>> I think you should run compilert-rt tests manually by > smth. > >> >>>>>>> >>>>> like > >> >>>>>>> >>>>> compiler-rt/test/Unit/test. > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> CMake build system is able of running a bunch of sanitizer > >> >>>>>>> >>>>> tests > >> >>>>>>> >>>>> (AddressSanitizer, ThreadSanitizer etc.), and it assumes > >> >>>>>>> >>>>> that > >> >>>>>>> >>>>> compiler-rt is checked out to llvm/projects/compiler-rt. > >> >>>>>>> >>>>> Apparently, > >> >>>>>>> >>>>> this is a problem. There was a patch that tried to address > >> >>>>>>> >>>>> this, but > >> >>>>>>> >>>>> it never got committed. > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> On Wed, May 22, 2013 at 11:38 PM, Greg Fitzgerald > >> >>>>>>> >>>>> <garious at gmail.com> > >> >>>>>>> >>>>> wrote: > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> Anybody working on porting the compiler-rt tests to > cmake? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> The online documentation shows a preference for cmake and > >> >>>>>>> >>>>>> ctest, but > >> >>>>>>> >>>>>> the CMakeLists file has the comment "Currently the tests > >> >>>>>>> >>>>>> have > >> >>>>>>> >>>>>> not been > >> >>>>>>> >>>>>> ported to CMake, so disable this directory." How should > we > >> >>>>>>> >>>>>> be > >> >>>>>>> >>>>>> running the > >> >>>>>>> >>>>>> test suite? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> http://compiler-rt.llvm.org/ > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> My immediate issue is that "make check-all" fails in the > >> >>>>>>> >>>>>> cmake > >> >>>>>>> >>>>>> build > >> >>>>>>> >>>>>> when compiler-rt is outside the projects directory. > When I > >> >>>>>>> >>>>>> point to > >> >>>>>>> >>>>>> compiler-rt with LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, > lit > >> >>>>>>> >>>>>> still looks for > >> >>>>>>> >>>>>> lit.common.cfg within "projects/compiler-rt" instead of > the > >> >>>>>>> >>>>>> external > >> >>>>>>> >>>>>> directory. I use similar CMake variables for Clang and > >> >>>>>>> >>>>>> Polly > >> >>>>>>> >>>>>> and have had > >> >>>>>>> >>>>>> no trouble. Any recommendations for how to fix? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> Thanks, > >> >>>>>>> >>>>>> Greg > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> _______________________________________________ > >> >>>>>>> >>>>>> LLVM Developers mailing list > >> >>>>>>> >>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> -- > >> >>>>>>> >>>>> Alexey Samsonov, MSK > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> -- > >> >>>>>>> >>> Alexey Samsonov, MSK > >> >>>>>>> >> > >> >>>>>>> >> > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > _______________________________________________ > >> >>>>>>> > LLVM Developers mailing list > >> >>>>>>> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>>> > > >> >>>>>>> _______________________________________________ > >> >>>>>>> LLVM Developers mailing list > >> >>>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> -- > >> >>>>>> Alexey Samsonov, MSK > >> >>>>> > >> >>>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> -- > >> >>>> Alexey Samsonov, MSK > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> Alexey Samsonov, MSK > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > Alexey Samsonov, MSK > > > > > > > > > > -- > > Alexey Samsonov, MSK >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/d5c5de52/attachment.html>
r182853 introduced an assumption about the size of thread descriptor in glibc. On your system it's 48 bytes off, which is why the tests fail. What version of libc are you using? (Repeating - my previous message got stuck in the moderation queue because the quoted text was too long.) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/8d4918f1/attachment.html>
I guess the main problem is that we are not testing asan on Android/x86, although we should. On Fri, May 31, 2013 at 2:04 AM, Greg Fitzgerald <garious at gmail.com> wrote:> > We have plans to actually compile the symbolizer into the binary and do > > in-process symbolization, but it's not there yet. > > nice! > > > > I'm confused here. compiler-rt and clang/llvm instrumentation depend on > each other > > These two projects don't need to be interdependent and, for the most > part, they aren't. In the same way that llvm does not depend on > clang, compiler-rt can be standalone too if the sanitizer's > instrumentation tests were moved to clang. compiler-rt is just a C > library and its functions can be tested in isolation. > > > > our bots seem to be green. Could you refer to guilty svn revision? > > Hmm, I just did another clean build, just to be sure. I > consistently have see 14 failures (tests and logs below). I believe > r182853 broke the SanitizerCommon tests and r182854 broke the asan > tests, but I'm not 100% certain and unfortunately don't have time to > dive into this one. Would you mind taking a quick scan of the logs > below and letting me know if anything stands out to you. > > Failing Tests (14): > AddressSanitizer :: Linux/unpoison_tls.cc > AddressSanitizer :: deep_thread_stack.cc > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest > AddressSanitizer-Unit :: Asan-i386-Test/AddressSanitizer.ThreadedTest > AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest > SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker > SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize > > > Here's the log. Anything stand out to you? > > -- Testing: 15209 tests, 4 threads -- > Testing: > FAIL: AddressSanitizer :: Linux/unpoison_tls.cc (19 of 15209) > ******************** TEST 'AddressSanitizer :: Linux/unpoison_tls.cc' > FAILED ******************** > Script: > -- > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > 2>&1 > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp > 2>&1 > -- > Exit Code: 1 > Command Output (stdout): > -- > ==19600==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf6111030, > 0xf6111000) > #0 0x8069d63 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8069d63) > #1 0x806d30b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806d30b) > #2 0x8074342 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x8074342) > #3 0x806afc8 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806afc8) > #4 0x806b2ee > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x806b2ee) > #5 0x805e07d > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Linux/Output/unpoison_tls.cc.tmp+0x805e07d) > #6 0xf76c496d (/lib32/libpthread.so.0+0x596d) > -- > > ******************** > Testing: > FAIL: AddressSanitizer :: deep_thread_stack.cc (32 of 15209) > ******************** TEST 'AddressSanitizer :: deep_thread_stack.cc' > FAILED ******************** > Script: > -- > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O2 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O3 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O0 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O1 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O2 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > /local/mnt/workspace/draco/out/release_stage2/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer > -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m32 -O3 > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -o > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > && > /local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/lit_tests/Output/deep_thread_stack.cc.tmp > 2>&1 | > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc > -- > Exit Code: 1 > Command Output (stderr): > -- > > /local/mnt/workspace/draco/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc:52:11: > error: expected string not found in input > // CHECK: AddressSanitizer: heap-use-after-free > ^ > <stdin>:1:1: note: scanning from here > ==19996==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, > 0xf612e000) > ^ > <stdin>:1:7: note: possible intended match here > ==19996==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf612e030, > 0xf612e000) > ^ > -- > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest (119 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ManyThreadsTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ManyThreadsTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ManyThreadsTest > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf31f7030, > 0xf31f7000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, > 0xf467c000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xed2c5030, > 0xed2c5000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef8d9030, > 0xef8d9000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, > 0xf2872000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf025e030, > 0xf025e000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xee5cf030, > 0xee5cf000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeef54030, > 0xeef54000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, > 0xedc4a000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1eed030, > 0xf1eed000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xec940030, > 0xec940000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1568030, > 0xf1568000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3b7c030, > 0xf3b7c000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebfbb030, > 0xebfbb000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeacb1030, > 0xeacb1000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0be3030, > 0xf0be3000) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > ==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #0 0x806c0e3==21625==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:126 > "((allocated_end_ - allocated_current_ >= (sptr)size)) != (0)" (0x0, > 0x0) > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf766d96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest (131 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.PthreadExitTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.PthreadExitTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.PthreadExitTest > ==21955==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf762196d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest (161 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadNamesTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadNamesTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadNamesTest > ==22250==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf467c030, > 0xf467c000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf769496d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest (162 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadStackReuseTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadStackReuseTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadStackReuseTest > ==22256==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf761196d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest (164 of > 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedMallocStressTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedMallocStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedMallocStressTest > ==22260==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, > 0xf30f7000) > ==22260==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf760596d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest (165 > of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedOneSizeMallocStressTest' > FAILED ******************** > Note: Google Test filter = AddressSanitizer.ThreadedOneSizeMallocStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedOneSizeMallocStressTest > ==22262==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2872030, > 0xf2872000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf76aa96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest (166 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedQuarantineTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedQuarantineTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedQuarantineTest > ==22272==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf75ca96d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest (167 of > 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedStressStackReuseTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedStressStackReuseTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedStressStackReuseTest > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3a7c030, > 0xf3a7c000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf457b030, > 0xf457b000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xef7d9030, > 0xef7d9000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf015e030, > 0xf015e000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1ded030, > 0xf1ded000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2772030, > 0xf2772000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeee54030, > 0xeee54000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf1468030, > 0xf1468000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf0ae3030, > 0xf0ae3000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedb4a030, > 0xedb4a000) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf30f7030, > 0xf30f7000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xeabb1030, > 0xeabb1000) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf75e096d (/lib32/libpthread.so.0+0x596d) > ==22274==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xebebb030, > 0xebebb000) > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedTest (168 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizer.ThreadedTest' FAILED > ******************** > Note: Google Test filter = AddressSanitizer.ThreadedTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizer > [ RUN ] AddressSanitizer.ThreadedTest > /local/mnt/workspace/draco/compiler-rt/lib/asan/tests/asan_test.cc:860: > Failure > Death test: ThreadedTestSpawn() > Result: died but not with expected error. > Expected: Thread T.*created.*Thread T.*created.*Thread T.*created > Actual msg: > [ DEATH ] ==22299==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf3c7c030, > 0xf3c7c000) > [ DEATH ] #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > [ DEATH ] #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > [ DEATH ] #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > [ DEATH ] #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > [ DEATH ] #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > [ DEATH ] #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > [ DEATH ] #6 0xf765296d (/lib32/libpthread.so.0+0x596d) > [ DEATH ] > [ FAILED ] AddressSanitizer.ThreadedTest (45 ms) > [----------] 1 test from AddressSanitizer (45 ms total) > > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (47 ms total) > [ PASSED ] 0 tests. > [ FAILED ] 1 test, listed below: > [ FAILED ] AddressSanitizer.ThreadedTest > > 1 FAILED TEST > YOU HAVE 25 DISABLED TESTS > > > ******************** > Testing: > FAIL: AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest > (197 of 15209) > ******************** TEST 'AddressSanitizer-Unit :: > Asan-i386-Test/AddressSanitizerInterface.ManyThreadsWithStatsStressTest' > FAILED ******************** > Note: Google Test filter > AddressSanitizerInterface.ManyThreadsWithStatsStressTest > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from AddressSanitizerInterface > [ RUN ] AddressSanitizerInterface.ManyThreadsWithStatsStressTest > ==22460==AddressSanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xedc4a030, > 0xedc4a000) > #0 0x806c0e3 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806c0e3) > #1 0x806f68b > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806f68b) > #2 0x80766c2 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80766c2) > #3 0x806d348 > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d348) > #4 0x806d66e > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x806d66e) > #5 0x80603fd > > (/local/mnt/workspace/draco/out/release_stage2/projects/compiler-rt/lib/asan/tests/Asan-i386-Test+0x80603fd) > #6 0xf769996d (/lib32/libpthread.so.0+0x596d) > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > FAIL: SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker (14911 of > 15209) > ******************** TEST 'SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerCommon.ThreadStackTlsWorker' FAILED > ******************** > Note: Google Test filter = SanitizerCommon.ThreadStackTlsWorker > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from SanitizerCommon > [ RUN ] SanitizerCommon.ThreadStackTlsWorker > ==15484==Sanitizer CHECK failed: > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:244 > ((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size)) (4148203568, > 4148203520) > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > FAIL: SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize (14914 of > 15209) > ******************** TEST 'SanitizerCommon-Unit :: > Sanitizer-i386-Test/SanitizerLinux.ThreadDescriptorSize' FAILED > ******************** > Note: Google Test filter = SanitizerLinux.ThreadDescriptorSize > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from SanitizerLinux > [ RUN ] SanitizerLinux.ThreadDescriptorSize > > /local/mnt/workspace/draco/compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc:230: > Failure > Value of: ThreadDescriptorSize() > Actual: 1216 > Expected: (uptr)result > Which is: 1168 > [ FAILED ] SanitizerLinux.ThreadDescriptorSize (2 ms) > [----------] 1 test from SanitizerLinux (2 ms total) > > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (2 ms total) > [ PASSED ] 0 tests. > [ FAILED ] 1 test, listed below: > [ FAILED ] SanitizerLinux.ThreadDescriptorSize > > 1 FAILED TEST > > ******************** > Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. > > 2 warning(s) in tests. > Testing Time: 138.05s > ******************** > > On Thu, May 30, 2013 at 12:28 PM, Alexey Samsonov <samsonov at google.com> > wrote: > > > > On Thu, May 30, 2013 at 10:05 PM, Greg Fitzgerald <garious at gmail.com> > wrote: > >> > >> The sanitizer common and asan that mention 'thread' are failing for me > >> this morning. How are your bots looking? Last good commit here was > >> 512c616cacf70ca029a2bf719a482b902f3687cd. > > > > > > Hm, our bots seem to be green. Could you refer to guilty svn revision? > >> > >> > >> > You could try preprocessing your report with perl or sed to fix paths > >> > to your binaries. It would be great to have an option for that in > >> > asan_symbolize.py. > >> > > >> > As for addr2line, we just install binutils-multiarch ubuntu package. > >> > >> Cool, that gets the job done, thanks. Looks like there's some effort > >> going into embedding the addr2line functionality into compiler-rt. Is > >> that something folks are actively working on? > > > > > > Well, LLVM has llvm-symbolizer tool, which is analogous to addr2line. > > For now sanitizer tools are able to use it for out-of-process > symbolization > > (e.g. on Linux you won't have to run report through asan_symbolize.py if > > you provide env variable ASAN_SYMBOLIZER_PATH=/path/to/llvm-symbolizer). > > We have plans to actually compile the symbolizer into the binary and do > > in-process symbolization, but it's not there yet. Not sure if that's what > > you mean > > by "addr2line in compiler-rt". > >> > >> > >> > >> > Tests are different: certainly tests that depend on instrumentation > >> > are built with clang from the same build tree (that is tests "depend" > on > >> > Clang). > >> > >> The compiler-rt library definitions have no dependency on the clang > >> instrumentation, correct? Only the other way around? > > > > > > I'm confused here. compiler-rt and clang/llvm instrumentation depend on > each > > other, > > so the version of Clang you use should be the same as the version of > > compiler-rt. > > > >> > >> > >> Thanks, > >> Greg > >> > >> > >> On Thu, May 30, 2013 at 1:03 AM, Alexey Samsonov <samsonov at google.com> > >> wrote: > >> > > >> > On Thu, May 30, 2013 at 3:40 AM, Greg Fitzgerald <garious at gmail.com> > >> > wrote: > >> >> > >> >> > Cool, can you use clang 3.3 then? :) > >> >> > >> >> I can, but digging deeper I see that the compiler-rt sanitizer tests > >> >> depend on just-built-clang for its object instrumentation. The next > >> >> time > >> >> the instrumentation changes, I'd expect those tests to break. If the > >> >> lit > >> >> tests that require -fsanitize were moved to the clang repo, then I > >> >> think > >> >> it'd be safe to build compiler-rt with clang 3.3 or gcc 4.6.3. > >> > > >> > > >> > Tests are different: certainly tests that depend on instrumentation > are > >> > built with clang from the same build tree (that is tests "depend" on > >> > Clang). > >> > * when you run "make" in your build tree, you build Clang and runtimes > >> > with > >> > a host compiler > >> > * when you run "make check-all" in your build tree, you use this Clang > >> > and > >> > runtimes to build/run tests. > >> > > >> >> > >> >> > >> >> > >> >> Back to Android, I built the ASan shared object and successfully ran > >> >> this > >> >> example: > >> >> > >> >> > >> >> > https://code.google.com/p/address-sanitizer/source/browse/wiki/example_UseAfterFree.cc?r=1580 > >> >> > >> >> But unlike these instructions: > >> >> http://www.chromium.org/developers/testing/addresssanitizer > >> >> > >> >> the Android instructions don't mention asan_symbolize.py > >> >> https://code.google.com/p/address-sanitizer/wiki/Android > >> >> > >> >> When I use asan_symbolize.py (from Linux), I see no symbols in the > >> >> stack > >> >> trace and the following error messages: > >> >> > >> >> addr2line: '/data/example_UseAfterFree': No such file > >> >> addr2line: '/data/libclang_rt.asan-arm-android.so': No such file > >> >> addr2line: '/system/lib/libstdc++.so': No such file > >> >> > >> >> How can I decode those addresses in the stack trace? Is there a way > to > >> >> configure asan_symbolize.py to find my binaries and > >> >> arm-linux-androideabi-addr2line? > >> >> > >> >> Thanks, > >> >> Greg > >> >> > >> >> P.S. Thanks for the colorful output. You make address sanitizing > feel > >> >> like Christmas. > >> >> > >> >> > >> >> On Wed, May 29, 2013 at 7:28 AM, Alexey Samsonov < > samsonov at google.com> > >> >> wrote: > >> >>> > >> >>> On Wed, May 29, 2013 at 5:40 PM, Greg Fitzgerald <garious at gmail.com > > > >> >>> wrote: > >> >>>> > >> >>>> For me, UBsan fails with clang 3.2 and passes with clang 3.3. > >> >>> > >> >>> > >> >>> Cool, can you use clang 3.3 then? :) I think that the reason > selected > >> >>> UBSan tests fail under clang 3.2 is a bug in Clang, which was fixed > >> >>> (Richard > >> >>> may correct me if I'm wrong). > >> >>> I don't really want to mark these tests as "failing on a certain > >> >>> version > >> >>> of host compiler". > >> >>>> > >> >>>> > >> >>>> Using a fixed version allows you to build all > clang/llvm/compiler-rt > >> >>>> with one compiler. It simplifies the build process quite a bit. > >> >>>> Also > >> >>>> better for isolating regressions in compiler-rt, especially if you > >> >>>> use > >> >>>> git-bisect. > >> >>> > >> >>> > >> >>> I think you may fix a host compiler (it may be clang 3.3 or gcc > >> >>> 4.6.3), > >> >>> build w/o -Werror and stay happy most of the time. > >> >>> Bootstrap process (use system compiler to build Clang, use this > Clang > >> >>> to > >> >>> build LLVM+Clang+compiler-rt) isn't really scary, it adds just a few > >> >>> lines > >> >>> to your build script. > >> >>> AFAIK some developers actually do this every day. But, yes, this is > >> >>> not > >> >>> user-friendly, and we probably should document it better (or even > >> >>> provide > >> >>> the scripts) somewhere... > >> >>> > >> >>>> > >> >>>> > >> >>>> Greg > >> >>>> > >> >>>> > >> >>>> On May 29, 2013, at 12:30 AM, Alexey Samsonov <samsonov at google.com > > > >> >>>> wrote: > >> >>>> > >> >>>> UBsan tests work for me when I run "check-ubsan" in both build > trees > >> >>>> (the one with gcc 4.6.3 as a host compiler, and the one with fresh > >> >>>> Clang). > >> >>>> It's pretty convenient for us to use fresh Clang to configure LLVM > >> >>>> and > >> >>>> compiler-rt. One major reason is that autoconf/make build system > >> >>>> always > >> >>>> builds compiler-rt with just-built Clang. > >> >>>> There are other benefits, like keeping sanitizers code > >> >>>> "-Werror"-clean > >> >>>> under the fresh Clang, ability to catch regressions in compiler > etc. > >> >>>> Why > >> >>>> would you need a fixed version? > >> >>>> > >> >>>> > >> >>>> On Tue, May 28, 2013 at 10:26 PM, Greg Fitzgerald < > garious at gmail.com> > >> >>>> wrote: > >> >>>>> > >> >>>>> Okay, dropping gcc 4.4.3 makes sense. How do you feel about using > >> >>>>> clang 3.2 (and the upcoming 3.3) instead of tip-of-the-trunk > clang? > >> >>>>> It > >> >>>>> looks like everything works great, but that you just need to make > >> >>>>> those UB > >> >>>>> tests 'unsupported' since they fail with "libclang_rt.ubsan was > >> >>>>> built > >> >>>>> without __int128 support". > >> >>>>> > >> >>>>> Thanks, > >> >>>>> Greg > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> On Mon, May 27, 2013 at 12:36 AM, Alexey Samsonov > >> >>>>> <samsonov at google.com> > >> >>>>> wrote: > >> >>>>>> > >> >>>>>> > >> >>>>>> On Sun, May 26, 2013 at 12:17 AM, Evgeniy Stepanov > >> >>>>>> <eugeni.stepanov at gmail.com> wrote: > >> >>>>>>> > >> >>>>>>> On Sat, May 25, 2013 at 4:12 AM, Greg Fitzgerald > >> >>>>>>> <garious at gmail.com> > >> >>>>>>> wrote: > >> >>>>>>> > When I build compiler-rt with clang 3.2, all lsan tests pass. > >> >>>>>>> > The > >> >>>>>>> > only > >> >>>>>>> > failing tests I see are in ubsan: > >> >>>>>>> > > >> >>>>>>> > Failing Tests (6): > >> >>>>>>> > UndefinedBehaviorSanitizer :: Float/cast-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/add-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/div-zero.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/sub-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/uadd-overflow.cpp > >> >>>>>>> > UndefinedBehaviorSanitizer :: Integer/usub-overflow.cpp > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > When I build with gcc 4.4.3, I need the changes below to get > the > >> >>>>>>> > source to > >> >>>>>>> > compile (and then the lsan tests fails). What are you all > using > >> >>>>>>> > to > >> >>>>>>> > build > >> >>>>>>> > compiler-rt? are you developing on linux, osx or windows? > >> >>>>>>> > Using > >> >>>>>>> > gcc or > >> >>>>>>> > llvm? Which should I expect to work? Any buildbots running? > >> >>>>>>> > >> >>>>>> > >> >>>>>> As Evgeniy said, we build compiler-rt on Linux and on Mac OS X, > and > >> >>>>>> run tests for various sanitizers on our buildbots. > >> >>>>>> Note that CMake build system of compiler-rt uses host compiler to > >> >>>>>> build it. On Linux we use: > >> >>>>>> 1) gcc 4.6.3 > >> >>>>>> 2) tip-of-the-trunk Clang, > >> >>>>>> and tests pass under both of these. > >> >>>>>> > >> >>>>>> gcc 4.4.3 seems way too old, so in some sense we've dropped > support > >> >>>>>> for it (you have to make changes, as old gcc is not > >> >>>>>> smart enough to make some POD variables thread-local). > >> >>>>>> > >> >>>>>>> > >> >>>>>>> I think we build compiler-rt with the host compiler, except for > >> >>>>>>> Android. Which is usually a recently-built clang. n Linux, but > we > >> >>>>>>> exercise osx build on our buildbots. > >> >>>>>>> We never build with compiler-rt not in projects/. > >> >>>>>>> Our bot scripts are here: > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > https://code.google.com/p/address-sanitizer/source/browse/#svn%2Ftrunk%2Fbuild%2Fscripts%2Fslave > >> >>>>>>> The bots itself are not publicly visible, we hope to change that > >> >>>>>>> soon. > >> >>>>>>> > >> >>>>>>> > > >> >>>>>>> > And lastly, are there build instructions to build the Android > >> >>>>>>> > shared object? > >> >>>>>>> > Is there any way to build an android static lib? How about > for > >> >>>>>>> > arm-linux? > >> >>>>>>> > >> >>>>>>> Android runtime is special, we build it in a separate build tree > >> >>>>>>> configured with > >> >>>>>>> > >> >>>>>>> > -DCMAKE_TOOLCHAIN_FILE=$LLVM_CHECKOUT/cmake/platforms/Android.cmake > >> >>>>>>> See buildbot_cmake.sh for details. > >> >>>>>>> > >> >>>>>>> > > >> >>>>>>> > Thanks, > >> >>>>>>> > Greg > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > diff --git a/lib/interception/interception.h > >> >>>>>>> > b/lib/interception/interception.h > >> >>>>>>> > index d50af35..1771d4e 100644 > >> >>>>>>> > --- a/lib/interception/interception.h > >> >>>>>>> > +++ b/lib/interception/interception.h > >> >>>>>>> > @@ -27,8 +27,8 @@ typedef __sanitizer::uptr SIZE_T; > >> >>>>>>> > typedef __sanitizer::sptr SSIZE_T; > >> >>>>>>> > typedef __sanitizer::sptr PTRDIFF_T; > >> >>>>>>> > typedef __sanitizer::s64 INTMAX_T; > >> >>>>>>> > -typedef __sanitizer::OFF_T OFF_T; > >> >>>>>>> > -typedef __sanitizer::OFF64_T OFF64_T; > >> >>>>>>> > +//typedef __sanitizer::OFF_T OFF_T; > >> >>>>>>> > +//typedef __sanitizer::OFF64_T OFF64_T; > >> >>>>>>> > > >> >>>>>>> > // How to add an interceptor: > >> >>>>>>> > // Suppose you need to wrap/replace system function > (generally, > >> >>>>>>> > from libc): > >> >>>>>>> > diff --git a/lib/lsan/lsan_allocator.cc > >> >>>>>>> > b/lib/lsan/lsan_allocator.cc > >> >>>>>>> > index 9bf27b1..190dce8 100644 > >> >>>>>>> > --- a/lib/lsan/lsan_allocator.cc > >> >>>>>>> > +++ b/lib/lsan/lsan_allocator.cc > >> >>>>>>> > @@ -43,7 +43,7 @@ typedef CombinedAllocator<PrimaryAllocator, > >> >>>>>>> > AllocatorCache, > >> >>>>>>> > SecondaryAllocator> Allocator; > >> >>>>>>> > > >> >>>>>>> > static Allocator allocator; > >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; > >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; > >> >>>>>>> > > >> >>>>>>> > void InitializeAllocator() { > >> >>>>>>> > allocator.Init(); > >> >>>>>>> > diff --git a/lib/msan/msan_allocator.cc > >> >>>>>>> > b/lib/msan/msan_allocator.cc > >> >>>>>>> > index 7435843..3e6adb6 100644 > >> >>>>>>> > --- a/lib/msan/msan_allocator.cc > >> >>>>>>> > +++ b/lib/msan/msan_allocator.cc > >> >>>>>>> > @@ -33,7 +33,7 @@ typedef LargeMmapAllocator<> > >> >>>>>>> > SecondaryAllocator; > >> >>>>>>> > typedef CombinedAllocator<PrimaryAllocator, AllocatorCache, > >> >>>>>>> > SecondaryAllocator> Allocator; > >> >>>>>>> > > >> >>>>>>> > -static THREADLOCAL AllocatorCache cache; > >> >>>>>>> > +static /*THREADLOCAL*/ AllocatorCache cache; > >> >>>>>>> > static Allocator allocator; > >> >>>>>>> > > >> >>>>>>> > static int inited = 0; > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > On Fri, May 24, 2013 at 6:10 AM, Sergey Matveev > >> >>>>>>> > <earthdok at google.com> wrote: > >> >>>>>>> >> > >> >>>>>>> >> I blame this line in lsan/lit_tests/lit.cfg: > >> >>>>>>> >> > >> >>>>>>> >> # Setup attributes common for all compiler-rt projects. > >> >>>>>>> >> compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects", > >> >>>>>>> >> "compiler-rt", > >> >>>>>>> >> "lib", "lit.common.cfg") > >> >>>>>>> >> > >> >>>>>>> >> > >> >>>>>>> >> On Fri, May 24, 2013 at 2:53 PM, Alexey Samsonov > >> >>>>>>> >> <samsonov at google.com> > >> >>>>>>> >> wrote: > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> On Fri, May 24, 2013 at 3:37 AM, Greg Fitzgerald > >> >>>>>>> >>> <garious at gmail.com> > >> >>>>>>> >>> wrote: > >> >>>>>>> >>>> > >> >>>>>>> >>>> > it assumes that compiler-rt is checked out to > >> >>>>>>> >>>> > llvm/projects/compiler-rt. Apparently, this is a problem. > >> >>>>>>> >>>> > >> >>>>>>> >>>> I have a patch for this ready. I'll send it to you and > >> >>>>>>> >>>> llvm-commits. > >> >>>>>>> >>>> Most of the tests pass with "make check-all" but the > >> >>>>>>> >>>> recently-added lsan > >> >>>>>>> >>>> tests are all failing. Do those fail for you as well? If > >> >>>>>>> >>>> so, > >> >>>>>>> >>>> can we XFAIL > >> >>>>>>> >>>> them for now and try to keep the "make check-all" build > >> >>>>>>> >>>> clean? > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> Thanks! I'll take a look at the patch today. LSan tests work > >> >>>>>>> >>> fine > >> >>>>>>> >>> for me, > >> >>>>>>> >>> and we have them on our buildbot as well. What are the > >> >>>>>>> >>> failures > >> >>>>>>> >>> you see? > >> >>>>>>> >>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> Thanks, > >> >>>>>>> >>>> Greg > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>>> On Wed, May 22, 2013 at 9:39 PM, Alexey Samsonov > >> >>>>>>> >>>> <samsonov at google.com> > >> >>>>>>> >>>> wrote: > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> Hi! > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> The docs look strange to me - I don't indeed see any CMake > >> >>>>>>> >>>>> support for > >> >>>>>>> >>>>> running compiler-rt tests. > >> >>>>>>> >>>>> Probably compiler-rt folks can comment on this... > >> >>>>>>> >>>>> I think you should run compilert-rt tests manually by > smth. > >> >>>>>>> >>>>> like > >> >>>>>>> >>>>> compiler-rt/test/Unit/test. > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> CMake build system is able of running a bunch of sanitizer > >> >>>>>>> >>>>> tests > >> >>>>>>> >>>>> (AddressSanitizer, ThreadSanitizer etc.), and it assumes > >> >>>>>>> >>>>> that > >> >>>>>>> >>>>> compiler-rt is checked out to llvm/projects/compiler-rt. > >> >>>>>>> >>>>> Apparently, > >> >>>>>>> >>>>> this is a problem. There was a patch that tried to address > >> >>>>>>> >>>>> this, but > >> >>>>>>> >>>>> it never got committed. > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> On Wed, May 22, 2013 at 11:38 PM, Greg Fitzgerald > >> >>>>>>> >>>>> <garious at gmail.com> > >> >>>>>>> >>>>> wrote: > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> Anybody working on porting the compiler-rt tests to > cmake? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> The online documentation shows a preference for cmake and > >> >>>>>>> >>>>>> ctest, but > >> >>>>>>> >>>>>> the CMakeLists file has the comment "Currently the tests > >> >>>>>>> >>>>>> have > >> >>>>>>> >>>>>> not been > >> >>>>>>> >>>>>> ported to CMake, so disable this directory." How should > we > >> >>>>>>> >>>>>> be > >> >>>>>>> >>>>>> running the > >> >>>>>>> >>>>>> test suite? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> http://compiler-rt.llvm.org/ > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> My immediate issue is that "make check-all" fails in the > >> >>>>>>> >>>>>> cmake > >> >>>>>>> >>>>>> build > >> >>>>>>> >>>>>> when compiler-rt is outside the projects directory. > When I > >> >>>>>>> >>>>>> point to > >> >>>>>>> >>>>>> compiler-rt with LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, > lit > >> >>>>>>> >>>>>> still looks for > >> >>>>>>> >>>>>> lit.common.cfg within "projects/compiler-rt" instead of > the > >> >>>>>>> >>>>>> external > >> >>>>>>> >>>>>> directory. I use similar CMake variables for Clang and > >> >>>>>>> >>>>>> Polly > >> >>>>>>> >>>>>> and have had > >> >>>>>>> >>>>>> no trouble. Any recommendations for how to fix? > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> Thanks, > >> >>>>>>> >>>>>> Greg > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>>> _______________________________________________ > >> >>>>>>> >>>>>> LLVM Developers mailing list > >> >>>>>>> >>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>>> >>>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> > >> >>>>>>> >>>>> -- > >> >>>>>>> >>>>> Alexey Samsonov, MSK > >> >>>>>>> >>>> > >> >>>>>>> >>>> > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> > >> >>>>>>> >>> -- > >> >>>>>>> >>> Alexey Samsonov, MSK > >> >>>>>>> >> > >> >>>>>>> >> > >> >>>>>>> > > >> >>>>>>> > > >> >>>>>>> > _______________________________________________ > >> >>>>>>> > LLVM Developers mailing list > >> >>>>>>> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>>> > > >> >>>>>>> _______________________________________________ > >> >>>>>>> LLVM Developers mailing list > >> >>>>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > >> >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> -- > >> >>>>>> Alexey Samsonov, MSK > >> >>>>> > >> >>>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> -- > >> >>>> Alexey Samsonov, MSK > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> Alexey Samsonov, MSK > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > Alexey Samsonov, MSK > > > > > > > > > > -- > > Alexey Samsonov, MSK > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/51165556/attachment.html>
I'm confused - do those test failures happen on x86 Android? On Fri, May 31, 2013 at 10:48 AM, Sergey Matveev <earthdok at google.com>wrote:> r182853 introduced an assumption about the size of thread descriptor in > glibc. On your system it's 48 bytes off, which is why the tests fail. What > version of libc are you using? > > (Repeating - my previous message got stuck in the moderation queue because > the quoted text was too long.) >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/14187cae/attachment.html>
[reposting] I guess the main problem is that we are not testing asan on Android/x86, although we should. On Fri, May 31, 2013 at 10:48 AM, Sergey Matveev <earthdok at google.com>wrote:> r182853 introduced an assumption about the size of thread descriptor in > glibc. On your system it's 48 bytes off, which is why the tests fail. What > version of libc are you using? > > (Repeating - my previous message got stuck in the moderation queue because > the quoted text was too long.) > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/523a70c1/attachment.html>