<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - TEST 'AddressSanitizer-x86_64-windows-dynamic :: TestCases/error_report_callback.cc' FAILED"
href="https://bugs.llvm.org/show_bug.cgi?id=35058">35058</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>TEST 'AddressSanitizer-x86_64-windows-dynamic :: TestCases/error_report_callback.cc' FAILED
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>greg.bedwell@sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, rnk@google.com, vitalybuka@google.com
</td>
</tr></table>
<p>
<div>
<pre>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 (
<a href="http://lab.llvm.org:8011/builders/sanitizer-windows">http://lab.llvm.org:8011/builders/sanitizer-windows</a> ) 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<
---------------------------------------</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>