llvm / llvm-project

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

Failed cfi tests on new Windows 32bit MSVC buildbot #47104

Open ChristianKuehnel opened 4 years ago

ChristianKuehnel commented 4 years ago
Bugzilla Link 47760
Version unspecified
OS Windows 2000

Extended Description

When setting up a new 32bit WIndows buildbot with MSVC, I noticed a few of the cfi tests are failing. The buildbot is currently in staging as I want to resolve the failing tests before moving it to production.

http://lab.llvm.org:8014/#/builders/27

ChristianKuehnel commented 4 years ago

**** TEST 'cfi-standalone-lld-thinlto-i386 :: stats.cpp' FAILED **** Script:

: 'RUN: at line 1'; Q:/clang-x86-ninja-win10/stage1/./bin/clang.exe -fuse-ld=lld -flto=thin -fsanitize=cfi -fvisibility=hidden -gline-tables-only -gcodeview -gcolumn-info -fsanitize-stats -o C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp : 'RUN: at line 2'; env SANITIZER_STATS_PATH=C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp.stats C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp : 'RUN: at line 3'; sanstats C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp.stats | FileCheck C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp

Exit Code: 1

Command Output (stdout):

$ ":" "RUN: at line 1" $ "Q:/clang-x86-ninja-win10/stage1/./bin/clang.exe" "-fuse-ld=lld" "-flto=thin" "-fsanitize=cfi" "-fvisibility=hidden" "-gline-tables-only" "-gcodeview" "-gcolumn-info" "-fsanitize-stats" "-o" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp" "C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp" $ ":" "RUN: at line 2" $ "env" "SANITIZER_STATS_PATH=C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp.stats" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp" $ ":" "RUN: at line 3" $ "sanstats" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.tmp.stats" $ "FileCheck" "C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp"

command stderr:

C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp:19:12: error: CHECK: expected string not found in input

// CHECK: stats.cpp:[[@LINE+1]] {{_?}}vcall cfi-vcall 37

       ^
:1:1: note: scanning from here 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate ^ :1:1: note: with "@LINE+1" equal to "20" 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate ^ :3:22: note: possible intended match here 0x0000000000401110 :0 cfi-nvcall 51 ^ Input file: Check file: C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp -dump-input=help explains the following input dump. Input was: <<<<<< 1: 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-thinlto-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate check:19'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found check:19'1 with "@LINE+1" equal to "20" 2: cfi-vcall 37 check:19'0 ~~~~~~~~~~~~ 3: 0x0000000000401110 :0 cfi-nvcall 51 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ check:19'2 ? possible intended match 4: 0x000000000040117e :0 cfi-derived-cast 24 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5: 0x00000000004011c4 :0 cfi-unrelated-cast 81 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>> error: command failed with exit status: 1 -- ********************
ChristianKuehnel commented 4 years ago

**** TEST 'cfi-standalone-lld-i386 :: stats.cpp' FAILED **** Script:

: 'RUN: at line 1'; Q:/clang-x86-ninja-win10/stage1/./bin/clang.exe -fuse-ld=lld -flto -fsanitize=cfi -fvisibility=hidden -gline-tables-only -gcodeview -gcolumn-info -fsanitize-stats -o C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp : 'RUN: at line 2'; env SANITIZER_STATS_PATH=C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp.stats C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp : 'RUN: at line 3'; sanstats C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp.stats | FileCheck C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp

Exit Code: 1

Command Output (stdout):

$ ":" "RUN: at line 1" $ "Q:/clang-x86-ninja-win10/stage1/./bin/clang.exe" "-fuse-ld=lld" "-flto" "-fsanitize=cfi" "-fvisibility=hidden" "-gline-tables-only" "-gcodeview" "-gcolumn-info" "-fsanitize-stats" "-o" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp" "C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp" $ ":" "RUN: at line 2" $ "env" "SANITIZER_STATS_PATH=C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp.stats" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp" $ ":" "RUN: at line 3" $ "sanstats" "C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.tmp.stats" $ "FileCheck" "C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp"

command stderr:

C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp:19:12: error: CHECK: expected string not found in input

// CHECK: stats.cpp:[[@LINE+1]] {{_?}}vcall cfi-vcall 37

       ^
:1:1: note: scanning from here 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate ^ :1:1: note: with "@LINE+1" equal to "20" 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate ^ :3:22: note: possible intended match here 0x0000000000401120 :0 cfi-nvcall 51 ^ Input file: Check file: C:\volumes\buildbot\clang-x86-ninja-win10\llvm\compiler-rt\test\cfi\stats.cpp -dump-input=help explains the following input dump. Input was: <<<<<< 1: 'C:\volumes\buildbot\clang-x86-ninja-win10\stage1\projects\compiler-rt\test\cfi\Standalone-lld-i386\Output\stats.cpp.pdb': An unknown error has occurred. HRESULT: 0x8007007E: Calling NoRegCoCreate check:19'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found check:19'1 with "@LINE+1" equal to "20" 2: cfi-vcall 37 check:19'0 ~~~~~~~~~~~~ 3: 0x0000000000401120 :0 cfi-nvcall 51 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ check:19'2 ? possible intended match 4: 0x000000000040118e :0 cfi-derived-cast 24 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5: 0x00000000004011d4 :0 cfi-unrelated-cast 81 check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>> error: command failed with exit status: 1 -- ********************