<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 - clang-cl address sanitizer doesn't work in x64"
href="https://bugs.llvm.org/show_bug.cgi?id=37349">37349</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl address sanitizer doesn't work in x64
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</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>denisavvakumov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20267" name="attach_20267" title="error in compiled executable">attachment 20267</a> <a href="attachment.cgi?id=20267&action=edit" title="error in compiled executable">[details]</a></span>
error in compiled executable
clang version: 7.0.0-r330570
additional command line options:
-v -fsanitize=address -fsanitize=undefined
linker options:
/OUT:"E:\projects\ConsoleApplication1\x64\Release\ConsoleApplication1.exe"
/MANIFEST /LTCG:incremental /NXCOMPAT
/PDB:"E:\projects\ConsoleApplication1\x64\Release\ConsoleApplication1.pdb"
/DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib"
"comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib"
"uuid.lib" "odbc32.lib" "odbccp32.lib" "clang_rt.asan-x86_64.lib"
"clang_rt.ubsan_standalone-x86_64.lib" /DEBUG /MACHINE:X64 /OPT:REF
/INCREMENTAL:NO
/PGD:"E:\projects\ConsoleApplication1\x64\Release\ConsoleApplication1.pgd"
/SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/ManifestFile:"x64\Release\ConsoleApplication1.exe.intermediate.manifest"
/OPT:ICF /ERRORREPORT:PROMPT /NOLOGO /TLBID:1
Code used for test:
int main()
{
HANDLE hLogFile = CreateFile(L"log.txt", GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
char test[3]={0x90,0x90,0x90};
int i = INT_MAX;
test[2] = i++;
test[4] = '1';
system("pause");
return 0;
}</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>