[llvm-bugs] [Bug 35058] New: TEST 'AddressSanitizer-x86_64-windows-dynamic :: TestCases/error_report_callback.cc' FAILED

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 24 06:46:18 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35058

            Bug ID: 35058
           Summary: TEST 'AddressSanitizer-x86_64-windows-dynamic ::
                    TestCases/error_report_callback.cc' FAILED
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: greg.bedwell at sony.com
                CC: llvm-bugs at lists.llvm.org, rnk at google.com,
                    vitalybuka at google.com

I'm getting the following test failure consistently with a recent version of
llvm/clang/compiler-rt (trunk 316314).

--------------------------------------- >8
---------------------------------------
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases>python
c:\work\public-git\upstream-llvm\build-vs2015-native-master-ninja\bin\llvm-lit.py
-v -- error_report_callback.cc
-- Testing: 1 tests, 1 threads --
FAIL: AddressSanitizer-x86_64-windows-dynamic ::
TestCases/error_report_callback.cc (1 of 1)
******************** TEST 'AddressSanitizer-x86_64-windows-dynamic ::
TestCases/error_report_callback.cc' FAILED ********************
Script:
--
C:/work/public-git/upstream-llvm/build-vs2015-native-master-ninja/./bin/clang.exe
-fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer
-fno-optimize-sibling-calls -gline-tables-only -gcodeview 
-fms-compatibility-version=19.00.24213.1 -shared-libasan -D_MT -D_DLL
-Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames -O0
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\error_report_callback.cc
-o
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\Output\error_report_callback.cc.tmp
not 
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\Output\error_report_callback.cc.tmp
0 2>&1 | FileCheck
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\error_report_callback.cc
--
Exit Code: 1

Command Output (stdout):
--
$
"C:/work/public-git/upstream-llvm/build-vs2015-native-master-ninja/./bin/clang.exe"
"-fsanitize=address" "-mno-omit-leaf-frame-pointer" "-fno-omit-frame-pointer"
"-fno-optimize-sibling-calls" "-gline-tables-only" "-gcodeview"
"-fms-compatibility-version=19.00.24213.1" "-shared-libasan" "-D_MT" "-D_DLL"
"-Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames" "-O0"
"C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\error_report_callback.cc"
"-o"
"C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\Output\error_report_callback.cc.tmp"
$ "not"
"C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\Output\error_report_callback.cc.tmp"
"0"
$ "FileCheck"
"C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\error_report_callback.cc"
# command stderr:
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases\error_report_callback.cc:17:12:
error: expected string not found in input
 // CHECK: ABCDEF
           ^
<stdin>:1:1: note: scanning from here
=================================================================
^
<stdin>:2:5: note: possible intended match here
==8600==ERROR: AddressSanitizer: unknown-crash on address 0x000000000000 at pc
0x7ff6aa3b1c11 bp 0x000000000000 sp 0x000000000000
    ^

error: command failed with exit status: 1

--

********************
Testing Time: 1.51s
********************
Failing Tests (1):
    AddressSanitizer-x86_64-windows-dynamic ::
TestCases/error_report_callback.cc

  Unexpected Failures: 1
--------------------------------------- 8<
---------------------------------------

My default build is x86_64.  I can basically replicate this build from running
cmake/ninja from a "VS2015 x64 Native Tools Command Prompt" resulting in a
default triple of "x86_64-pc-windows-msvc", producing the above failure.  

The sanitizer-windows buildbot (
http://lab.llvm.org:8011/builders/sanitizer-windows ) doesn't show this
failure, but from what I can tell, I think this down to the fact it's testing
an i386 configuration as opposed to an x86_64 one.  If instead I build and test
from a "VS2015 x64 x86 Cross Tools Command Prompt" I get a default triple of
"i686-pc-windows-msvc" and the test passes:

--------------------------------------- >8
---------------------------------------
C:\work\public-git\upstream-llvm\llvm\projects\compiler-rt\test\asan\TestCases>python
c:\work\public-git\upstream-llvm\build-native-32bit\bin\llvm-lit.py -v --
error_report_callback.cc
-- Testing: 1 tests, 1 threads --
PASS: AddressSanitizer-i386-windows-dynamic ::
TestCases/error_report_callback.cc (1 of 1)
Testing Time: 0.74s
  Expected Passes    : 1
--------------------------------------- 8<
---------------------------------------

-- 
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/20171024/3a1e7a7f/attachment-0001.html>


More information about the llvm-bugs mailing list