[MDEV-28995] Sporadic Assertion failed: m_cache.size() == m_elements, file threadpool_winsockets.cc, line 118 Created: 2022-07-01  Updated: 2022-07-01  Resolved: 2022-07-01

Status: Closed
Project: MariaDB Server
Component/s: Platform Windows, Tests
Affects Version/s: None
Fix Version/s: 10.6.9, 10.7.5, 10.8.4

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

Happens on server shutdown. e.g here

http://buildbot.askmonty.org/buildbot/builders/winx64-debug/builds/32854/steps/test/logs/mysqld.1.err.3

Assertion failed: m_cache.size() == m_elements, file D:\winx64-debug\build\src\sql\threadpool_winsockets.cc, line 118
220630 17:44:46 [ERROR] mysqld got exception 0x80000003 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
 
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
 
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.
 
Server version: 10.6.9-MariaDB-debug-log
read_buffer_size=131072
max_used_connections=1
max_threads=65537
thread_count=0
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
server.dll!my_sigabrt_handler()[my_thr_init.c:465]
ucrtbase.dll!raise()
ucrtbase.dll!abort()
ucrtbase.dll!_get_wpgmptr()
ucrtbase.dll!_wassert()
server.dll!AIO_buffer_cache::clear()[threadpool_winsockets.cc:118]
server.dll!destroy_win_aio_buffers()[threadpool_winsockets.cc:259]
server.dll!tp_end()[threadpool_common.cc:561]
server.dll!clean_up()[mysqld.cc:2004]
server.dll!mysqld_main()[mysqld.cc:5899]
server.dll!mysqld_win_main()[winmain.cc:257]
mariadbd.exe!main()[main.cc:36]
mariadbd.exe!__scrt_common_main_seh()[exe_common.inl:288]
KERNEL32.DLL!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()


Generated at Thu Feb 08 10:05:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.