<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 - [ASan/Win] CHECK failure in allocator"
href="https://bugs.llvm.org/show_bug.cgi?id=35430">35430</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ASan/Win] CHECK failure in allocator
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>steinar+llvm@gunderson.no
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
I've got a fairly complicated test in MySQL that causes an internal error in
ASan. I'm trying to figure out if there's any information to go on to make a
smaller testcase, so I'm sending just the error to try to get the discussion
going :-) Please let me know if you can see right away what it is, or in what
direction I should try looking.
===
mysqldump: [Warning] Using a password on the command line interface can be
insecure.
mysqldump: Got error: 1146: Table 'test.???????????????????????' doesn't exist
when using LOCK TABLES
==21896==AddressSanitizer CHECK failed:
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc:755
"((owner_)) == ((GetThreadSelf()))" (0x5394, 0x58e0)
==21896==AddressSanitizer CHECK failed:
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\..\sanitizer_common/sanitizer_allocator_primary64.h:493
"((region->allocated_user)) <= ((region->mapped_user))" (0x2f400, 0x20000)
#0 0x7ff69cd33f5f in __asan::AsanCheckFailed
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_rtl.cc:69
#0 0x7ff69cd33f5f in __asan::AsanCheckFailed
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_rtl.cc:69
#1 0x7ff69cd1bfbb in __sanitizer::CheckFailed
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_termination.cc:79
#1 0x7ff69cd1bfbb in __sanitizer::CheckFailed
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_termination.cc:79
#2 0x7ff69cd1dae1 in __sanitizer::BlockingMutex::Unlock
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc:755
#2 0x7ff69cd4f565 in
__sanitizer::SizeClassAllocator64<__asan::AP64>::PopulateFreeArray
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_primary64.h:493
#3 0x7ff69cd4f04c in
__sanitizer::SizeClassAllocator64<__asan::AP64>::GetFromAllocator
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_primary64.h:139
#3 0x7ff69cd4ee7e in
__sanitizer::SizeClassAllocator64<__asan::AP64>::GetFromAllocator
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_primary64.h:130
#4 0x7ff69cd4edd3 in
__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>::Refill</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_local_cache.h:110
#4 0x7ff69cd4edd3 in
__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>::Refill</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_local_cache.h:110
#5 0x7ff69cd4e8f0 in
__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>::Allocate</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_local_cache.h:50
#5 0x7ff69cd4e8f0 in
__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>::Allocate</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_local_cache.h:50
#6 0x7ff69cd4e859 in
__sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<__asan::AP64>,__sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>,__sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback,__sanitizer::ReturnNullOrDieOnFailure>
>::Allocate</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_combined.h:62
#6 0x7ff69cd4e859 in
__sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<__asan::AP64>,__sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64>
<span class="quote">>,__sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback,__sanitizer::ReturnNullOrDieOnFailure>
>::Allocate</span >
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator_combined.h:62
#7 0x7ff69cd4af5f in __asan::Allocator::Allocate
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_allocator.cc:424
#7 0x7ff69cd4af5f in __asan::Allocator::Allocate
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_allocator.cc:424
#8 0x7ff69cd4b8c5 in __asan::asan_memalign
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_allocator.cc:855
#8 0x7ff69cd4b8c5 in __asan::asan_memalign
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_allocator.cc:855
#9 0x7ff69cd4f8c5 in operator new
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_new_delete.cc:92
#9 0x7ff69cd4f8c5 in operator new
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_new_delete.cc:92
#10 0x7ff69ce06c9f in yaSSL_new
R:\ade\sesse\mysql\extra\yassl\src\ssl.cpp:303
#10 0x7ff69ce06c9f in yaSSL_new
R:\ade\sesse\mysql\extra\yassl\src\ssl.cpp:303
#11 0x7ff69ce0cff2 in ssl_do R:\ade\sesse\mysql\vio\viossl.cc:418
#11 0x7ff69ce0cff2 in ssl_do R:\ade\sesse\mysql\vio\viossl.cc:418
#12 0x7ff69ce0d104 in sslconnect R:\ade\sesse\mysql\vio\viossl.cc:527
#12 0x7ff69ce0d104 in sslconnect R:\ade\sesse\mysql\vio\viossl.cc:527
#13 0x7ff69cdabe98 in cli_establish_ssl
R:\ade\sesse\mysql\sql-common\client.cc:3774
#13 0x7ff69cdabe98 in cli_establish_ssl
R:\ade\sesse\mysql\sql-common\client.cc:3774
#14 0x7ff69cda7163 in mysql_real_connect
R:\ade\sesse\mysql\sql-common\client.cc:5121
#14 0x7ff69cda7163 in mysql_real_connect
R:\ade\sesse\mysql\sql-common\client.cc:5121
#15 0x7ff69cd12387 in db_connect
R:\ade\sesse\mysql\client\mysqlimport.cc:483
#15 0x7ff69cd12387 in db_connect
R:\ade\sesse\mysql\client\mysqlimport.cc:483
#16 0x7ff69cd11f42 in worker_thread
R:\ade\sesse\mysql\client\mysqlimport.cc:600
#16 0x7ff69cd11f42 in worker_thread
R:\ade\sesse\mysql\client\mysqlimport.cc:600
#17 0x7ff69cd8b32b in win_thread_start
R:\ade\sesse\mysql\mysys\my_thread.cc:41
#17 0x7ff69cd8b32b in win_thread_start
R:\ade\sesse\mysql\mysys\my_thread.cc:41
#18 0x7ff69cfe8fc3 in thread_start<unsigned int (__cdecl*)(void * __ptr64)>
d:\rs1\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp:115
#18 0x7ff69cfe8fc3 in thread_start<unsigned int (__cdecl*)(void * __ptr64)>
d:\rs1\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp:115
#19 0x7ff69cd2fc16 in __asan::AsanThread::ThreadStart
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_thread.cc:260
#19 0x7ff69cd2fc16 in __asan::AsanThread::ThreadStart
C:\src\llvm_package_500\llvm\projects\compiler-rt\lib\asan\asan_thread.cc:260
#20 0x7fff2fcd8363 in BaseThreadInitThunk+0x13
(C:\Windows\System32\KERNEL32.DLL+0x180008363)
#20 0x7fff2fcd8363 in BaseThreadInitThunk+0x13
(C:\Windows\System32\KERNEL32.DLL+0x180008363)
#21 0x7fff322e7090 in RtlUserThreadStart+0x20
(C:\Windows\SYSTEM32\ntdll.dll+0x180067090)
#21 0x7fff322e7090 in RtlUserThreadStart+0x20
(C:\Windows\SYSTEM32\ntdll.dll+0x180067090)
mysqltest: At line 1720: command "$MYSQL_IMPORT --silent --use-threads=5 test
$MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt" failed
===</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>