llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.7k stars 11.87k forks source link

[compiler-rt][PPC] Coverage points in binary and .sancov file do not match. #54071

Open XiaodongLoong opened 2 years ago

XiaodongLoong commented 2 years ago

sanitizer_coverage_trace_pc_guard.cpp test case failed on PPC64, the log as following:

FAIL: SanitizerCommon-lsan-powerpc64le-Linux :: sanitizer_coverage_trace_pc_guard.cpp (526 of 975)
******************** TEST 'SanitizerCommon-lsan-powerpc64le-Linux :: sanitizer_coverage_trace_pc_guard.cpp' FAILED ********************
Script:
--
: 'RUN: at line 8';   DIR=/home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/projects/compiler-rt/test/sanitizer_common/lsan-powerpc64le-Linux/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp_workdir
: 'RUN: at line 9';   rm -rf $DIR
: 'RUN: at line 10';   mkdir -p $DIR
: 'RUN: at line 11';   cd $DIR
: 'RUN: at line 12';      /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=leak  -m64 -fno-function-sections -funwind-tables  -ldl -O0 -fsanitize-coverage=trace-pc-guard /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp -o /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/projects/compiler-rt/test/sanitizer_common/lsan-powerpc64le-Linux/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp
: 'RUN: at line 13';   env LSAN_OPTIONS=coverage=1 /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/projects/compiler-rt/test/sanitizer_common/lsan-powerpc64le-Linux/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp 2>&1 | FileCheck /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp
: 'RUN: at line 14';   /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/./bin/sancov -covered-functions -strip_path_prefix=TestCases/ *.sancov /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/projects/compiler-rt/test/sanitizer_common/lsan-powerpc64le-Linux/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp 2>&1 |    FileCheck --check-prefix=CHECK-SANCOV /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp
: 'RUN: at line 16';   env LSAN_OPTIONS=coverage=0 /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/clang_build/projects/compiler-rt/test/sanitizer_common/lsan-powerpc64le-Linux/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp 2>&1 | FileCheck --check-prefix=CHECK-NOCOV /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp
: 'RUN: at line 17';   rm -rf $DIR
--
Exit Code: 1

Command Output (stderr):
--
/home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp:38:18: error: CHECK-SANCOV: expected string not found in input
// CHECK-SANCOV: sanitizer_coverage_trace_pc_guard.cpp:[[@LINE-16]] foo
                 ^
<stdin>:1:1: note: scanning from here
ERROR: Coverage points in binary and .sancov file do not match.
^
<stdin>:1:1: note: with "@LINE-16" equal to "22"
ERROR: Coverage points in binary and .sancov file do not match.
^
<stdin>:1:39: note: possible intended match here
ERROR: Coverage points in binary and .sancov file do not match.
                                      ^

Input file: <stdin>
Check file: /home/buildbots/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ERROR: Coverage points in binary and .sancov file do not match. 
Step 16 (64-bit check-sanitizer) failure: 64-bit check-sanitizer (failur

Full details are available at: https://lab.llvm.org/buildbot/#/builders/19/builds/9672

llvmbot commented 2 years ago

@llvm/issue-subscribers-backend-powerpc