[llvm-bugs] [Bug 35430] New: [ASan/Win] CHECK failure in allocator

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 27 03:14:15 PST 2017


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

            Bug ID: 35430
           Summary: [ASan/Win] CHECK failure in allocator
           Product: compiler-rt
           Version: 5.0
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: steinar+llvm at gunderson.no
                CC: llvm-bugs at lists.llvm.org

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>
>::Refill
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>
>::Refill
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>
>::Allocate
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>
>::Allocate
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>
>,__sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback,__sanitizer::ReturnNullOrDieOnFailure>
>::Allocate
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>
>,__sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback,__sanitizer::ReturnNullOrDieOnFailure>
>::Allocate
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
===

-- 
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/20171127/ea091af0/attachment-0001.html>


More information about the llvm-bugs mailing list