<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - ASAN check failed (__interception::real_memset is null) with clang-cl and -MD"
href="http://llvm.org/bugs/show_bug.cgi?id=20931">20931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ASAN check failed (__interception::real_memset is null) with clang-cl and -MD
</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>All
</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>ehsan@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ cat test.c
int main() { return 0; }
$ clang-cl -MD -fsanitize=address test.c clang_rt.asan_dynamic-i386.lib
clang_rt.asan_dynamic_runtime_thunk-i386.lib
$ ./test
==4644==AddressSanitizer CHECK failed:
C:\moz\llvm\projects\compiler-rt\lib\asan\asan_poisoning.cc:29
"((__interception::real_memset)) != (0)" (0x0, 0x0)
==4644==AddressSanitizer CHECK failed:
C:\moz\llvm\projects\compiler-rt\lib\asan\asan_poisoning.cc:29
"((__interception::real_memset)) != (0)" (0x0, 0x0)
And then the executable hangs, apparently retrying to grab a lock... Stack
trace:
<span class="quote">> clang_rt.asan_dynamic-i386.dll!__sanitizer::internal_sched_yield() Line 363 C++</span >
clang_rt.asan_dynamic-i386.dll!__sanitizer::StaticSpinMutex::LockSlow()
Line 57 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::Symbolizer::GetOrInit() Line
21 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::StackTrace::PrintStack(const
unsigned long * addr, unsigned long size) Line 39 C++
clang_rt.asan_dynamic-i386.dll!__asan::AsanCheckFailed(const char * file,
int line, const char * cond, unsigned __int64 v1, unsigned __int64 v2) Line 70
C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::CheckFailed(const char * file,
int line, const char * cond, unsigned __int64 v1, unsigned __int64 v2) Line 74
C++
clang_rt.asan_dynamic-i386.dll!__asan::PoisonShadow(unsigned long addr,
unsigned long size, unsigned char value) Line 29 C++
clang_rt.asan_dynamic-i386.dll!__asan::OnLowLevelAllocate(unsigned long
ptr, unsigned long size) Line 357 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::LowLevelAllocator::Allocate(unsigned
long size) Line 124 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::Symbolizer::PlatformInit()
Line 122 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::Symbolizer::GetOrInit() Line
23 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::StackTrace::PrintStack(const
unsigned long * addr, unsigned long size) Line 39 C++
clang_rt.asan_dynamic-i386.dll!__asan::AsanCheckFailed(const char * file,
int line, const char * cond, unsigned __int64 v1, unsigned __int64 v2) Line 70
C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::CheckFailed(const char * file,
int line, const char * cond, unsigned __int64 v1, unsigned __int64 v2) Line 74
C++
clang_rt.asan_dynamic-i386.dll!__asan::PoisonShadow(unsigned long addr,
unsigned long size, unsigned char value) Line 29 C++
clang_rt.asan_dynamic-i386.dll!__asan::OnLowLevelAllocate(unsigned long
ptr, unsigned long size) Line 357 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::LowLevelAllocator::Allocate(unsigned
long size) Line 124 C++
clang_rt.asan_dynamic-i386.dll!__asan::GetAsanThreadContext(unsigned int
tid) Line 52 C++
clang_rt.asan_dynamic-i386.dll!__sanitizer::ThreadRegistry::CreateThread(unsigned
long user_id, bool detached, unsigned int parent_tid, void * arg) Line 132
C++
clang_rt.asan_dynamic-i386.dll!__asan::AsanInitInternal() Line 672 C++
clang_rt.asan_dynamic-i386.dll!__asan::Allocate(unsigned long size,
unsigned long alignment, __sanitizer::StackTrace * stack, __asan::AllocType
alloc_type, bool can_fill) Line 271 C++
clang_rt.asan_dynamic-i386.dll!__asan::asan_calloc(unsigned long nmemb,
unsigned long size, __sanitizer::StackTrace * stack) Line 601 C++
clang_rt.asan_dynamic-i386.dll!calloc(unsigned int nmemb, unsigned int
size) Line 70 C++
clang_rt.asan_dynamic-i386.dll!_calloc_impl(unsigned int nmemb, unsigned
int size, int * errno_tmp) Line 80 C++
clang_rt.asan_dynamic-i386.dll!_calloc_crt(unsigned int count, unsigned
int size) Line 61 C
clang_rt.asan_dynamic-i386.dll!_mtinit() Line 115 C
clang_rt.asan_dynamic-i386.dll!_CRT_INIT(void * hDllHandle, unsigned long
dwReason, void * lpreserved) Line 102 C
clang_rt.asan_dynamic-i386.dll!__DllMainCRTStartup(void * hDllHandle,
unsigned long dwReason, void * lpreserved) Line 362 C
clang_rt.asan_dynamic-i386.dll!_DllMainCRTStartup(void * hDllHandle,
unsigned long dwReason, void * lpreserved) Line 331 C
ntdll.dll!_LdrpCallInitRoutine@16() Unknown
ntdll.dll!_LdrpRunInitializeRoutines@4() Unknown
ntdll.dll!_LdrpInitializeProcess@8() Unknown
ntdll.dll!__LdrpInitialize@8() Unknown
ntdll.dll!_LdrInitializeThunk@8() Unknown</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>