[llvm-bugs] [Bug 36025] New: asan: AddressSanitizer-*-linux-dynamic :: TestCases/Linux/asan_rt_confict_test-1.cc fails on Gentoo stand-alone build
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jan 20 08:21:49 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36025
Bug ID: 36025
Summary: asan: AddressSanitizer-*-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc fails on
Gentoo stand-alone build
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: llvm-bugs at lists.llvm.org
Blocks: 35804
Created attachment 19715
--> https://bugs.llvm.org/attachment.cgi?id=19715&action=edit
sys-libs:compiler-rt-sanitizers-6.0.9999:20180120-132820.log.xz
When testing the 6.0 branch for Gentoo, I have two new ASAN test failures:
AddressSanitizer-i386-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc
AddressSanitizer-x86_64-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc
In both cases, the test executable segfaults without outputting anything.
Curious enough, I can't reproduce this when building compiler-rt in-tree with
other LLVM components.
I've attempted running the working in-tree executable with LD_LIBRARY_PATH
pointing to libasan built stand-alone, and it segfaulted like the stand-alone
build -- therefore, I suspect the problem lies in libasan itself and not the
test.
I'd appreciate any suggestions how to debug this further. I'm attaching the
build log for compiler-rt sanitizers.
FAIL: AddressSanitizer-i386-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc (1354 of 4782)
******************** TEST 'AddressSanitizer-i386-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc' FAILED ********************
Script:
--
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/lib/llvm/6/bin/clang
--driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer
-fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m32
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
-o
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/I386LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
env LD_PRELOAD=libclang_rt.asan-i386.so not
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/I386LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
2>&1 | FileCheck
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
--
Exit Code: 1
Command Output (stderr):
--
+
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/lib/llvm/6/bin/clang
--driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer
-fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m32
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
-o
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/I386LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
+ FileCheck
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
+ env LD_PRELOAD=libclang_rt.asan-i386.so not
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/I386LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc:13:11:
error: expected string not found in input
// CHECK: Your application is linked against incompatible ASan runtimes
^
<stdin>:1:1: note: scanning from here
ERROR: ld.so: object 'libclang_rt.asan-i386.so' from LD_PRELOAD cannot be
preloaded (wrong ELF class: ELFCLASS32): ignored.
^
<stdin>:2:1: note: possible intended match here
Error: Segmentation fault
^
--
********************
FAIL: AddressSanitizer-x86_64-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc (2197 of 4782)
******************** TEST 'AddressSanitizer-x86_64-linux-dynamic ::
TestCases/Linux/asan_rt_confict_test-1.cc' FAILED ********************
Script:
--
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/lib/llvm/6/bin/clang
--driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer
-fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
-o
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
env LD_PRELOAD=libclang_rt.asan-x86_64.so not
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
2>&1 | FileCheck
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
--
Exit Code: 1
Command Output (stderr):
--
+
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/lib/llvm/6/bin/clang
--driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer
-fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
-o
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
+ FileCheck
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
+ env LD_PRELOAD=libclang_rt.asan-x86_64.so not
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999_build/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/asan_rt_confict_test-1.cc.tmp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-6.0.9999/work/compiler-rt-sanitizers-6.0.9999/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc:13:11:
error: expected string not found in input
// CHECK: Your application is linked against incompatible ASan runtimes
^
<stdin>:1:1: note: scanning from here
Error: Segmentation fault
^
--
********************
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=35804
[Bug 35804] [meta] 6.0.0 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180120/9ff7d91d/attachment-0001.html>
More information about the llvm-bugs
mailing list