2021-03-06 14:14:54 0 [Note] InnoDB: Using Linux native AIO 2021-03-06 14:14:54 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2021-03-06 14:14:54 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2021-03-06 14:14:54 0 [Note] InnoDB: Uses system mutexes 2021-03-06 14:14:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-03-06 14:14:54 0 [Note] InnoDB: Number of pools: 1 2021-03-06 14:14:54 0 [Note] InnoDB: Using SSE2 crc32 instructions 2021-03-06 14:14:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2021-03-06 14:14:55 0 [Note] InnoDB: Completed initialization of buffer pool 2021-03-06 14:14:55 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7bbc0000e080 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 (mysqld+0x108e56d) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7bbc0000e080 by main thread (mutexes: write M392188970367748688, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6366 (mysqld+0x109364e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392188970367748688 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x7bbc0000e002 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 (mysqld+0x108e582) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7bbc0000e002 by main thread (mutexes: write M392188970367748688, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6311 (mysqld+0x109338e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392188970367748688 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7bbc0000e038 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 (mysqld+0x108e5ba) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7bbc0000e038 by main thread (mutexes: write M392188970367748688, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6325 (mysqld+0x10934b0) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392188970367748688 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 2 at 0x7bbc0000e030 by thread T4: #0 IORequest::is_log() const /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 (mysqld+0x108e5cc) #1 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1958 (mysqld+0x108e5cc) #2 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #3 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #4 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #5 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #7 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7bbc0000e030 by main thread (mutexes: write M392188970367748688, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6322 (mysqld+0x1093446) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392188970367748688 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 in IORequest::is_log() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x7bbc0000e078 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 (mysqld+0x108e5eb) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7bbc0000e078 by main thread (mutexes: write M392188970367748688, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6326 (mysqld+0x10934c3) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392188970367748688 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67988d60 by thread T4 (mutexes: write M392188970367748688): #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x1043a6b) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x1043a6b) #2 log_complete_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1193 (mysqld+0x1043a6b) #3 log_t::complete_checkpoint() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1207 (mysqld+0x1043a6b) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4481 (mysqld+0x14710de) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67988d60 by main thread: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1045630) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1045630) #3 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1311 (mysqld+0x1045630) #4 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #5 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #6 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #7 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #8 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #9 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #10 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #11 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #12 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #13 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'log_sys' of size 2048 at 0x55ca67988a00 (mysqld+0x00000216ad60) Mutex M392188970367748688 is already destroyed. Thread T4 (tid=1620714, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 in rw_lock_x_unlock_func ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a8ffd4 by thread T3: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1995 (mysqld+0x108e79b) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a8ffd4 by main thread: [failed to restore the stack] Location is global 'buf_page_cleaner_is_active' of size 1 at 0x55ca67a8ffd4 (mysqld+0x000002271fd4) Thread T3 (tid=1620713, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1995 in LinuxAIOHandler::collect() ================== 2021-03-06 14:14:55 0 [Note] InnoDB: 128 out of 128 rollback segments are active. ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 8 at 0x55ca67a57650 by thread T14: #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1097a8e) #2 os_thread_exit(bool) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:191 (mysqld+0x1097a8e) #3 trx_rollback_all_recovered /data/builds/10.3_dbg_san/storage/innobase/trx/trx0roll.cc:876 (mysqld+0x129572d) #4 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67a57650 by main thread: #0 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:146 (mysqld+0x10978c0) #1 recv_recovery_rollback_active() /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:4017 (mysqld+0x1051e65) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2288 (mysqld+0x123a159) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'os_thread_count' of size 8 at 0x55ca67a57650 (mysqld+0x000002239650) Thread T14 (tid=1621012, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 recv_recovery_rollback_active() /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:4017 (mysqld+0x1051e65) #3 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2288 (mysqld+0x123a159) #4 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #5 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #6 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #7 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #8 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #9 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #10 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== 2021-03-06 14:14:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-03-06 14:14:55 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-03-06 14:14:55 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-03-06 14:14:55 0 [Note] InnoDB: 10.3.28 started; log sequence number 1626044; transaction id 20 ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7b6c00001068 by thread T21: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 (mysqld+0x137e56e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 trx_undo_page_get_s_latched /data/builds/10.3_dbg_san/storage/innobase/include/trx0undo.ic:161 (mysqld+0x126de0c) #3 trx_purge_get_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1292 (mysqld+0x126de0c) #4 trx_purge_fetch_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1382 (mysqld+0x127200b) #5 trx_purge_attach_undo_recs /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1456 (mysqld+0x127200b) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1592 (mysqld+0x127200b) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c00001068 by main thread: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 (mysqld+0x137e588) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_open_at_index_side_func(bool, dict_index_t*, unsigned long, btr_cur_t*, unsigned long, char const*, unsigned int, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:2532 (mysqld+0x130d10f) #3 btr_pcur_open_at_index_side /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:545 (mysqld+0xffb66a) #4 ibuf_update_max_tablespace_id() /data/builds/10.3_dbg_san/storage/innobase/ibuf/ibuf0ibuf.cc:3106 (mysqld+0xffb66a) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2467 (mysqld+0x123aed6) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== 2021-03-06 14:14:56 0 [Note] InnoDB: Loading buffer pool(s) from /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/data/ib_buffer_pool ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b7400031340 by thread T25 (mutexes: write M1318): #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5359 (mysqld+0x1374d7b) #4 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #5 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #6 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #7 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #8 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b7400031340 by thread T21: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4703 (mysqld+0x137f865) #2 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #3 trx_undo_page_get_s_latched /data/builds/10.3_dbg_san/storage/innobase/include/trx0undo.ic:161 (mysqld+0x126de0c) #4 trx_purge_get_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1292 (mysqld+0x126de0c) #5 trx_purge_fetch_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1382 (mysqld+0x127200b) #6 trx_purge_attach_undo_recs /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1456 (mysqld+0x127200b) #7 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1592 (mysqld+0x127200b) #8 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #9 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #10 (libtsan.so.0+0x2d1af) Location is heap block of size 2432 at 0x7b7400030c00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 hash_create_sync_obj(hash_table_t*, hash_table_sync_t, latch_id_t, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/hash0hash.cc:185 (mysqld+0x14b4eb8) #2 ib_create(unsigned long, latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/ha0ha.cc:76 (mysqld+0x14ae8ff) #3 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1932 (mysqld+0x1382c3d) #4 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382c3d) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 in rw_lock_x_lock_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7b7400031340 by thread T21: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4863 (mysqld+0x138145d) #2 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #3 trx_undo_page_get_s_latched /data/builds/10.3_dbg_san/storage/innobase/include/trx0undo.ic:161 (mysqld+0x126de0c) #4 trx_purge_get_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1292 (mysqld+0x126de0c) #5 trx_purge_fetch_next_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1382 (mysqld+0x127200b) #6 trx_purge_attach_undo_recs /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1456 (mysqld+0x127200b) #7 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1592 (mysqld+0x127200b) #8 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #9 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #10 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b7400031340 by thread T25 (mutexes: write M1318): #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5359 (mysqld+0x1374d7b) #4 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #5 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #6 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #7 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #8 (libtsan.so.0+0x2d1af) Location is heap block of size 2432 at 0x7b7400030c00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 hash_create_sync_obj(hash_table_t*, hash_table_sync_t, latch_id_t, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/hash0hash.cc:185 (mysqld+0x14b4eb8) #2 ib_create(unsigned long, latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/ha0ha.cc:76 (mysqld+0x14ae8ff) #3 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1932 (mysqld+0x1382c3d) #4 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382c3d) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b6c00000fa8 by thread T25 (mutexes: write M1318): #0 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5524 (mysqld+0x13758f4) #1 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #2 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #3 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #4 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c00000fa8 by thread T13: #0 buf_get_n_pending_read_ios() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6882 (mysqld+0x1365ef7) #1 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3120 (mysqld+0x13a6a86) #2 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5524 in buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) ================== 2021-03-06 14:14:56 0 [Note] InnoDB: Buffer pool(s) load completed at 210306 14:14:56 ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67a57950 by main thread: #0 srv_mon_default_on() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 (mysqld+0x1220a6d) #1 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4260 (mysqld+0xf69846) #2 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #3 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #4 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #5 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 8 at 0x55ca67a57950 by thread T21 (mutexes: write M426007171751220880, write M1313): #0 os_file_pread /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5102 (mysqld+0x108a8ff) #1 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5138 (mysqld+0x108a8ff) #2 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #3 pfs_os_file_read_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:294 (mysqld+0x145c347) #4 fil_node_t::read_page0(bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:484 (mysqld+0x145c347) #5 fil_node_open_file /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:624 (mysqld+0x145ddae) #6 fil_node_prepare_for_io /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4035 (mysqld+0x145e544) #7 fil_system_t::read_page0(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1499 (mysqld+0x146a74e) #8 fil_space_get_space /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1531 (mysqld+0x146b6b0) #9 fil_space_get_size(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1570 (mysqld+0x146b6b0) #10 fsp_flags_try_adjust(fil_space_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3927 (mysqld+0x146bacd) #11 fil_space_for_table_exists_in_mem(unsigned long, char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3995 (mysqld+0x146c4e6) #12 dict_load_tablespace /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2787 (mysqld+0x1418df9) #13 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2937 (mysqld+0x1418df9) #14 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #15 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #16 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #17 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #18 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #19 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #20 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #21 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #22 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #23 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #24 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #25 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #26 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #27 (libtsan.so.0+0x2d1af) Location is global 'monitor_set_tbl' of size 40 at 0x55ca67a57940 (mysqld+0x000002239950) Mutex M426007171751220880 is already destroyed. Mutex M1313 (0x55ca6798e6f8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 fil_system_t::create(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1696 (mysqld+0x1458c7e) #6 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1579 (mysqld+0x1237055) #7 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #8 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #9 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #10 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #11 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #12 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #13 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 in srv_mon_default_on() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x55ca67a61380 by thread T21 (mutexes: write M426007171751220880): #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x13c220f) #1 buf_read_page(page_id_t, page_size_t const&) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:416 (mysqld+0x13c220f) #2 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4378 (mysqld+0x137f459) #3 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #4 fsp_flags_try_adjust(fil_space_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3935 (mysqld+0x146bd0d) #5 fil_space_for_table_exists_in_mem(unsigned long, char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3995 (mysqld+0x146c4e6) #6 dict_load_tablespace /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2787 (mysqld+0x1418df9) #7 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2937 (mysqld+0x1418df9) #8 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #9 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #10 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #11 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #12 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #13 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #14 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #15 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #16 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #17 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #18 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #19 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #20 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #21 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ca67a61380 by thread T25: #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x13c243d) #1 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:472 (mysqld+0x13c243d) #2 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #3 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #4 (libtsan.so.0+0x2d1af) Location is global 'srv_stats' of size 123584 at 0x55ca67a61080 (mysqld+0x000002243380) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 in simple_counter::add(unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x55ca67a8ff78 by thread T21 (mutexes: write M426007171751220880): #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4442 (mysqld+0x137f512) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 fsp_flags_try_adjust(fil_space_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3935 (mysqld+0x146bd0d) #3 fil_space_for_table_exists_in_mem(unsigned long, char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3995 (mysqld+0x146c4e6) #4 dict_load_tablespace /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2787 (mysqld+0x1418df9) #5 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2937 (mysqld+0x1418df9) #6 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #7 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #8 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #9 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #10 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #17 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #18 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ca67a8ff78 by thread T25: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4828 (mysqld+0x1380b8e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 ibuf_bitmap_get_map_page_func /data/builds/10.3_dbg_san/storage/innobase/ibuf/ibuf0ibuf.cc:765 (mysqld+0xff7366) #3 ibuf_merge_or_delete_for_page(buf_block_t*, page_id_t, page_size_t const&) /data/builds/10.3_dbg_san/storage/innobase/ibuf/ibuf0ibuf.cc:4417 (mysqld+0x10073e6) #4 buf_page_io_complete(buf_page_t*, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6199 (mysqld+0x1377460) #5 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:215 (mysqld+0x13c0997) #6 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #7 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #8 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #9 (libtsan.so.0+0x2d1af) Location is global 'buf_dbg_counter' of size 8 at 0x55ca67a8ff78 (mysqld+0x000002271f78) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4442 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== 2021-03-06 14:14:56 0 [Note] Plugin 'FEEDBACK' is disabled. ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7b7400030de8 by thread T21 (mutexes: write M426007171751220880): #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4276 (mysqld+0x137f589) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 fsp_flags_try_adjust(fil_space_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3935 (mysqld+0x146bd0d) #6 fil_space_for_table_exists_in_mem(unsigned long, char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3995 (mysqld+0x146c4e6) #7 dict_load_tablespace /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2787 (mysqld+0x1418df9) #8 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2937 (mysqld+0x1418df9) #9 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #10 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #11 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #12 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #13 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #14 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #15 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #16 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #17 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #18 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #19 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #20 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #21 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #22 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b7400030de8 by thread T25 (mutexes: write M1318): #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x13628c6) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x13628c6) #2 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5365 (mysqld+0x1374e10) #3 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #4 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #5 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #6 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #7 (libtsan.so.0+0x2d1af) Location is heap block of size 2432 at 0x7b7400030c00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 hash_create_sync_obj(hash_table_t*, hash_table_sync_t, latch_id_t, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/hash0hash.cc:185 (mysqld+0x14b4eb8) #2 ib_create(unsigned long, latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/ha0ha.cc:76 (mysqld+0x14ae8ff) #3 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1932 (mysqld+0x1382c3d) #4 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382c3d) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67a3e180 by main thread (mutexes: write M895): #0 LOGGER::init_error_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1432 (mysqld+0xd8df82) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1600 (mysqld+0xd95602) #2 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5577 (mysqld+0x4e2440) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 8 at 0x55ca67a3e180 by thread T25: #0 LOGGER::error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:1170 (mysqld+0xd8d4f3) #1 error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:6542 (mysqld+0xd953fd) #2 sql_print_information_v(char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:8852 (mysqld+0xda21cb) #3 sql_print_information(char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:8841 (mysqld+0xda22b9) #4 ib::info::~info() /data/builds/10.3_dbg_san/storage/innobase/ut/ut0ut.cc:576 (mysqld+0x12ccb27) #5 buf_load_status /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:168 (mysqld+0x13943ac) #6 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:769 (mysqld+0x1396526) #7 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #8 (libtsan.so.0+0x2d1af) Location is global 'logger' of size 192 at 0x55ca67a3e120 (mysqld+0x000002220180) Mutex M895 (0x55ca67a3e120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1621191, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1432 in LOGGER::init_error_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x7f5d35375970 by thread T22: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7f5d35375970 by thread T21: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x1098da9) #1 page_cur_search_with_match_bytes(buf_block_t const*, dict_index_t const*, dtuple_t const*, page_cur_mode_t, unsigned long*, unsigned long*, unsigned long*, unsigned long*, page_cur_t*) /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:577 (mysqld+0x109e842) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1862 (mysqld+0x13211d0) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x7f5d35375970 by thread T24: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7f5d35375970 by thread T21: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x1098da9) #1 page_cur_search_with_match_bytes(buf_block_t const*, dict_index_t const*, dtuple_t const*, page_cur_mode_t, unsigned long*, unsigned long*, unsigned long*, unsigned long*, page_cur_t*) /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:577 (mysqld+0x109e842) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1862 (mysqld+0x13211d0) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b6c00002be8 by thread T21: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 (mysqld+0x1320b38) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #12 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #13 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #14 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c00002be8 by thread T23: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 (mysqld+0x131e51c) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #12 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 1696 at 0x7b6c00002a00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:277 (mysqld+0x10705d7) #2 mem_heap_add_block(mem_block_info_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:378 (mysqld+0x1070bf3) #3 mem_heap_alloc /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.ic:191 (mysqld+0x142c364) #4 mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:242 (mysqld+0x142c364) #5 mem_heap_strdup(mem_block_info_t*, char const*) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:254 (mysqld+0x142c364) #6 dict_mem_fill_index_struct /data/builds/10.3_dbg_san/storage/innobase/include/dict0mem.ic:48 (mysqld+0x142c364) #7 dict_mem_index_create(dict_table_t*, char const*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0mem.cc:773 (mysqld+0x142c364) #8 dict_index_build_internal_clust /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2513 (mysqld+0x14010c8) #9 dict_index_add_to_cache(dict_index_t*&, unsigned long, dict_add_v_col_t const*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2045 (mysqld+0x14010c8) #10 dict_boot() /data/builds/10.3_dbg_san/storage/innobase/dict/dict0boot.cc:404 (mysqld+0x13cf80e) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1981 (mysqld+0x1238aa1) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 in btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x7f5d3535a868 by thread T23: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7f5d3535a868 by thread T21: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x13006f9) #1 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1650 (mysqld+0x13203f5) #2 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #3 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #4 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #5 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #6 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #7 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #8 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #9 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #10 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #11 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #12 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #13 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #14 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #15 (libtsan.so.0+0x2d1af) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7b6c00002be8 by thread T22 (mutexes: write M426007171751220880): #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 (mysqld+0x131e51c) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x133b99b) #2 btr_pcur_open_on_user_rec_func(dict_index_t*, dtuple_t const*, page_cur_mode_t, unsigned long, btr_pcur_t*, char const*, unsigned int, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0pcur.cc:640 (mysqld+0x133bc80) #3 dict_load_columns /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:1810 (mysqld+0x1419613) #4 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2939 (mysqld+0x1419613) #5 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #6 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #7 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #8 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #9 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c00002be8 by thread T21: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 (mysqld+0x1320b38) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #12 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #13 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #14 (libtsan.so.0+0x2d1af) Location is heap block of size 1696 at 0x7b6c00002a00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:277 (mysqld+0x10705d7) #2 mem_heap_add_block(mem_block_info_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:378 (mysqld+0x1070bf3) #3 mem_heap_alloc /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.ic:191 (mysqld+0x142c364) #4 mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:242 (mysqld+0x142c364) #5 mem_heap_strdup(mem_block_info_t*, char const*) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:254 (mysqld+0x142c364) #6 dict_mem_fill_index_struct /data/builds/10.3_dbg_san/storage/innobase/include/dict0mem.ic:48 (mysqld+0x142c364) #7 dict_mem_index_create(dict_table_t*, char const*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0mem.cc:773 (mysqld+0x142c364) #8 dict_index_build_internal_clust /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2513 (mysqld+0x14010c8) #9 dict_index_add_to_cache(dict_index_t*&, unsigned long, dict_add_v_col_t const*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2045 (mysqld+0x14010c8) #10 dict_boot() /data/builds/10.3_dbg_san/storage/innobase/dict/dict0boot.cc:404 (mysqld+0x13cf80e) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1981 (mysqld+0x1238aa1) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 in btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x7f5d35340bb8 by thread T24: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7f5d35340bb8 by thread T21: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 (mysqld+0x137f83e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d3535a930 by thread T23: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4172 (mysqld+0x136402f) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d3535a930 by thread T21: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #18 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #19 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #20 (libtsan.so.0+0x2d1af) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d3535a930 by thread T22: #0 rw_lock_own(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 (mysqld+0x1242d1e) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:666 (mysqld+0x12448d6) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d3535a930 by thread T21: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #18 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #19 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #20 (libtsan.so.0+0x2d1af) Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 in rw_lock_own(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d3535a930 by thread T21: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4172 (mysqld+0x136402f) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #18 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #19 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #20 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d3535a930 by thread T24: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x7f5d3535ab50 by thread T24: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7f5d3535ab50 by thread T23: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x1098da9) #1 page_cur_search_with_match_bytes(buf_block_t const*, dict_index_t const*, dtuple_t const*, page_cur_mode_t, unsigned long*, unsigned long*, unsigned long*, unsigned long*, page_cur_t*) /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:577 (mysqld+0x109e842) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1862 (mysqld+0x13211d0) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d3535ac18 by thread T22: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4172 (mysqld+0x136402f) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d3535ac18 by thread T24: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 4 at 0x55ca6798e2a4 by main thread: #0 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:165 (mysqld+0x184d64a) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x12aa9e4) #2 rw_trx_hash_t::iterate_no_dups(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:786 (mysqld+0x12aa9e4) #3 rw_trx_hash_t::iterate_no_dups(char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:793 (mysqld+0x12aa9e4) #4 trx_recover_for_mysql(xid_t*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2203 (mysqld+0x12aa9e4) #5 innobase_xa_recover /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:17121 (mysqld+0xf3bb14) #6 xarecover_handlerton /data/builds/10.3_dbg_san/sql/handler.cc:1974 (mysqld+0xb54293) #7 plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:2435 (mysqld+0x6c2143) #8 ha_recover(st_hash*) /data/builds/10.3_dbg_san/sql/handler.cc:2094 (mysqld+0xb5470c) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5636 (mysqld+0x4e2992) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous atomic write of size 4 at 0x55ca6798e2a4 by thread T21: #0 __tsan_atomic32_compare_exchange_strong (libtsan.so.0+0x83920) #1 lf_pinbox_put_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:239 (mysqld+0x184d8be) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:765 (mysqld+0x10ea468) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea468) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea468) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea468) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Location is global 'trx_sys' of size 3392 at 0x55ca6798d880 (mysqld+0x0000021702a4) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:165 in lf_pinbox_get_pins ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 4 at 0x7bb00002018c by main thread: #0 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 (mysqld+0x184d68c) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x12aa9e4) #2 rw_trx_hash_t::iterate_no_dups(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:786 (mysqld+0x12aa9e4) #3 rw_trx_hash_t::iterate_no_dups(char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:793 (mysqld+0x12aa9e4) #4 trx_recover_for_mysql(xid_t*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2203 (mysqld+0x12aa9e4) #5 innobase_xa_recover /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:17121 (mysqld+0xf3bb14) #6 xarecover_handlerton /data/builds/10.3_dbg_san/sql/handler.cc:1974 (mysqld+0xb54293) #7 plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:2435 (mysqld+0x6c2143) #8 ha_recover(st_hash*) /data/builds/10.3_dbg_san/sql/handler.cc:2094 (mysqld+0xb5470c) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5636 (mysqld+0x4e2992) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous write of size 4 at 0x7bb00002018c by thread T21: #0 lf_pinbox_put_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:238 (mysqld+0x184d888) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:765 (mysqld+0x10ea468) #2 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea468) #3 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea468) #4 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea468) #5 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #6 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #7 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #8 (libtsan.so.0+0x2d1af) Location is heap block of size 30956 at 0x7bb000020000 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_dynarray_lvalue /data/builds/10.3_dbg_san/mysys/lf_dynarray.c:124 (mysqld+0x184e0df) #4 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:178 (mysqld+0x184d73e) #5 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x10ea3e2) #6 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea3e2) #7 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea3e2) #8 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea3e2) #9 trx_lists_init_at_db_start() /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:819 (mysqld+0x12b4570) #10 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1989 (mysqld+0x1238acd) #11 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #12 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #13 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #14 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #15 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #16 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #17 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 in lf_pinbox_get_pins ================== 2021-03-06 14:14:56 0 [Note] Server socket created on IP: '::'. Sanitizer: increasing stacksize 303104->396416 Sanitizer: increasing stacksize 303104->396416 2021-03-06 14:14:56 0 [Note] Reading of all Master_info entries succeeded 2021-03-06 14:14:56 0 [Note] Added new Master_info '' to hash table 2021-03-06 14:14:56 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld: ready for connections. Version: '10.3.28-MariaDB-debug' socket: '/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/socket.sock' port: 12941 MariaDB Server ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x55ca67a10318 by main thread: #0 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6275 (mysqld+0x4f055e) #1 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous atomic write of size 8 at 0x55ca67a10318 by thread T1 (mutexes: write M1020): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 update_global_memory_status(long long) /data/builds/10.3_dbg_san/sql/sql_class.h:916 (mysqld+0x4dc0c8) #2 my_malloc_size_cb_func /data/builds/10.3_dbg_san/sql/mysqld.cc:4158 (mysqld+0x4dc0c8) #3 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:118 (mysqld+0x183632f) #4 init_dynamic_array2 /data/builds/10.3_dbg_san/mysys/array.c:70 (mysqld+0x17fd6fe) #5 my_hash_init2 /data/builds/10.3_dbg_san/mysys/hash.c:98 (mysqld+0x18047f9) #6 safe_mutex_lazy_init_deadlock_detection /data/builds/10.3_dbg_san/mysys/thr_mutex.c:177 (mysqld+0x184641f) #7 safe_mutex_lock /data/builds/10.3_dbg_san/mysys/thr_mutex.c:319 (mysqld+0x184641f) #8 inline_mysql_mutex_lock /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:717 (mysqld+0x1847e08) #9 timer_handler /data/builds/10.3_dbg_san/mysys/thr_timer.c:273 (mysqld+0x1847e08) #10 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4222 (mysqld+0xf694f2) #3 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #4 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #5 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #6 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #7 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #8 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'global_status_var' of size 2048 at 0x55ca67a0fb20 (mysqld+0x0000021f2318) Mutex M1020 (0x55ca682a5088) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x1848352) #3 init_thr_timer /data/builds/10.3_dbg_san/mysys/thr_timer.c:76 (mysqld+0x1848352) #4 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5186 (mysqld+0x4e122e) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T1 (tid=1619274, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x18484b9) #3 init_thr_timer /data/builds/10.3_dbg_san/mysys/thr_timer.c:90 (mysqld+0x18484b9) #4 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5186 (mysqld+0x4e122e) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:6275 in mysqld_main(int, char**) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x55ca67a12210 by main thread: #0 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6636 (mysqld+0x4df4ce) #1 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #2 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous write of size 8 at 0x55ca67a12210 by thread T31 (mutexes: write M899): #0 cache_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:3027 (mysqld+0x4dde4c) #1 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3129 (mysqld+0x4dde4c) #2 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #3 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #4 (libtsan.so.0+0x2d1af) Location is global 'cached_thread_count' of size 8 at 0x55ca67a12210 (mysqld+0x0000021f4210) Mutex M899 (0x55ca67a0f7a8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6d67) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4859 (mysqld+0x4e6d67) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6d67) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:6636 in create_thread_to_handle_connection(CONNECT*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67a3e178 by thread T29 (mutexes: write M895): #0 LOGGER::init_error_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1431 (mysqld+0xd8df73) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1600 (mysqld+0xd95602) #2 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3610 (mysqld+0x4db386) #3 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67a3e178 by main thread: #0 LOGGER::error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:1170 (mysqld+0xd8d4d9) #1 error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:6542 (mysqld+0xd953fd) #2 sql_print_information_v(char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:8852 (mysqld+0xda21cb) #3 sql_print_information(char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:8841 (mysqld+0xda22b9) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6234 (mysqld+0x4f0219) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'logger' of size 192 at 0x55ca67a3e120 (mysqld+0x000002220178) Mutex M895 (0x55ca67a3e120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1431 in LOGGER::init_error_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67a3e1b8 by thread T29 (mutexes: write M895): #0 LOGGER::init_general_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1473 (mysqld+0xd8e17f) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1602 (mysqld+0xd95719) #2 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3610 (mysqld+0x4db386) #3 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67a3e1b8 by thread T31: #0 LOGGER::log_command(THD*, enum_server_command) /data/builds/10.3_dbg_san/sql/log.cc:6567 (mysqld+0xd9c918) #1 general_log_print(THD*, enum_server_command, char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:6586 (mysqld+0xd9d0fb) #2 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:2185 (mysqld+0x6b3b67) #3 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #4 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #5 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #6 (libtsan.so.0+0x2d1af) Location is global 'logger' of size 192 at 0x55ca67a3e120 (mysqld+0x0000022201b8) Mutex M895 (0x55ca67a3e120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1473 in LOGGER::init_general_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a12115 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3615 (mysqld+0x4db3c4) #1 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a12115 by thread T31 (mutexes: write M899): #0 cache_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:3023 (mysqld+0x4ddd85) #1 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3129 (mysqld+0x4ddd85) #2 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #3 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #4 (libtsan.so.0+0x2d1af) Location is global 'abort_loop' of size 1 at 0x55ca67a12115 (mysqld+0x0000021f4115) Mutex M899 (0x55ca67a0f7a8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6d67) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4859 (mysqld+0x4e6d67) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6d67) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3615 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a12114 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3586 (mysqld+0x4db482) #1 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a12114 by thread T31: #0 kill_mysql(THD*) /data/builds/10.3_dbg_san/sql/mysqld.cc:1952 (mysqld+0x4dcbb4) #1 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:2187 (mysqld+0x6b3bb7) 2021-03-06 14:14:56 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld (initiated by: root[root] @ localhost []): Normal shutdown #2 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #3 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #4 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #5 (libtsan.so.0+0x2d1af) Location is global 'shutdown_in_progress' of size 1 at 0x55ca67a12114 (mysqld+0x0000021f4114) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3586 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x55ca67a12220 by thread T32: #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1613 (mysqld+0x4e3229) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e3229) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ca67a12220 by thread T31 (mutexes: write M899): #0 cache_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:3023 (mysqld+0x4ddda3) #1 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3129 (mysqld+0x4ddda3) #2 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #3 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #4 (libtsan.so.0+0x2d1af) Location is global 'kill_cached_threads' of size 4 at 0x55ca67a12220 (mysqld+0x0000021f4220) Mutex M899 (0x55ca67a0f7a8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6d67) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4859 (mysqld+0x4e6d67) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6d67) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:1613 in close_connections ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x55ca67a0f964 by main thread (mutexes: write M897, write M896): #0 safe_mutex_lock /data/builds/10.3_dbg_san/mysys/thr_mutex.c:303 (mysqld+0x18460ad) #1 inline_mysql_mutex_lock /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:717 (mysqld+0x4f07a7) #2 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6301 (mysqld+0x4f07a7) #3 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 4 at 0x55ca67a0f964 by thread T31: #0 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1632 (mysqld+0x5ffb42) #1 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1706 (mysqld+0x600b3e) #2 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3131 (mysqld+0x4ddc47) #3 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #4 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #5 (libtsan.so.0+0x2d1af) Location is global 'LOCK_thread_count' of size 176 at 0x55ca67a0f900 (mysqld+0x0000021f1964) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M896 (0x55ca67a0f900) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:192 (mysqld+0x1845d97) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1621467, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/thr_mutex.c:303 in safe_mutex_lock ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x7b48000bc098 by thread T32 (mutexes: write M897, write M955743507417652336): #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1731 (mysqld+0x4e3eb3) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e3eb3) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7b48000bc098 by thread T28 (mutexes: write M951525458464215448): #0 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:326 (mysqld+0xf3f2cd) #1 (libtsan.so.0+0x2d1af) Location is heap block of size 360 at 0x7b48000bbf80 allocated by thread T28: #0 calloc (libtsan.so.0+0x305ca) #1 my_thread_init /data/builds/10.3_dbg_san/mysys/my_thr_init.c:295 (mysqld+0x183b8fa) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:309 (mysqld+0xf3f0bc) #3 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M955743507417652336 is already destroyed. Mutex M951525458464215448 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:1731 in close_connections ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x55ca67a83540 by thread T28: #0 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2525 (mysqld+0x1230fdd) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #2 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ca67a83540 by thread T12: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1994 (mysqld+0x108e785) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Location is global 'srv_shutdown_state' of size 4 at 0x55ca67a83540 (mysqld+0x000002265540) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T12 (tid=1620726, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2525 in srv_shutdown_bg_undo_sources() ================== 2021-03-06 14:14:56 0 [Note] InnoDB: FTS optimize thread exiting. 2021-03-06 14:14:56 0 [Note] Event Scheduler: Purging the queue. 0 events ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a91770 by thread T28: #0 dict_stats_shutdown() /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:515 (mysqld+0x1446f2d) #1 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2527 (mysqld+0x1231042) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #3 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a91770 by thread T18: #0 dict_stats_thread /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:468 (mysqld+0x1448852) #1 (libtsan.so.0+0x2d1af) Location is global 'dict_stats_start_shutdown' of size 1 at 0x55ca67a91770 (mysqld+0x000002273770) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T18 (tid=1621033, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2359 (mysqld+0x123a458) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:515 in dict_stats_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 4 at 0x55ca67a12060 by thread T30: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 thread_safe_decrement32 /data/builds/10.3_dbg_san/include/my_pthread.h:816 (mysqld+0x600424) #2 THD::dec_thread_count() /data/builds/10.3_dbg_san/sql/sql_class.h:2193 (mysqld+0x600424) #3 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1704 (mysqld+0x600424) #4 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1706 (mysqld+0x600b3e) #5 handle_slave_background /data/builds/10.3_dbg_san/sql/slave.cc:554 (mysqld+0x51d5af) #6 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ca67a12060 by thread T32: #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1776 (mysqld+0x4e437d) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e437d) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Location is global 'thread_count' of size 4 at 0x55ca67a12060 (mysqld+0x0000021f4060) Thread T30 (tid=1621440, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x52252a) #3 start_slave_background_thread /data/builds/10.3_dbg_san/sql/slave.cc:643 (mysqld+0x52252a) #4 init_slave() /data/builds/10.3_dbg_san/sql/slave.cc:682 (mysqld+0x52252a) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6220 (mysqld+0x4efd79) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a8354c by thread T28: #0 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2532 (mysqld+0x1231064) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #2 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a8354c by thread T21: #0 srv_purge_coordinator_suspend /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2711 (mysqld+0x1229b3f) #1 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2758 (mysqld+0x1229b3f) #2 (libtsan.so.0+0x2d1af) Location is global 'srv_undo_sources' of size 1 at 0x55ca67a8354c (mysqld+0x00000226554c) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2532 in srv_shutdown_bg_undo_sources() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 8 at 0x55ca6798c668 by thread T21 (mutexes: write M1263): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1229167) #2 srv_resume_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:930 (mysqld+0x1229167) #3 srv_purge_coordinator_suspend /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2713 (mysqld+0x1229bce) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2758 (mysqld+0x1229bce) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca6798c668 by thread T28: #0 srv_purge_wakeup() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2881 (mysqld+0x1227cc4) #1 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2889 (mysqld+0x1227db0) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ca6798bdc0 (mysqld+0x00000216e668) Mutex M1263 (0x55ca6798be90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca6798bf60 by thread T21 (mutexes: write M1263): #0 srv_free_slot /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1013 (mysqld+0x1227105) #1 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2776 (mysqld+0x1229fe2) #2 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca6798bf60 by thread T28: #0 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2890 (mysqld+0x1227d8c) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #2 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ca6798bdc0 (mysqld+0x00000216df60) Mutex M1263 (0x55ca6798be90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1013 in srv_free_slot ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Atomic write of size 8 at 0x55ca6798c660 by thread T23 (mutexes: write M1263): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1229167) #2 srv_resume_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:930 (mysqld+0x1229167) #3 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2537 (mysqld+0x122dad8) #4 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca6798c660 by thread T28: #0 srv_purge_wakeup() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2880 (mysqld+0x1227cb1) #1 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2889 (mysqld+0x1227db0) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ca6798bdc0 (mysqld+0x00000216e660) Mutex M1263 (0x55ca6798be90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7ba80001e078 by thread T22: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad38) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad38) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad38) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80001e078 by thread T23 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:637 (mysqld+0x5faecf) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faecf) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faecf) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80001e000 allocated by thread T22: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7ba80001e080 by thread T22: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad48) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad48) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad48) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80001e080 by thread T21 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:636 (mysqld+0x5faea1) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faea1) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faea1) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2811 (mysqld+0x122a5d2) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80001e000 allocated by thread T22: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1621186, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1621184, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7ba800030078 by thread T28 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:637 (mysqld+0x5faecf) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faecf) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faecf) #3 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:346 (mysqld+0xf3f51d) #4 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7ba800030078 by thread T24: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad38) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad38) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad38) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba800030000 allocated by thread T24: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1621268, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:637 in ilink::unlink() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7ba800030080 by thread T24: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad48) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad48) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad48) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba800030080 by thread T23 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:636 (mysqld+0x5faea1) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faea1) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faea1) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba800030000 allocated by thread T24: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ca67a0f928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1621190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1621189, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca6798c680 by thread T32: #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x12246c8) #1 simple_counter::inc() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1167 (mysqld+0x12246c8) #2 srv_inc_activity_count() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1890 (mysqld+0x12246c8) #3 srv_active_wake_master_thread_low() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1933 (mysqld+0x122f4e0) #4 ha_innobase::close() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6467 (mysqld+0xf3923e) #5 handler::ha_close() /data/builds/10.3_dbg_san/sql/handler.cc:2833 (mysqld+0xb56ec3) #6 closefrm(TABLE*) /data/builds/10.3_dbg_san/sql/table.cc:3668 (mysqld+0x849854) #7 intern_close_table /data/builds/10.3_dbg_san/sql/table_cache.cc:222 (mysqld+0xa097b7) #8 tc_purge(bool) /data/builds/10.3_dbg_san/sql/table_cache.cc:335 (mysqld+0xa0d639) #9 close_cached_tables(THD*, TABLE_LIST*, bool, unsigned long) /data/builds/10.3_dbg_san/sql/sql_base.cc:377 (mysqld+0x5ba4b2) #10 tdc_start_shutdown() /data/builds/10.3_dbg_san/sql/table_cache.cc:660 (mysqld+0xa07f4d) #11 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2239 (mysqld+0x4d9976) #12 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #13 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #14 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #15 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca6798c680 by thread T13: #0 simple_counter::operator unsigned long() const /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1177 (mysqld+0x12246fd) #1 srv_get_activity_count() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1983 (mysqld+0x12246fd) #2 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3110 (mysqld+0x13a6a28) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ca6798bdc0 (mysqld+0x00000216e680) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 in simple_counter::add(unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x55ca67a57958 by thread T20: #0 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2399 (mysqld+0x122a893) #1 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ca67a57958 by main thread: #0 srv_mon_default_on() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 (mysqld+0x1220a6d) #1 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4260 (mysqld+0xf69846) #2 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #3 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #4 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #5 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_master_sleep /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2357 (mysqld+0x122a86f) #3 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2397 (mysqld+0x122a86f) #4 (libtsan.so.0+0x2d1af) Location is global 'monitor_set_tbl' of size 40 at 0x55ca67a57940 (mysqld+0x000002239958) Thread T20 (tid=1621182, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2399 in srv_master_thread ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67988cc0 by thread T20 (mutexes: write M392188970367748688): #0 log_write_flush_to_disk_low /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:820 (mysqld+0x1042823) #1 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1040 (mysqld+0x1049928) #2 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #3 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #4 srv_master_do_active_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2175 (mysqld+0x122ac87) #5 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2403 (mysqld+0x122ac87) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67988cc0 by thread T13 (mutexes: write M392751920321170192): #0 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:897 (mysqld+0x1046af0) #1 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1035 (mysqld+0x13a1d22) #2 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a1d22) #3 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #4 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #5 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #6 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #7 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #8 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #9 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #10 (libtsan.so.0+0x2d1af) Location is global 'log_sys' of size 2048 at 0x55ca67988a00 (mysqld+0x00000216acc0) Mutex M392188970367748688 is already destroyed. Mutex M392751920321170192 is already destroyed. Thread T20 (tid=1621182, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:820 in log_write_flush_to_disk_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67988cc8 by thread T20 (mutexes: write M392188970367748688): #0 log_write_flush_to_disk_low /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:823 (mysqld+0x104284d) #1 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1040 (mysqld+0x1049928) #2 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #3 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #4 srv_master_do_active_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2175 (mysqld+0x122ac87) #5 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2403 (mysqld+0x122ac87) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67988cc8 by thread T13 (mutexes: write M392751920321170192): #0 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:911 (mysqld+0x1046b09) #1 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1035 (mysqld+0x13a1d22) #2 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a1d22) #3 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #4 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #5 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #6 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #7 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #8 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #9 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #10 (libtsan.so.0+0x2d1af) Location is global 'log_sys' of size 2048 at 0x55ca67988a00 (mysqld+0x00000216acc8) Mutex M392188970367748688 is already destroyed. Mutex M392751920321170192 is already destroyed. Thread T20 (tid=1621182, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:823 in log_write_flush_to_disk_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d54a12080 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 (mysqld+0x108e56d) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d54a12080 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6366 (mysqld+0x109364e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1620721, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 8 at 0x7f5d54a12038 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 (mysqld+0x108e5ba) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7f5d54a12038 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6325 (mysqld+0x10934b0) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1620721, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 4 at 0x7f5d54a12078 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 (mysqld+0x108e5eb) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7f5d54a12078 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6326 (mysqld+0x10934c3) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1620721, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x7f5d54a12002 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 (mysqld+0x108e582) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7f5d54a12002 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6311 (mysqld+0x109338e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1620721, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 2 at 0x7f5d54a12030 by thread T9: #0 IORequest::is_log() const /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 (mysqld+0x108e5cc) #1 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1958 (mysqld+0x108e5cc) #2 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #3 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #4 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #5 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #7 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7f5d54a12031 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6322 (mysqld+0x1093446) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1620721, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 in IORequest::is_log() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 2 at 0x7f5d54a20030 by thread T10: #0 IORequest::is_log() const /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 (mysqld+0x108e5cc) #1 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1958 (mysqld+0x108e5cc) #2 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #3 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #4 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #5 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #7 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7f5d54a20030 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6322 (mysqld+0x1093446) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7f5d54a12000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T10 (tid=1620722, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1620729, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 in IORequest::is_log() const ================== 2021-03-06 14:14:57 0 [Note] InnoDB: Starting shutdown... 2021-03-06 14:14:57 0 [Note] InnoDB: Dumping buffer pool(s) to /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/data/ib_buffer_pool 2021-03-06 14:14:57 0 [Note] InnoDB: Buffer pool(s) dump completed at 210306 14:14:57 ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a7f4fc by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1646 (mysqld+0x104d057) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a7f4fc by thread T16: #0 srv_error_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1874 (mysqld+0x122507f) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_error_monitor_active' of size 1 at 0x55ca67a7f4fc (mysqld+0x0000022614fc) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T16 (tid=1621028, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2335 (mysqld+0x123a313) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1646 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a7f4fd by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1648 (mysqld+0x104d0b8) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a7f4fd by thread T17: #0 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1769 (mysqld+0x122f3fa) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_monitor_active' of size 1 at 0x55ca67a7f4fd (mysqld+0x0000022614fd) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1621030, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1648 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a3f1f8 by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1655 (mysqld+0x104d180) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a3f1f8 by thread T15: #0 lock_wait_timeout_thread /data/builds/10.3_dbg_san/storage/innobase/lock/lock0wait.cc:554 (mysqld+0x103d675) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'lock_sys' of size 448 at 0x55ca67a3f040 (mysqld+0x0000022211f8) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T15 (tid=1621014, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2326 (mysqld+0x123a2b5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1655 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a8fe60 by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1660 (mysqld+0x104d1ec) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a8fe60 by thread T26: #0 btr_defragment_thread /data/builds/10.3_dbg_san/storage/innobase/btr/btr0defragment.cc:798 (mysqld+0x135ea9f) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'btr_defragment_thread_active' of size 1 at 0x55ca67a8fe60 (mysqld+0x000002271e60) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T26 (tid=1621260, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2508 (mysqld+0x123b035) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1660 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x7b4000001701 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001701 by thread T4 (mutexes: write M1296): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1296 (0x7b4000001710) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001710 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001710 by thread T4 (mutexes: write M364927084625139472): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001708 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001708 by thread T4 (mutexes: write M364927084625139472): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001700 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001700 by thread T4 (mutexes: write M364927084625139472): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001760 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6b2) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001760 by thread T4 (mutexes: write M364927084625139472): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001768 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6b2) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001768 by thread T4 (mutexes: write M364927084625139472): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x7b4000001801 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001801 by thread T4 (mutexes: write M1300): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001810 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001810 by thread T4 (mutexes: write M366052984531982352): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001808 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001808 by thread T4 (mutexes: write M366052984531982352): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001800 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001800 by thread T4 (mutexes: write M366052984531982352): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001860 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6f6) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001860 by thread T4 (mutexes: write M366052984531982352): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001868 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6f6) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001868 by thread T4 (mutexes: write M366052984531982352): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x7b4000001a01 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001a01 by thread T4 (mutexes: write M1308): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1308 (0x7b4000001a10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001a10 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001a10 by thread T4 (mutexes: write M368304784345668112): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001a08 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001a08 by thread T4 (mutexes: write M368304784345668112): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x7b4000001a00 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001a00 by thread T4 (mutexes: write M368304784345668112): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001a60 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c77e) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001a60 by thread T4 (mutexes: write M368304784345668112): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x7b4000001a68 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c77e) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001a68 by thread T4 (mutexes: write M368304784345668112): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 1 at 0x55ca67a7f561 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #4 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #5 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #6 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #7 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #8 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #9 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #10 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #11 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #12 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #13 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #14 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ca67a7f561 by thread T17 (mutexes: write M1261): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x122edd2) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122edd2) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122edd2) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122edd2) #4 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ca67a7f560 (mysqld+0x000002261561) Mutex M1261 (0x55ca67a7f570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1621030, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a7f570 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x55ca67a7f570 by thread T17 (mutexes: write M355034273442952560): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x122ee17) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x122ee17) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122ee17) #4 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122ee17) #5 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ee17) #6 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ca67a7f560 (mysqld+0x000002261570) Mutex M355034273442952560 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1621030, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a7f568 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #5 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #6 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #7 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #8 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #9 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #10 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #11 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #12 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #13 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #14 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #15 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a7f568 by thread T17 (mutexes: write M355034273442952560): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x122edfe) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x122edfe) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122edfe) #3 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122edfe) #4 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122edfe) #5 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ca67a7f560 (mysqld+0x000002261568) Mutex M355034273442952560 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1621030, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a7f560 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #4 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #5 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #6 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #7 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #8 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #9 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #10 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #11 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #12 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #13 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #14 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a7f560 by thread T17 (mutexes: write M355034273442952560): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x122ede5) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122ede5) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122ede5) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ede5) #4 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ca67a7f560 (mysqld+0x000002261560) Mutex M355034273442952560 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1621030, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 8 at 0x55ca67a8d4e0 by thread T32: #0 LatchDebug::shutdown() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1230 (mysqld+0x1248d7a) #1 sync_check_close() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1712 (mysqld+0x1248dde) #2 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2655 (mysqld+0x1232757) #3 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #4 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #5 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #6 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #7 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #8 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #9 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #10 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #11 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #12 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ca67a8d4e0 by thread T4 (mutexes: write M368304784345668112): #0 LatchDebug::instance() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:343 (mysqld+0x125409d) #1 sync_check_unlock(latch_t const*) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1157 (mysqld+0x125409d) #2 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:98 (mysqld+0xf89acf) #3 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #4 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #5 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #6 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #7 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #8 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #9 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #10 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'LatchDebug::s_instance' of size 8 at 0x55ca67a8d4e0 (mysqld+0x00000226f4e0) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=1621529, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1620714, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1230 in LatchDebug::shutdown() ================== 2021-03-06 14:15:00 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2021-03-06 14:15:00 0 [Note] InnoDB: Shutdown completed; log sequence number 1626053; transaction id 21 2021-03-06 14:15:00 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld: Shutdown complete ================== WARNING: ThreadSanitizer: data race (pid=1619214) Read of size 4 at 0x55ca67a124a0 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3593 (mysqld+0x4db27d) #1 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x55ca67a124a0 by thread T32: [failed to restore the stack] Location is global 'cleanup_done' of size 4 at 0x55ca67a124a0 (mysqld+0x0000021f44a0) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=1621529, finished) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3593 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67a12582 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3598 (mysqld+0x4db314) #1 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ca67a12582 by main thread: #0 wait_for_signal_thread_to_end /data/builds/10.3_dbg_san/sql/mysqld.cc:2345 (mysqld+0x4d60bb) #1 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2182 (mysqld+0x4d60bb) #2 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #3 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'signal_thread_in_use' of size 1 at 0x55ca67a12582 (mysqld+0x0000021f4582) Thread T29 (tid=1621416, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3598 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca682a4d00 by main thread: #0 my_thread_global_end /data/builds/10.3_dbg_san/mysys/my_thr_init.c:245 (mysqld+0x183b190) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:233 (mysqld+0x1834eff) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ca682a4d00 by thread T20: #0 my_thread_var_dbug /data/builds/10.3_dbg_san/mysys/my_thr_init.c:440 (mysqld+0x183bda8) #1 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:379 (mysqld+0x18690c1) #2 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #3 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2373 (mysqld+0x122a81d) #4 (libtsan.so.0+0x2d1af) Location is global 'my_thread_global_init_done' of size 1 at 0x55ca682a4d00 (mysqld+0x000002a86d00) Thread T20 (tid=1621182, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/my_thr_init.c:245 in my_thread_global_end ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca67996030 by main thread: #0 _db_end_ /data/builds/10.3_dbg_san/dbug/dbug.c:1669 (mysqld+0x186a9d6) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:236 (mysqld+0x183525e) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ca67996030 by thread T20: #0 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:365 (mysqld+0x186909e) #1 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #2 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2373 (mysqld+0x122a81d) #3 (libtsan.so.0+0x2d1af) Location is global '_dbug_on_' of size 1 at 0x55ca67996030 (mysqld+0x000002178030) Thread T20 (tid=1621182, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/dbug/dbug.c:1669 in _db_end_ ================== ================== WARNING: ThreadSanitizer: data race (pid=1619214) Write of size 1 at 0x55ca682a6578 by main thread: #0 _db_end_ /data/builds/10.3_dbg_san/dbug/dbug.c:1686 (mysqld+0x186aa6a) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:236 (mysqld+0x183525e) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ca682a6578 by thread T32: #0 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:368 (mysqld+0x18690b3) #1 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #2 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:1988 (mysqld+0x4e33bd) #3 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #4 (libtsan.so.0+0x2d1af) Location is global 'init_done' of size 1 at 0x55ca682a6578 (mysqld+0x000002a88578) Thread T32 (tid=1621529, finished) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/dbug/dbug.c:1686 in _db_end_ ================== Stats: SizeClassAllocator64: 14M mapped (5M rss) in 57438 allocations; remains 2565 01 ( 16): mapped: 64K allocs: 768 frees: 731 inuse: 37 num_freed_chunks 4059 avail: 4096 rss: 4K releases: 1 last released: 60K region: 0x7b0400000000 02 ( 32): mapped: 192K allocs: 4352 frees: 4112 inuse: 240 num_freed_chunks 5904 avail: 6144 rss: 100K releases: 7 last released: 92K region: 0x7b0800000000 03 ( 48): mapped: 64K allocs: 768 frees: 643 inuse: 125 num_freed_chunks 1240 avail: 1365 rss: 8K releases: 1 last released: 52K region: 0x7b0c00000000 04 ( 64): mapped: 192K allocs: 2560 frees: 2436 inuse: 124 num_freed_chunks 2948 avail: 3072 rss: 36K releases: 5 last released: 128K region: 0x7b1000000000 05 ( 80): mapped: 64K allocs: 768 frees: 719 inuse: 49 num_freed_chunks 770 avail: 819 rss: 32K releases: 1 last released: 28K region: 0x7b1400000000 06 ( 96): mapped: 64K allocs: 384 frees: 256 inuse: 128 num_freed_chunks 554 avail: 682 rss: 4K releases: 1 last released: 48K region: 0x7b1800000000 07 ( 112): mapped: 3712K allocs: 33664 frees: 33548 inuse: 116 num_freed_chunks 33822 avail: 33938 rss: 3620K releases: 4 last released: 80K region: 0x7b1c00000000 08 ( 128): mapped: 192K allocs: 1536 frees: 1399 inuse: 137 num_freed_chunks 1399 avail: 1536 rss: 28K releases: 3 last released: 140K region: 0x7b2000000000 09 ( 144): mapped: 64K allocs: 512 frees: 417 inuse: 95 num_freed_chunks 360 avail: 455 rss: 8K releases: 2 last released: 44K region: 0x7b2400000000 10 ( 160): mapped: 64K allocs: 640 frees: 558 inuse: 82 num_freed_chunks 327 avail: 409 rss: 8K releases: 2 last released: 44K region: 0x7b2800000000 11 ( 176): mapped: 192K allocs: 1408 frees: 1308 inuse: 100 num_freed_chunks 1017 avail: 1117 rss: 40K releases: 5 last released: 128K region: 0x7b2c00000000 12 ( 192): mapped: 128K allocs: 640 frees: 562 inuse: 78 num_freed_chunks 604 avail: 682 rss: 8K releases: 2 last released: 84K region: 0x7b3000000000 13 ( 208): mapped: 64K allocs: 128 frees: 17 inuse: 111 num_freed_chunks 204 avail: 315 rss: 4K releases: 0 last released: 0K region: 0x7b3400000000 14 ( 224): mapped: 256K allocs: 1024 frees: 897 inuse: 127 num_freed_chunks 1043 avail: 1170 rss: 4K releases: 1 last released: 224K region: 0x7b3800000000 15 ( 240): mapped: 128K allocs: 512 frees: 410 inuse: 102 num_freed_chunks 444 avail: 546 rss: 8K releases: 2 last released: 96K region: 0x7b3c00000000 16 ( 256): mapped: 256K allocs: 896 frees: 804 inuse: 92 num_freed_chunks 932 avail: 1024 rss: 12K releases: 1 last released: 224K region: 0x7b4000000000 17 ( 320): mapped: 128K allocs: 384 frees: 271 inuse: 113 num_freed_chunks 296 avail: 409 rss: 24K releases: 1 last released: 44K region: 0x7b4400000000 18 ( 384): mapped: 960K allocs: 2688 frees: 2638 inuse: 50 num_freed_chunks 2510 avail: 2560 rss: 224K releases: 8 last released: 484K region: 0x7b4800000000 19 ( 448): mapped: 64K allocs: 128 frees: 10 inuse: 118 num_freed_chunks 28 avail: 146 rss: 4K releases: 2 last released: 8K region: 0x7b4c00000000 20 ( 512): mapped: 320K allocs: 640 frees: 524 inuse: 116 num_freed_chunks 524 avail: 640 rss: 8K releases: 1 last released: 256K region: 0x7b5000000000 21 ( 640): mapped: 256K allocs: 408 frees: 353 inuse: 55 num_freed_chunks 354 avail: 409 rss: 44K releases: 2 last released: 120K region: 0x7b5400000000 22 ( 768): mapped: 64K allocs: 85 frees: 8 inuse: 77 num_freed_chunks 8 avail: 85 rss: 8K releases: 0 last released: 0K region: 0x7b5800000000 23 ( 896): mapped: 320K allocs: 365 frees: 309 inuse: 56 num_freed_chunks 309 avail: 365 rss: 8K releases: 2 last released: 264K region: 0x7b5c00000000 24 ( 1024): mapped: 320K allocs: 320 frees: 272 inuse: 48 num_freed_chunks 272 avail: 320 rss: 0K releases: 2 last released: 272K region: 0x7b6000000000 25 ( 1280): mapped: 576K allocs: 459 frees: 430 inuse: 29 num_freed_chunks 431 avail: 460 rss: 44K releases: 3 last released: 528K region: 0x7b6400000000 26 ( 1536): mapped: 256K allocs: 168 frees: 167 inuse: 1 num_freed_chunks 169 avail: 170 rss: 72K releases: 2 last released: 180K region: 0x7b6800000000 27 ( 1792): mapped: 320K allocs: 180 frees: 166 inuse: 14 num_freed_chunks 168 avail: 182 rss: 24K releases: 4 last released: 220K region: 0x7b6c00000000 28 ( 2048): mapped: 320K allocs: 160 frees: 131 inuse: 29 num_freed_chunks 131 avail: 160 rss: 4K releases: 2 last released: 260K region: 0x7b7000000000 29 ( 2560): mapped: 1280K allocs: 550 frees: 516 inuse: 34 num_freed_chunks 478 avail: 512 rss: 476K releases: 24 last released: 652K region: 0x7b7400000000 30 ( 3072): mapped: 64K allocs: 21 frees: 15 inuse: 6 num_freed_chunks 15 avail: 21 rss: 4K releases: 1 last released: 44K region: 0x7b7800000000 31 ( 3584): mapped: 128K allocs: 36 frees: 31 inuse: 5 num_freed_chunks 31 avail: 36 rss: 20K releases: 2 last released: 104K region: 0x7b7c00000000 32 ( 4096): mapped: 256K allocs: 64 frees: 33 inuse: 31 num_freed_chunks 33 avail: 64 rss: 128K releases: 1 last released: 128K region: 0x7b8000000000 33 ( 5120): mapped: 448K allocs: 84 frees: 73 inuse: 11 num_freed_chunks 78 avail: 89 rss: 128K releases: 4 last released: 244K region: 0x7b8400000000 34 ( 6144): mapped: 128K allocs: 20 frees: 12 inuse: 8 num_freed_chunks 13 avail: 21 rss: 8K releases: 2 last released: 76K region: 0x7b8800000000 36 ( 8192): mapped: 128K allocs: 16 frees: 13 inuse: 3 num_freed_chunks 13 avail: 16 rss: 0K releases: 2 last released: 104K region: 0x7b9000000000 37 ( 10240): mapped: 192K allocs: 18 frees: 17 inuse: 1 num_freed_chunks 18 avail: 19 rss: 4K releases: 2 last released: 176K region: 0x7b9400000000 38 ( 12288): mapped: 128K allocs: 10 frees: 5 inuse: 5 num_freed_chunks 5 avail: 10 rss: 12K releases: 1 last released: 60K region: 0x7b9800000000 39 ( 14336): mapped: 64K allocs: 4 frees: 3 inuse: 1 num_freed_chunks 3 avail: 4 rss: 44K releases: 0 last released: 0K region: 0x7b9c00000000 40 ( 16384): mapped: 128K allocs: 8 frees: 5 inuse: 3 num_freed_chunks 5 avail: 8 rss: 16K releases: 2 last released: 80K region: 0x7ba000000000 41 ( 20480): mapped: 256K allocs: 12 frees: 11 inuse: 1 num_freed_chunks 11 avail: 12 rss: 20K releases: 2 last released: 220K region: 0x7ba400000000 42 ( 24576): mapped: 384K allocs: 16 frees: 16 inuse: 0 num_freed_chunks 16 avail: 16 rss: 0K releases: 1 last released: 384K region: 0x7ba800000000 43 ( 28672): mapped: 64K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 28K releases: 0 last released: 0K region: 0x7bac00000000 44 ( 32768): mapped: 512K allocs: 18 frees: 15 inuse: 3 num_freed_chunks 13 avail: 16 rss: 120K releases: 3 last released: 256K region: 0x7bb000000000 45 ( 40960): mapped: 192K allocs: 4 frees: 3 inuse: 1 num_freed_chunks 3 avail: 4 rss: 36K releases: 1 last released: 120K region: 0x7bb400000000 46 ( 49152): mapped: 128K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 60K releases: 0 last released: 0K region: 0x7bb800000000 47 ( 57344): mapped: 128K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 0K releases: 1 last released: 112K region: 0x7bbc00000000 48 ( 65536): mapped: 64K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 64K region: 0x7bc000000000 49 ( 81920): mapped: 128K allocs: 1 frees: 0 inuse: 1 num_freed_chunks 0 avail: 1 rss: 4K releases: 0 last released: 0K region: 0x7bc400000000 50 ( 98304): mapped: 128K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 96K region: 0x7bc800000000 51 (114688): mapped: 128K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 112K region: 0x7bcc00000000 52 (131072): mapped: 256K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 0K releases: 1 last released: 256K region: 0x7bd000000000 Stats: LargeMmapAllocator: allocated 39 times, remains 0 (0 K) max 290 M; by size logs: 17:6; 18:16; 19:5; 20:1; 21:5; 22:2; 24:2; 26:2; ================== WARNING: ThreadSanitizer: thread leak (pid=1619214) Thread T28 (tid=1621268, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: thread leak (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x5ea99) in pthread_create ================== ThreadSanitizer: reported 93 warnings 2021-03-06 14:15:03 0 [Note] InnoDB: Using Linux native AIO 2021-03-06 14:15:03 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2021-03-06 14:15:03 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2021-03-06 14:15:03 0 [Note] InnoDB: Uses system mutexes 2021-03-06 14:15:03 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-03-06 14:15:03 0 [Note] InnoDB: Number of pools: 1 2021-03-06 14:15:03 0 [Note] InnoDB: Using SSE2 crc32 instructions 2021-03-06 14:15:03 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2021-03-06 14:15:03 0 [Note] InnoDB: Completed initialization of buffer pool 2021-03-06 14:15:04 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7bbc0000e080 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 (mysqld+0x108e56d) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7bbc0000e080 by main thread (mutexes: write M392189109565114960, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6366 (mysqld+0x109364e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392189109565114960 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7bbc0000e038 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 (mysqld+0x108e5ba) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7bbc0000e038 by main thread (mutexes: write M392189109565114960, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6325 (mysqld+0x10934b0) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392189109565114960 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 2 at 0x7bbc0000e030 by thread T4: #0 IORequest::is_log() const /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 (mysqld+0x108e5cc) #1 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1958 (mysqld+0x108e5cc) #2 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #3 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #4 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #5 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #7 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7bbc0000e030 by main thread (mutexes: write M392189109565114960, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6322 (mysqld+0x1093446) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392189109565114960 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 in IORequest::is_log() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x7bbc0000e078 by thread T4: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 (mysqld+0x108e5eb) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7bbc0000e078 by main thread (mutexes: write M392189109565114960, write M1300): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6326 (mysqld+0x10934c3) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392189109565114960 is already destroyed. Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7bbc0000e002 by thread T4 (mutexes: write M1300): #0 AIO::release(Slot*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1198 (mysqld+0x108cae2) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2112 (mysqld+0x1091bb0) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7bbc0000e002 by main thread (mutexes: write M392189109565114960): #0 AIO::linux_dispatch(Slot*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2156 (mysqld+0x108492f) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6764 (mysqld+0x1093aaa) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 log_group_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1268 (mysqld+0x10451dd) #5 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1303 (mysqld+0x10451dd) #6 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #7 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is heap block of size 57344 at 0x7bbc0000e000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392189109565114960 is already destroyed. Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1198 in AIO::release(Slot*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead067cd60 by thread T4 (mutexes: write M392189109565114960): #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x1043a6b) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x1043a6b) #2 log_complete_checkpoint /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1193 (mysqld+0x1043a6b) #3 log_t::complete_checkpoint() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1207 (mysqld+0x1043a6b) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4481 (mysqld+0x14710de) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead067cd60 by main thread: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1045630) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1045630) #3 log_write_checkpoint_info(bool, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1311 (mysqld+0x1045630) #4 recv_synchronize_groups /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:1029 (mysqld+0x106aee7) #5 recv_recovery_from_checkpoint_start(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:3903 (mysqld+0x106aee7) #6 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1968 (mysqld+0x12389b0) #7 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #8 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #9 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #10 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #11 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #12 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #13 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'log_sys' of size 2048 at 0x55ead067ca00 (mysqld+0x00000216ad60) Mutex M392189109565114960 is already destroyed. Thread T4 (tid=1624931, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 in rw_lock_x_unlock_func ================== 2021-03-06 14:15:04 0 [Note] InnoDB: 128 out of 128 rollback segments are active. ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 8 at 0x55ead074b650 by thread T14: #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1097a8e) #2 os_thread_exit(bool) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:191 (mysqld+0x1097a8e) #3 trx_rollback_all_recovered /data/builds/10.3_dbg_san/storage/innobase/trx/trx0roll.cc:876 (mysqld+0x129572d) #4 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead074b650 by main thread: #0 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:146 (mysqld+0x10978c0) #1 recv_recovery_rollback_active() /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:4017 (mysqld+0x1051e65) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2288 (mysqld+0x123a159) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'os_thread_count' of size 8 at 0x55ead074b650 (mysqld+0x000002239650) Thread T14 (tid=1625127, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 recv_recovery_rollback_active() /data/builds/10.3_dbg_san/storage/innobase/log/log0recv.cc:4017 (mysqld+0x1051e65) #3 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2288 (mysqld+0x123a159) #4 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #5 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #6 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #7 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #8 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #9 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #10 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead0783fd4 by thread T3: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1995 (mysqld+0x108e79b) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead0783fd4 by main thread: [failed to restore the stack] Location is global 'buf_page_cleaner_is_active' of size 1 at 0x55ead0783fd4 (mysqld+0x000002271fd4) Thread T3 (tid=1624930, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1995 in LinuxAIOHandler::collect() ================== 2021-03-06 14:15:04 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-03-06 14:15:04 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-03-06 14:15:04 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-03-06 14:15:04 0 [Note] InnoDB: 10.3.28 started; log sequence number 1626053; transaction id 20 2021-03-06 14:15:04 0 [Note] InnoDB: Loading buffer pool(s) from /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/data/ib_buffer_pool ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b6c00000fa8 by thread T25 (mutexes: write M1318): #0 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5524 (mysqld+0x13758f4) #1 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #2 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #3 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #4 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c00000fa8 by thread T13: #0 buf_get_n_pending_read_ios() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6882 (mysqld+0x1365ef7) #1 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3120 (mysqld+0x13a6a86) #2 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5524 in buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead074b950 by main thread: #0 srv_mon_default_on() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 (mysqld+0x1220a6d) #1 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4260 (mysqld+0xf69846) #2 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #3 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #4 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #5 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 8 at 0x55ead074b950 by thread T21 (mutexes: write M426007171751220880): #0 os_file_pread /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5102 (mysqld+0x108a8ff) #1 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5138 (mysqld+0x108a8ff) #2 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #3 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6715 (mysqld+0x10938cc) #4 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #5 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #6 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:182 (mysqld+0x13c08c4) #7 buf_read_page(page_id_t, page_size_t const&) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:412 (mysqld+0x13c21f4) #8 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4378 (mysqld+0x137f459) #9 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #10 fsp_flags_try_adjust(fil_space_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3935 (mysqld+0x146bd0d) #11 fil_space_for_table_exists_in_mem(unsigned long, char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:3995 (mysqld+0x146c4e6) #12 dict_load_tablespace /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2787 (mysqld+0x1418df9) #13 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2937 (mysqld+0x1418df9) #14 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #15 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #16 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #17 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #18 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #19 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #20 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #21 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #22 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #23 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #24 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #25 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #26 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #27 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4222 (mysqld+0xf694f2) #3 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #4 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #5 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #6 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #7 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #8 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'monitor_set_tbl' of size 40 at 0x55ead074b940 (mysqld+0x000002239950) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 in srv_mon_default_on() ================== 2021-03-06 14:15:04 0 [Note] Plugin 'FEEDBACK' is disabled. ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b7400030c20 by thread T21 (mutexes: write M426007171751220880): #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4276 (mysqld+0x137f589) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2995 (mysqld+0x141b15b) #6 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #7 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #8 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #9 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #10 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #17 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #18 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b7400030c20 by thread T25 (mutexes: write M1318): #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_init_for_read(dberr_t*, unsigned long, page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5359 (mysqld+0x1374d7b) #4 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:153 (mysqld+0x13bff5f) #5 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #6 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #7 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #8 (libtsan.so.0+0x2d1af) Location is heap block of size 2432 at 0x7b7400030c00 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 hash_create_sync_obj(hash_table_t*, hash_table_sync_t, latch_id_t, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/hash0hash.cc:185 (mysqld+0x14b4eb8) #2 ib_create(unsigned long, latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/ha/ha0ha.cc:76 (mysqld+0x14ae8ff) #3 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1932 (mysqld+0x1382c3d) #4 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382c3d) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b6c00001068 by thread T25: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 (mysqld+0x137e56e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 ibuf_bitmap_get_map_page_func /data/builds/10.3_dbg_san/storage/innobase/ibuf/ibuf0ibuf.cc:765 (mysqld+0xff7366) #3 ibuf_merge_or_delete_for_page(buf_block_t*, page_id_t, page_size_t const&) /data/builds/10.3_dbg_san/storage/innobase/ibuf/ibuf0ibuf.cc:4417 (mysqld+0x10073e6) #4 buf_page_io_complete(buf_page_t*, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6199 (mysqld+0x1377460) #5 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:215 (mysqld+0x13c0997) #6 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #7 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #8 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #9 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c00001068 by thread T21 (mutexes: write M426007171751220880): #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 (mysqld+0x137e588) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2995 (mysqld+0x141b15b) #3 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #4 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #5 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #6 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #7 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4271 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 8 at 0x55ead074ee78 by thread T25 (mutexes: write M1313): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 os_file_pread /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5103 (mysqld+0x108aa5c) #2 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5138 (mysqld+0x108aa5c) #3 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #4 pfs_os_file_read_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:294 (mysqld+0x145c347) #5 fil_node_t::read_page0(bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:484 (mysqld+0x145c347) #6 fil_node_open_file /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:624 (mysqld+0x145ddae) #7 fil_node_prepare_for_io /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4035 (mysqld+0x145e544) #8 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4288 (mysqld+0x1471e40) #9 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:182 (mysqld+0x13c08c4) #10 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #11 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #12 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074ee78 by main thread: #0 memset (libtsan.so.0+0x3792f) #1 memset /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71 (mysqld+0xf69781) #2 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4249 (mysqld+0xf69781) #3 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #4 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #5 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #6 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #7 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #8 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'innodb_counter_value' of size 26208 at 0x55ead074b980 (mysqld+0x00000223ce78) Mutex M1313 (0x55ead06826f8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 fil_system_t::create(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1696 (mysqld+0x1458c7e) #6 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1579 (mysqld+0x1237055) #7 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #8 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #9 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #10 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #11 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #12 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #13 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead074ee80 by thread T25 (mutexes: write M1313): #0 os_file_pread /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5103 (mysqld+0x108aa7a) #1 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5138 (mysqld+0x108aa7a) #2 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #3 pfs_os_file_read_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:294 (mysqld+0x145c347) #4 fil_node_t::read_page0(bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:484 (mysqld+0x145c347) #5 fil_node_open_file /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:624 (mysqld+0x145ddae) #6 fil_node_prepare_for_io /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4035 (mysqld+0x145e544) #7 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4288 (mysqld+0x1471e40) #8 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:182 (mysqld+0x13c08c4) #9 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #10 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #11 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #12 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074ee80 by main thread: #0 memset (libtsan.so.0+0x3792f) #1 memset /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71 (mysqld+0xf69781) #2 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4249 (mysqld+0xf69781) #3 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #4 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #5 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #6 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #7 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #8 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'innodb_counter_value' of size 26208 at 0x55ead074b980 (mysqld+0x00000223ce80) Mutex M1313 (0x55ead06826f8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 fil_system_t::create(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:1696 (mysqld+0x1458c7e) #6 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1579 (mysqld+0x1237055) #7 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #8 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #9 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #10 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #11 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #12 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #13 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5103 in os_file_pread ================== 2021-03-06 14:15:04 0 [Note] InnoDB: Buffer pool(s) load completed at 210306 14:15:04 ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 4 at 0x7fd0e1e75970 by thread T21: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1053 (mysqld+0x10792fc) #2 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1067 (mysqld+0x10792fc) #3 memo_slot_release /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:237 (mysqld+0x10792fc) #4 ReleaseAll::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:294 (mysqld+0x1080858) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1080858) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1080858) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:461 (mysqld+0x1080858) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #16 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #17 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7fd0e1e75970 by thread T22: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 (mysqld+0x137f83e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 4 at 0x7fd0e1e75970 by thread T22: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1053 (mysqld+0x12eed3f) #2 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1067 (mysqld+0x12eed3f) #3 mtr_t::release_block_at_savepoint(unsigned long, buf_block_t*) /data/builds/10.3_dbg_san/storage/innobase/include/mtr0mtr.ic:175 (mysqld+0x12eed3f) #4 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1665 (mysqld+0x1320736) #5 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #6 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #7 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7fd0e1e75970 by thread T23: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x13006f9) #1 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1650 (mysqld+0x13203f5) #2 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #3 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #4 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #5 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #6 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #7 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #8 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #9 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #10 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #11 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #12 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #13 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #14 (libtsan.so.0+0x2d1af) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7fd0e1e75970 by thread T24: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 (mysqld+0x137f83e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Previous atomic write of size 4 at 0x7fd0e1e75970 by thread T23: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1053 (mysqld+0x12eed3f) #2 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1067 (mysqld+0x12eed3f) #3 mtr_t::release_block_at_savepoint(unsigned long, buf_block_t*) /data/builds/10.3_dbg_san/storage/innobase/include/mtr0mtr.ic:175 (mysqld+0x12eed3f) #4 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1665 (mysqld+0x1320736) #5 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #6 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #7 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7fd0e1e40bb8 by thread T24 (mutexes: write M426007171751220880): #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 (mysqld+0x137f83e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x133b99b) #4 btr_pcur_open_on_user_rec_func(dict_index_t*, dtuple_t const*, page_cur_mode_t, unsigned long, btr_pcur_t*, char const*, unsigned int, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0pcur.cc:640 (mysqld+0x133bc80) #5 dict_load_indexes /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2390 (mysqld+0x141fd44) #6 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2963 (mysqld+0x141ad0d) #7 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #8 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #9 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #10 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #11 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous atomic write of size 4 at 0x7fd0e1e40bb8 by thread T22: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1053 (mysqld+0x10792fc) #2 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1067 (mysqld+0x10792fc) #3 memo_slot_release /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:237 (mysqld+0x10792fc) #4 ReleaseAll::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:294 (mysqld+0x1080858) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1080858) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1080858) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:461 (mysqld+0x1080858) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Mutex M426007171751220880 is already destroyed. Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0783f78 by thread T24: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4828 (mysqld+0x1380b77) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead0783f78 by thread T22: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4828 (mysqld+0x1380b8e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Location is global 'buf_dbg_counter' of size 8 at 0x55ead0783f78 (mysqld+0x000002271f78) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4828 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd0e1e5ac18 by thread T24: #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1362f90) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1362f90) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4172 (mysqld+0x136402f) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd0e1e5ac18 by thread T22: #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x1079b01) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x1079b01) #2 buf_page_release_latch /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1373 (mysqld+0x1079b01) #3 memo_slot_release /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:236 (mysqld+0x1079b01) #4 ReleaseAll::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:294 (mysqld+0x1080858) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1080858) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1080858) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:461 (mysqld+0x1080858) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 in rw_lock_own_flagged(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x55ead06822a4 by main thread: #0 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:165 (mysqld+0x184d64a) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x12aa9e4) #2 rw_trx_hash_t::iterate_no_dups(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:786 (mysqld+0x12aa9e4) #3 rw_trx_hash_t::iterate_no_dups(char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:793 (mysqld+0x12aa9e4) #4 trx_recover_for_mysql(xid_t*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2203 (mysqld+0x12aa9e4) #5 innobase_xa_recover /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:17121 (mysqld+0xf3bb14) #6 xarecover_handlerton /data/builds/10.3_dbg_san/sql/handler.cc:1974 (mysqld+0xb54293) #7 plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:2435 (mysqld+0x6c2143) #8 ha_recover(st_hash*) /data/builds/10.3_dbg_san/sql/handler.cc:2094 (mysqld+0xb5470c) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5636 (mysqld+0x4e2992) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous atomic write of size 4 at 0x55ead06822a4 by thread T21: #0 __tsan_atomic32_compare_exchange_strong (libtsan.so.0+0x83920) #1 lf_pinbox_put_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:239 (mysqld+0x184d8be) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:765 (mysqld+0x10ea468) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea468) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea468) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea468) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Location is global 'trx_sys' of size 3392 at 0x55ead0681880 (mysqld+0x0000021702a4) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:165 in lf_pinbox_get_pins ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7bb00002018c by main thread: #0 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 (mysqld+0x184d68c) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x12aa9e4) #2 rw_trx_hash_t::iterate_no_dups(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:786 (mysqld+0x12aa9e4) #3 rw_trx_hash_t::iterate_no_dups(char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:793 (mysqld+0x12aa9e4) #4 trx_recover_for_mysql(xid_t*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2203 (mysqld+0x12aa9e4) #5 innobase_xa_recover /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:17121 (mysqld+0xf3bb14) #6 xarecover_handlerton /data/builds/10.3_dbg_san/sql/handler.cc:1974 (mysqld+0xb54293) #7 plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:2435 (mysqld+0x6c2143) #8 ha_recover(st_hash*) /data/builds/10.3_dbg_san/sql/handler.cc:2094 (mysqld+0xb5470c) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5636 (mysqld+0x4e2992) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous write of size 4 at 0x7bb00002018c by thread T21: #0 lf_pinbox_put_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:238 (mysqld+0x184d888) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:765 (mysqld+0x10ea468) #2 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea468) #3 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea468) #4 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea468) #5 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #6 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #7 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #8 (libtsan.so.0+0x2d1af) Location is heap block of size 30956 at 0x7bb000020000 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_dynarray_lvalue /data/builds/10.3_dbg_san/mysys/lf_dynarray.c:124 (mysqld+0x184e0df) #4 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:178 (mysqld+0x184d73e) #5 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x10ea3e2) #6 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea3e2) #7 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea3e2) #8 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea3e2) #9 trx_lists_init_at_db_start() /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:819 (mysqld+0x12b4570) #10 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1989 (mysqld+0x1238acd) #11 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #12 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #13 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #14 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #15 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #16 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #17 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 in lf_pinbox_get_pins ================== 2021-03-06 14:15:05 0 [Note] Server socket created on IP: '::'. Sanitizer: increasing stacksize 303104->396416 Sanitizer: increasing stacksize 303104->396416 2021-03-06 14:15:05 0 [Note] Reading of all Master_info entries succeeded 2021-03-06 14:15:05 0 [Note] Added new Master_info '' to hash table 2021-03-06 14:15:05 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld: ready for connections. Version: '10.3.28-MariaDB-debug' socket: '/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/socket.sock' port: 12941 MariaDB Server ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0704318 by main thread: #0 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6275 (mysqld+0x4f055e) #1 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous atomic write of size 8 at 0x55ead0704318 by thread T2 (mutexes: write M0): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 update_global_memory_status(long long) /data/builds/10.3_dbg_san/sql/sql_class.h:916 (mysqld+0x4dc0c8) #2 my_malloc_size_cb_func /data/builds/10.3_dbg_san/sql/mysqld.cc:4158 (mysqld+0x4dc0c8) #3 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:118 (mysqld+0x183632f) #4 init_dynamic_array2 /data/builds/10.3_dbg_san/mysys/array.c:70 (mysqld+0x17fd6fe) #5 my_hash_init2 /data/builds/10.3_dbg_san/mysys/hash.c:98 (mysqld+0x18047f9) #6 safe_mutex_lazy_init_deadlock_detection /data/builds/10.3_dbg_san/mysys/thr_mutex.c:177 (mysqld+0x184641f) #7 safe_mutex_lock /data/builds/10.3_dbg_san/mysys/thr_mutex.c:319 (mysqld+0x184641f) #8 inline_mysql_mutex_lock /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:717 (mysqld+0x15c626b) #9 my_service_thread_sleep /data/builds/10.3_dbg_san/storage/maria/ma_servicethread.c:99 (mysqld+0x15c626b) #10 ma_checkpoint_background /data/builds/10.3_dbg_san/storage/maria/ma_checkpoint.c:707 (mysqld+0x15b8685) #11 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4222 (mysqld+0xf694f2) #3 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #4 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #5 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #6 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #7 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #8 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'global_status_var' of size 2048 at 0x55ead0703b20 (mysqld+0x0000021f2318) Mutex M0 (0x55ead0f87a48) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x15c5b4c) #3 ma_service_thread_control_init /data/builds/10.3_dbg_san/storage/maria/ma_servicethread.c:37 (mysqld+0x15c5b4c) #4 ma_checkpoint_init /data/builds/10.3_dbg_san/storage/maria/ma_checkpoint.c:331 (mysqld+0x15b897e) #5 ha_maria_init /data/builds/10.3_dbg_san/storage/maria/ha_maria.cc:3549 (mysqld+0x156eac9) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T2 (tid=1624523, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x15b89e1) #3 ma_checkpoint_init /data/builds/10.3_dbg_san/storage/maria/ma_checkpoint.c:337 (mysqld+0x15b89e1) #4 ha_maria_init /data/builds/10.3_dbg_san/storage/maria/ha_maria.cc:3549 (mysqld+0x156eac9) #5 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #6 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #7 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #8 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #9 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #10 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:6275 in mysqld_main(int, char**) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0706210 by main thread: #0 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6636 (mysqld+0x4df4ce) #1 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #2 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous write of size 8 at 0x55ead0706210 by thread T31 (mutexes: write M899): #0 cache_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:3027 (mysqld+0x4dde4c) #1 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3129 (mysqld+0x4dde4c) #2 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #3 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #4 (libtsan.so.0+0x2d1af) Location is global 'cached_thread_count' of size 8 at 0x55ead0706210 (mysqld+0x0000021f4210) Mutex M899 (0x55ead07037a8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6d67) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4859 (mysqld+0x4e6d67) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6d67) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:6636 in create_thread_to_handle_connection(CONNECT*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead074b958 by thread T20: #0 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2399 (mysqld+0x122a893) #1 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074b958 by main thread: #0 srv_mon_default_on() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0mon.cc:2206 (mysqld+0x1220a6d) #1 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4260 (mysqld+0xf69846) #2 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #3 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #4 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #5 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_master_sleep /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2357 (mysqld+0x122a86f) #3 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2397 (mysqld+0x122a86f) #4 (libtsan.so.0+0x2d1af) Location is global 'monitor_set_tbl' of size 40 at 0x55ead074b940 (mysqld+0x000002239958) Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2399 in srv_master_thread ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead067ccc0 by thread T20 (mutexes: write M392189109565114960): #0 log_write_flush_to_disk_low /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:820 (mysqld+0x1042823) #1 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1040 (mysqld+0x1049928) #2 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #3 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #4 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2280 (mysqld+0x122b398) #5 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b398) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead067ccc0 by thread T13 (mutexes: write M392752059518536464): #0 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:897 (mysqld+0x1046af0) #1 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1035 (mysqld+0x13a1d22) #2 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a1d22) #3 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #4 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #5 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #6 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #7 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #8 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #9 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #10 (libtsan.so.0+0x2d1af) Location is global 'log_sys' of size 2048 at 0x55ead067ca00 (mysqld+0x00000216acc0) Mutex M392189109565114960 is already destroyed. Mutex M392752059518536464 is already destroyed. Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:820 in log_write_flush_to_disk_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead067ccc8 by thread T20 (mutexes: write M392189109565114960): #0 log_write_flush_to_disk_low /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:823 (mysqld+0x104284d) #1 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1040 (mysqld+0x1049928) #2 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #3 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #4 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2280 (mysqld+0x122b398) #5 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b398) #6 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead067ccc8 by thread T13 (mutexes: write M392752059518536464): #0 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:911 (mysqld+0x1046b09) #1 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1035 (mysqld+0x13a1d22) #2 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a1d22) #3 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #4 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #5 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #6 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #7 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #8 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #9 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #10 (libtsan.so.0+0x2d1af) Location is global 'log_sys' of size 2048 at 0x55ead067ca00 (mysqld+0x00000216acc8) Mutex M392189109565114960 is already destroyed. Mutex M392752059518536464 is already destroyed. Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:823 in log_write_flush_to_disk_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd101a06080 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 (mysqld+0x108e56d) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd101a06080 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6366 (mysqld+0x109364e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1943 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x7fd101a06002 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 (mysqld+0x108e582) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7fd101a06002 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6311 (mysqld+0x109338e) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1947 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd101a06038 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 (mysqld+0x108e5ba) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd101a06038 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6325 (mysqld+0x10934b0) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1957 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x7fd101a06078 by thread T9: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 (mysqld+0x108e5eb) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7fd101a06078 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6326 (mysqld+0x10934c3) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1966 in LinuxAIOHandler::collect() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 2 at 0x7fd101a06030 by thread T9: #0 IORequest::is_log() const /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 (mysqld+0x108e5cc) #1 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1958 (mysqld+0x108e5cc) #2 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #3 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #4 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #5 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #7 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7fd101a06031 by thread T13 (mutexes: write M1304): #0 AIO::reserve_slot(IORequest const&, fil_node_t*, void*, pfs_os_file_t, char const*, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6322 (mysqld+0x1093446) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6731 (mysqld+0x1093974) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #5 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #6 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #7 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #8 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #9 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #10 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #11 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #12 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/os0file.h:297 in IORequest::is_log() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead074b5b8 by thread T17 (mutexes: write M1261): #0 os_aio_refresh_stats() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7578 (mysqld+0x10856fa) #1 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1155 (mysqld+0x122ed5c) #2 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ed5c) #3 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074b5b8 by thread T20: #0 os_file_fsync_posix /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2516 (mysqld+0x1088ec6) #1 os_file_flush_func(int) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2611 (mysqld+0x1088ec6) #2 pfs_os_file_flush_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:406 (mysqld+0x14684a5) #3 fil_flush_low /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:845 (mysqld+0x14684a5) #4 fil_flush(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4536 (mysqld+0x1469c0c) #5 log_write_flush_to_disk_low /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:814 (mysqld+0x1042578) #6 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1040 (mysqld+0x1049928) #7 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #8 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #9 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2280 (mysqld+0x122b398) #10 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b398) #11 (libtsan.so.0+0x2d1af) Location is global 'os_n_fsyncs' of size 8 at 0x55ead074b5b8 (mysqld+0x0000022395b8) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7578 in os_aio_refresh_stats() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead074b630 by thread T17 (mutexes: write M1261): #0 os_aio_refresh_stats() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7580 (mysqld+0x1085720) #1 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1155 (mysqld+0x122ed5c) #2 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ed5c) #3 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074b630 by thread T25: #0 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5133 (mysqld+0x108a849) #1 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #2 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6715 (mysqld+0x10938cc) #3 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #4 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #5 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:182 (mysqld+0x13c08c4) #6 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #7 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #8 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #9 (libtsan.so.0+0x2d1af) Location is global 'os_bytes_read_since_printout' of size 8 at 0x55ead074b630 (mysqld+0x000002239630) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7580 in os_aio_refresh_stats() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead074b5c8 by thread T17 (mutexes: write M1261): #0 os_aio_refresh_stats() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7582 (mysqld+0x1085737) #1 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1155 (mysqld+0x122ed5c) #2 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ed5c) #3 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074b5c8 by thread T25: #0 os_file_pread /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5100 (mysqld+0x108a8e8) #1 os_file_read_page /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5138 (mysqld+0x108a8e8) #2 os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5501 (mysqld+0x108adda) #3 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6715 (mysqld+0x10938cc) #4 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #5 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #6 buf_read_page_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:182 (mysqld+0x13c08c4) #7 buf_read_page_background(page_id_t, page_size_t const&, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0rea.cc:445 (mysqld+0x13c23ab) #8 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:720 (mysqld+0x13961ea) #9 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #10 (libtsan.so.0+0x2d1af) Location is global 'os_n_file_reads' of size 8 at 0x55ead074b5c8 (mysqld+0x0000022395c8) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7582 in os_aio_refresh_stats() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead074b5c0 by thread T17 (mutexes: write M1261): #0 os_aio_refresh_stats() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7584 (mysqld+0x108575d) #1 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1155 (mysqld+0x122ed5c) #2 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ed5c) #3 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead074b5c0 by thread T13: #0 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6757 (mysqld+0x1093a97) #1 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #2 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #3 buf_flush_write_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1077 (mysqld+0x13a2026) #4 buf_flush_page(buf_pool_t*, buf_page_t*, buf_flush_t, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1235 (mysqld+0x13a2026) #5 buf_flush_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1460 (mysqld+0x13a30fe) #6 buf_flush_page_and_try_neighbors /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1532 (mysqld+0x13a30fe) #7 buf_do_flush_list_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1790 (mysqld+0x13a4c1d) #8 buf_flush_batch /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1861 (mysqld+0x13a4c1d) #9 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2019 (mysqld+0x13a588f) #10 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #11 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #12 (libtsan.so.0+0x2d1af) Location is global 'os_n_file_writes' of size 8 at 0x55ead074b5c0 (mysqld+0x0000022395c0) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7584 in os_aio_refresh_stats() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead067ccd8 by thread T17 (mutexes: write M1261): #0 log_refresh_stats() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1926 (mysqld+0x10404a9) #1 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1162 (mysqld+0x122ef90) #2 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ef90) #3 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead067ccd8 by thread T20 (mutexes: write M392752059518536464): #0 log_write_buf /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:772 (mysqld+0x104952c) #1 log_write_up_to(unsigned long, bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1019 (mysqld+0x104952c) #2 log_buffer_sync_in_background(bool) /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1085 (mysqld+0x104a5f6) #3 srv_sync_log_buffer_in_background /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2012 (mysqld+0x1224184) #4 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2280 (mysqld+0x122b398) #5 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b398) #6 (libtsan.so.0+0x2d1af) Location is global 'log_sys' of size 2048 at 0x55ead067ca00 (mysqld+0x00000216acd8) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M392752059518536464 is already destroyed. Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1926 in log_refresh_stats() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b6c00001078 by thread T17 (mutexes: write M1261): #0 buf_refresh_io_stats /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 (mysqld+0x136202d) #1 buf_refresh_io_stats_all() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:7271 (mysqld+0x136618d) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1164 (mysqld+0x122ef95) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ef95) #4 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c00001078 by thread T11 (mutexes: write M1318, write M3321): #0 buf_page_io_complete(buf_page_t*, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6252 (mysqld+0x1377a42) #1 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4496 (mysqld+0x147113f) #2 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #3 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M3321 (0x7fd0e1e73eb0) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1389a65) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1389a65) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1389a65) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1389a65) #5 buf_block_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1553 (mysqld+0x1382042) #6 buf_chunk_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1666 (mysqld+0x1382042) #7 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1890 (mysqld+0x1382950) #8 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382950) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T11 (tid=1624942, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 in buf_refresh_io_stats ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b6c000010b8 by thread T17 (mutexes: write M1261): #0 buf_refresh_io_stats /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 (mysqld+0x136202d) #1 buf_refresh_io_stats_all() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:7271 (mysqld+0x136618d) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1164 (mysqld+0x122ef95) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ef95) #4 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c000010b8 by thread T11 (mutexes: write M1318, write M3321, write M382378722159759656): #0 buf_flush_remove(buf_page_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:673 (mysqld+0x13aaefc) #1 buf_flush_write_complete(buf_page_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:777 (mysqld+0x13ab070) #2 buf_page_io_complete(buf_page_t*, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6245 (mysqld+0x137785d) #3 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4496 (mysqld+0x147113f) #4 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M3321 (0x7fd0e1e73eb0) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1389a65) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1389a65) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1389a65) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1389a65) #5 buf_block_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1553 (mysqld+0x1382042) #6 buf_chunk_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1666 (mysqld+0x1382042) #7 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1890 (mysqld+0x1382950) #8 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382950) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M382378722159759656 is already destroyed. Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T11 (tid=1624942, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 in buf_refresh_io_stats ================== TESTCASE_START ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0682640 by thread T31: #0 rw_lock_own(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 (mysqld+0x1242d1e) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:666 (mysqld+0x12448d6) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x1179921) #3 row_mysql_lock_data_dictionary_func(trx_t*, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:2342 (mysqld+0x1179921) #4 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*, bool, trx_t*) (mysqld+0xf8ed25) #5 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12904 (mysqld+0xf7bdfb) #6 handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/sql/handler.cc:4740 (mysqld+0xb63ab1) #7 ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /data/builds/10.3_dbg_san/sql/handler.cc:5203 (mysqld+0xb6540b) #8 rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) /data/builds/10.3_dbg_san/sql/unireg.cc:515 (mysqld+0x882916) #9 create_table_impl /data/builds/10.3_dbg_san/sql/sql_table.cc:5056 (mysqld+0x7f9e04) #10 mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5175 (mysqld+0x7fa882) #11 mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5267 (mysqld+0x7fada2) #12 Sql_cmd_create_table_like::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_table.cc:11309 (mysqld+0x7fd8af) #13 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #14 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #15 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #16 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #17 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #18 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead0682640 by thread T20: #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x1224396) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x1224396) #2 srv_master_evict_from_table_cache /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2038 (mysqld+0x1224396) #3 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2271 (mysqld+0x122b248) #4 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b248) #5 (libtsan.so.0+0x2d1af) Location is global 'dict_operation_lock' of size 152 at 0x55ead0682620 (mysqld+0x000002170640) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 in rw_lock_own(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b6c000010b0 by thread T31 (mutexes: write M426007171751220880, write M1318, write M3475): #0 incr_LRU_size_in_bytes /data/builds/10.3_dbg_san/storage/innobase/buf/buf0lru.cc:171 (mysqld+0x13af5b9) #1 buf_LRU_add_block_low /data/builds/10.3_dbg_san/storage/innobase/buf/buf0lru.cc:1339 (mysqld+0x13af5b9) #2 buf_LRU_add_block(buf_page_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0lru.cc:1381 (mysqld+0x13af917) #3 buf_page_create(page_id_t, page_size_t const&, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5697 (mysqld+0x137cbea) #4 fsp_header_init(fil_space_t*, unsigned long, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/fsp/fsp0fsp.cc:666 (mysqld+0x14920c7) #5 dict_build_table_def_step /data/builds/10.3_dbg_san/storage/innobase/dict/dict0crea.cc:447 (mysqld+0x13d9a46) #6 dict_create_table_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0crea.cc:1188 (mysqld+0x13daf51) #7 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1046 (mysqld+0x10e73ef) #8 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73ef) #9 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73ef) #10 row_create_table_for_mysql(dict_table_t*, trx_t*, fil_encryption_t, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:2436 (mysqld+0x11754d0) #11 create_table_info_t::create_table_def() (mysqld+0xf88b63) #12 create_table_info_t::create_table(bool) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12302 (mysqld+0xf7ac5d) #13 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*, bool, trx_t*) (mysqld+0xf8ecbe) #14 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12904 (mysqld+0xf7bdfb) #15 handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/sql/handler.cc:4740 (mysqld+0xb63ab1) #16 ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /data/builds/10.3_dbg_san/sql/handler.cc:5203 (mysqld+0xb6540b) #17 rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) /data/builds/10.3_dbg_san/sql/unireg.cc:515 (mysqld+0x882916) #18 create_table_impl /data/builds/10.3_dbg_san/sql/sql_table.cc:5056 (mysqld+0x7f9e04) #19 mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5175 (mysqld+0x7fa882) #20 mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5267 (mysqld+0x7fada2) #21 Sql_cmd_create_table_like::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_table.cc:11309 (mysqld+0x7fd8af) #22 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #23 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #24 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #25 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #26 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #27 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #28 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c000010b0 by thread T17 (mutexes: write M1261): #0 buf_refresh_io_stats /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 (mysqld+0x136202d) #1 buf_refresh_io_stats_all() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:7271 (mysqld+0x136618d) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1164 (mysqld+0x122ef95) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ef95) #4 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M3475 (0x7fd0e1e77ea0) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1389a65) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1389a65) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1389a65) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1389a65) #5 buf_block_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1553 (mysqld+0x1382042) #6 buf_chunk_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1666 (mysqld+0x1382042) #7 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1890 (mysqld+0x1382950) #8 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382950) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0lru.cc:171 in incr_LRU_size_in_bytes ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b6c00001080 by thread T31 (mutexes: write M426007171751220880, write M1318, write M3475): #0 buf_page_create(page_id_t, page_size_t const&, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5700 (mysqld+0x137cc55) #1 fsp_header_init(fil_space_t*, unsigned long, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/fsp/fsp0fsp.cc:666 (mysqld+0x14920c7) #2 dict_build_table_def_step /data/builds/10.3_dbg_san/storage/innobase/dict/dict0crea.cc:447 (mysqld+0x13d9a46) #3 dict_create_table_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0crea.cc:1188 (mysqld+0x13daf51) #4 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1046 (mysqld+0x10e73ef) #5 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73ef) #6 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73ef) #7 row_create_table_for_mysql(dict_table_t*, trx_t*, fil_encryption_t, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:2436 (mysqld+0x11754d0) #8 create_table_info_t::create_table_def() (mysqld+0xf88b63) #9 create_table_info_t::create_table(bool) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12302 (mysqld+0xf7ac5d) #10 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*, bool, trx_t*) (mysqld+0xf8ecbe) #11 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12904 (mysqld+0xf7bdfb) #12 handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/sql/handler.cc:4740 (mysqld+0xb63ab1) #13 ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /data/builds/10.3_dbg_san/sql/handler.cc:5203 (mysqld+0xb6540b) #14 rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) /data/builds/10.3_dbg_san/sql/unireg.cc:515 (mysqld+0x882916) #15 create_table_impl /data/builds/10.3_dbg_san/sql/sql_table.cc:5056 (mysqld+0x7f9e04) #16 mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5175 (mysqld+0x7fa882) #17 mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5267 (mysqld+0x7fada2) #18 Sql_cmd_create_table_like::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_table.cc:11309 (mysqld+0x7fd8af) #19 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #20 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #21 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #22 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #23 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #24 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #25 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c00001080 by thread T17 (mutexes: write M1261): #0 buf_refresh_io_stats /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:6319 (mysqld+0x136202d) #1 buf_refresh_io_stats_all() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:7271 (mysqld+0x136618d) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1164 (mysqld+0x122ef95) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ef95) #4 (libtsan.so.0+0x2d1af) Location is heap block of size 1688 at 0x7b6c00000e00 allocated by main thread: #0 calloc (libtsan.so.0+0x305ca) #1 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2106 (mysqld+0x138220d) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M426007171751220880 is already destroyed. Mutex M1318 (0x7b6c00000e10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1851 (mysqld+0x1383104) #6 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1383104) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M3475 (0x7fd0e1e77ea0) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1389a65) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1389a65) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1389a65) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1389a65) #5 buf_block_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1553 (mysqld+0x1382042) #6 buf_chunk_init /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1666 (mysqld+0x1382042) #7 buf_pool_init_instance /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:1890 (mysqld+0x1382950) #8 buf_pool_init(unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:2114 (mysqld+0x1382950) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1607 (mysqld+0x12372fc) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T17 (tid=1625131, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:5700 in buf_page_create(page_id_t, page_size_t const&, mtr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead0680680 by thread T31 (mutexes: write M426007171751220880): #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x12246c8) #1 simple_counter::inc() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1167 (mysqld+0x12246c8) #2 srv_inc_activity_count() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1890 (mysqld+0x12246c8) #3 srv_active_wake_master_thread_low() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1933 (mysqld+0x122f4e0) #4 trx_commit_in_memory /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1483 (mysqld+0x12a78a5) #5 trx_commit_low(trx_t*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1601 (mysqld+0x12ac55f) #6 trx_commit(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1625 (mysqld+0x12ac842) #7 trx_commit_for_mysql(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1761 (mysqld+0x12acbe4) #8 innobase_commit_low(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4342 (mysqld+0xf48d97) #9 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*, bool, trx_t*) (mysqld+0xf8ee3b) #10 ha_innobase::create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:12904 (mysqld+0xf7bdfb) #11 handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /data/builds/10.3_dbg_san/sql/handler.cc:4740 (mysqld+0xb63ab1) #12 ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /data/builds/10.3_dbg_san/sql/handler.cc:5203 (mysqld+0xb6540b) #13 rea_create_table(THD*, st_mysql_const_unsigned_lex_string*, char const*, char const*, char const*, HA_CREATE_INFO*, handler*, bool) /data/builds/10.3_dbg_san/sql/unireg.cc:515 (mysqld+0x882916) #14 create_table_impl /data/builds/10.3_dbg_san/sql/sql_table.cc:5056 (mysqld+0x7f9e04) #15 mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5175 (mysqld+0x7fa882) #16 mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /data/builds/10.3_dbg_san/sql/sql_table.cc:5267 (mysqld+0x7fada2) #17 Sql_cmd_create_table_like::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_table.cc:11309 (mysqld+0x7fd8af) #18 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #19 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #20 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #21 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #22 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #23 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #24 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead0680680 by thread T13: #0 simple_counter::operator unsigned long() const /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1177 (mysqld+0x1224738) #1 srv_check_activity(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1994 (mysqld+0x1224738) #2 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3211 (mysqld+0x13a6d7a) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ead067fdc0 (mysqld+0x00000216e680) Mutex M426007171751220880 is already destroyed. Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 in simple_counter::add(unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x55ead068266c by thread T23: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x1242691) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #10 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #11 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x55ead068266c by thread T24: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x12426a0) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #10 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #11 (libtsan.so.0+0x2d1af) Location is global 'dict_operation_lock' of size 152 at 0x55ead0682620 (mysqld+0x00000217066c) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 in rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x55ead068266c by thread T22: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x1242691) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #10 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #11 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x55ead068266c by thread T24: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x12426a0) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #10 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #11 (libtsan.so.0+0x2d1af) Location is global 'dict_operation_lock' of size 152 at 0x55ead0682620 (mysqld+0x00000217066c) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 in rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x55ead068266c by thread T21: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x1242691) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #10 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #11 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #12 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x55ead068266c by thread T24: #0 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 (mysqld+0x12426a0) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #3 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #4 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #5 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #6 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #7 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #8 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #9 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #10 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #11 (libtsan.so.0+0x2d1af) Location is global 'dict_operation_lock' of size 152 at 0x55ead0682620 (mysqld+0x00000217066c) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:320 in rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd0e1e75a38 by thread T24: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:517 (mysqld+0x1244dd5) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244dd5) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd0e1e75a38 by thread T23: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:517 in rw_lock_x_lock_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7fd0e1e75a38 by thread T23: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7fd0e1e75a38 by thread T24: #0 rw_lock_own(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 (mysqld+0x1242d1e) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:666 (mysqld+0x12448d6) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 in rw_lock_x_lock_low ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd0e1e75a38 by thread T21: #0 rw_lock_own(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 (mysqld+0x1242d1e) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:666 (mysqld+0x12448d6) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #18 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #19 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #20 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd0e1e75a38 by thread T23: #0 rw_lock_x_lock_low /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:507 (mysqld+0x1244a3f) #1 rw_lock_x_lock_func(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:668 (mysqld+0x1244a3f) #2 pfs_rw_lock_x_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:567 (mysqld+0x13627fa) #3 buf_page_mtr_lock /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4181 (mysqld+0x1364013) #4 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4854 (mysqld+0x13813af) #5 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #6 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #7 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #8 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #9 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #10 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #11 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #12 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #13 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #14 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #15 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #16 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #17 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #18 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #19 (libtsan.so.0+0x2d1af) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1012 in rw_lock_own(rw_lock_t const*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0f944b8 by thread T31: #0 my_collation_statistics_inc_use_count /data/builds/10.3_dbg_san/mysys/charset.c:595 (mysqld+0x1800151) #1 get_internal_charset /data/builds/10.3_dbg_san/mysys/charset.c:775 (mysqld+0x1800151) #2 get_charset /data/builds/10.3_dbg_san/mysys/charset.c:842 (mysqld+0x1800936) #3 TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long) /data/builds/10.3_dbg_san/sql/table.cc:1884 (mysqld+0x84c71c) #4 open_table_def(THD*, TABLE_SHARE*, unsigned int) /data/builds/10.3_dbg_san/sql/table.cc:687 (mysqld+0x851f5f) #5 tdc_acquire_share(THD*, TABLE_LIST*, unsigned int, TABLE**) /data/builds/10.3_dbg_san/sql/table_cache.cc:840 (mysqld+0xa0bed9) #6 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1847 (mysqld+0x5b904a) #7 open_ltable(THD*, TABLE_LIST*, thr_lock_type, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.cc:5029 (mysqld+0x5bd546) #8 open_system_table_for_update(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_base.cc:9022 (mysqld+0x5cc6c3) #9 open_proc_table_for_update /data/builds/10.3_dbg_san/sql/sp.cc:521 (mysqld+0xe559e5) #10 Sp_handler::sp_create_routine(THD*, sp_head const*) const /data/builds/10.3_dbg_san/sql/sp.cc:1218 (mysqld+0xe59c57) #11 mysql_create_routine /data/builds/10.3_dbg_san/sql/sql_parse.cc:3081 (mysqld+0x6a843d) #12 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:5660 (mysqld+0x6a843d) #13 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #14 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #15 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #16 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #17 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #18 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead0f944b8 by thread T21: #0 my_collation_statistics_inc_use_count /data/builds/10.3_dbg_san/mysys/charset.c:595 (mysqld+0x1800162) #1 get_internal_charset /data/builds/10.3_dbg_san/mysys/charset.c:775 (mysqld+0x1800162) #2 get_charset /data/builds/10.3_dbg_san/mysys/charset.c:842 (mysqld+0x1800936) #3 innobase_mysql_cmp /data/builds/10.3_dbg_san/storage/innobase/rem/rem0cmp.cc:87 (mysqld+0x10ee790) #4 cmp_whole_field /data/builds/10.3_dbg_san/storage/innobase/rem/rem0cmp.cc:371 (mysqld+0x10ee790) #5 cmp_data(unsigned long, unsigned long, unsigned char const*, unsigned long, unsigned char const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/rem/rem0cmp.cc:448 (mysqld+0x10f7cf2) #6 cmp_dtuple_rec_with_match_bytes(dtuple_t const*, unsigned char const*, dict_index_t const*, unsigned short const*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/rem/rem0cmp.cc:869 (mysqld+0x10f7cf2) #7 page_cur_try_search_shortcut_bytes /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:176 (mysqld+0x109ec72) #8 page_cur_search_with_match_bytes(buf_block_t const*, dict_index_t const*, dtuple_t const*, page_cur_mode_t, unsigned long*, unsigned long*, unsigned long*, unsigned long*, page_cur_t*) /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:590 (mysqld+0x109ec72) #9 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1862 (mysqld+0x13211d0) #10 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #11 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #12 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #13 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #14 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #15 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #16 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #17 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #18 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #19 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #20 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #21 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #22 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #23 (libtsan.so.0+0x2d1af) Location is global 'my_collation_statistics' of size 16384 at 0x55ead0f94220 (mysqld+0x000002a824b8) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/charset.c:595 in my_collation_statistics_inc_use_count ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7fd101a061c2 by thread T9 (mutexes: write M1304): #0 AIO::release(Slot*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1198 (mysqld+0x108cae2) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2112 (mysqld+0x1091bb0) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7fd101a061c2 by thread T13: #0 AIO::linux_dispatch(Slot*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2156 (mysqld+0x108492f) #1 os_aio_func(IORequest&, unsigned long, char const*, pfs_os_file_t, void*, unsigned long, unsigned long, bool, fil_node_t*, void*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6764 (mysqld+0x1093aaa) #2 pfs_os_aio_func /data/builds/10.3_dbg_san/storage/innobase/include/os0file.ic:253 (mysqld+0x1472750) #3 fil_io(IORequest const&, bool, page_id_t, page_size_t const&, unsigned long, unsigned long, void*, void*, bool) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4386 (mysqld+0x1472750) #4 buf_dblwr_write_block_to_datafile /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dblwr.cc:918 (mysqld+0x138b47d) #5 buf_dblwr_flush_buffered_writes() /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dblwr.cc:1066 (mysqld+0x1392294) #6 buf_flush_end /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:1952 (mysqld+0x13a59f1) #7 buf_flush_do_batch(buf_pool_t*, buf_flush_t, unsigned long, unsigned long, flush_counters_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2021 (mysqld+0x13a59f1) #8 buf_flush_lists(unsigned long, unsigned long, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:2121 (mysqld+0x13a5c42) #9 buf_flush_page_cleaner_coordinator /data/builds/10.3_dbg_san/storage/innobase/buf/buf0flu.cc:3277 (mysqld+0x13a8ef5) #10 (libtsan.so.0+0x2d1af) Location is heap block of size 229376 at 0x7fd101a06000 allocated by main thread: #0 operator new(unsigned long) (libtsan.so.0+0x8c012) #1 __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/9/ext/new_allocator.h:114 (mysqld+0x108bec9) #2 std::allocator_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/9/bits/alloc_traits.h:444 (mysqld+0x108bec9) #3 std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/9/bits/stl_vector.h:343 (mysqld+0x108bec9) #4 std::_Vector_base >::_M_create_storage(unsigned long) /usr/include/c++/9/bits/stl_vector.h:358 (mysqld+0x108bec9) #5 std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:302 (mysqld+0x108bec9) #6 std::vector >::vector(unsigned long, std::allocator const&) /usr/include/c++/9/bits/stl_vector.h:508 (mysqld+0x108bec9) #7 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5768 (mysqld+0x108bec9) #8 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #9 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #10 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #11 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #12 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #13 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #14 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #15 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #16 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #17 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #18 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1304 (0x7b4000001910) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6019 (mysqld+0x1090088) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T9 (tid=1624940, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T13 (tid=1624945, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1648 (mysqld+0x12375a3) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1198 in AIO::release(Slot*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead0773500 by thread T31: #0 row_mysql_delay_if_needed /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:145 (mysqld+0x1168296) #1 row_insert_for_mysql(unsigned char const*, row_prebuilt_t*, ins_mode_t) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:1388 (mysqld+0x11773e8) #2 ha_innobase::write_row(unsigned char*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:8009 (mysqld+0xf6010b) #3 handler::ha_write_row(unsigned char*) /data/builds/10.3_dbg_san/sql/handler.cc:6473 (mysqld+0xb6a916) #4 write_record(THD*, TABLE*, st_copy_info*) /data/builds/10.3_dbg_san/sql/sql_insert.cc:2038 (mysqld+0x62e44d) #5 mysql_insert(THD*, TABLE_LIST*, List&, List >&, List&, List&, enum_duplicates, bool) /data/builds/10.3_dbg_san/sql/sql_insert.cc:1072 (mysqld+0x644814) #6 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:4481 (mysqld+0x6a2313) #7 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #8 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #9 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #10 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #11 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #12 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #13 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #14 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #15 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #16 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #17 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #18 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #19 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #20 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead0773500 by thread T21: #0 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1575 (mysqld+0x1270962) #1 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #2 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_dml_needed_delay' of size 8 at 0x55ead0773500 (mysqld+0x000002261500) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:145 in row_mysql_delay_if_needed ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7bb000020204 by thread T21: #0 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 (mysqld+0x184d68c) #1 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x10ea3e2) #2 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea3e2) #3 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea3e2) #4 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea3e2) #5 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #6 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #7 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #8 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7bb000020204 by thread T31: #0 lf_pinbox_put_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:238 (mysqld+0x184d888) #1 rw_trx_hash_t::put_pins(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:580 (mysqld+0x12ae7ba) #2 trx_t::free() /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:393 (mysqld+0x12ae7ba) #3 dict_stats_fetch_from_ps /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3107 (mysqld+0x1445667) #4 dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3327 (mysqld+0x1445667) #5 dict_stats_init /data/builds/10.3_dbg_san/storage/innobase/include/dict0stats.ic:165 (mysqld+0xf7016d) #6 ha_innobase::open(char const*, int, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6097 (mysqld+0xf7016d) #7 handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List*) /data/builds/10.3_dbg_san/sql/handler.cc:2767 (mysqld+0xb572b6) #8 open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List*) /data/builds/10.3_dbg_san/sql/table.cc:3568 (mysqld+0x862d33) #9 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1992 (mysqld+0x5b9310) #10 open_and_process_table /data/builds/10.3_dbg_san/sql/sql_base.cc:3730 (mysqld+0x5bfdd8) #11 open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:4199 (mysqld+0x5bfdd8) #12 open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:5128 (mysqld+0x5c15f4) #13 open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.h:503 (mysqld+0xede02c) #14 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:230 (mysqld+0xede02c) #15 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #16 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #17 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #18 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #19 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #20 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #21 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #22 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #23 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #24 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #25 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #26 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #27 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #28 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #29 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #30 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #31 (libtsan.so.0+0x2d1af) Location is heap block of size 30956 at 0x7bb000020000 allocated by main thread: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_dynarray_lvalue /data/builds/10.3_dbg_san/mysys/lf_dynarray.c:124 (mysqld+0x184e0df) #4 lf_pinbox_get_pins /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:178 (mysqld+0x184d73e) #5 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:756 (mysqld+0x10ea3e2) #6 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea3e2) #7 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea3e2) #8 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea3e2) #9 trx_lists_init_at_db_start() /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:819 (mysqld+0x12b4570) #10 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1989 (mysqld+0x1238acd) #11 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #12 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #13 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #14 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #15 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #16 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #17 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:184 in lf_pinbox_get_pins ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7b48000e23f8 by thread T21: #0 l_find /data/builds/10.3_dbg_san/mysys/lf_hash.c:112 (mysqld+0x184e67c) #1 lf_hash_iterate /data/builds/10.3_dbg_san/mysys/lf_hash.c:518 (mysqld+0x184f7a9) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:763 (mysqld+0x10ea432) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea432) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea432) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea432) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b48000e23f8 by thread T31 (mutexes: write M426007171751220880): #0 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:415 (mysqld+0x184f073) #1 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #2 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #3 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #4 trx_start_if_not_started_low(trx_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2318 (mysqld+0x12aa6e5) #5 innobase_rename_table(trx_t*, char const*, char const*, bool, bool) (mysqld+0xf84489) #6 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13495 (mysqld+0xf7c6c4) #7 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #8 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #9 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #10 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #11 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #12 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #13 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #14 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #15 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #16 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #17 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #18 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #19 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #20 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #21 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #22 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #23 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #24 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #25 (libtsan.so.0+0x2d1af) Location is heap block of size 324 at 0x7b48000e2380 allocated by thread T31: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_alloc_new /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:503 (mysqld+0x184dca5) #4 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:403 (mysqld+0x184ef25) #5 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #6 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #7 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #8 trx_start_internal_low(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2350 (mysqld+0x12a9d87) #9 dict_stats_fetch_from_ps /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3024 (mysqld+0x1445584) #10 dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3327 (mysqld+0x1445584) #11 dict_stats_init /data/builds/10.3_dbg_san/storage/innobase/include/dict0stats.ic:165 (mysqld+0xf7016d) #12 ha_innobase::open(char const*, int, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6097 (mysqld+0xf7016d) #13 handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List*) /data/builds/10.3_dbg_san/sql/handler.cc:2767 (mysqld+0xb572b6) #14 open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List*) /data/builds/10.3_dbg_san/sql/table.cc:3568 (mysqld+0x862d33) #15 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1992 (mysqld+0x5b9310) #16 open_and_process_table /data/builds/10.3_dbg_san/sql/sql_base.cc:3730 (mysqld+0x5bfdd8) #17 open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:4199 (mysqld+0x5bfdd8) #18 open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:5128 (mysqld+0x5c15f4) #19 open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.h:503 (mysqld+0xede02c) #20 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:230 (mysqld+0xede02c) #21 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #22 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #23 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #24 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #25 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #26 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #27 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #28 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #29 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #30 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #31 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #32 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #33 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #34 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #35 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #36 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #37 (libtsan.so.0+0x2d1af) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_hash.c:112 in l_find ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b48000e2408 by thread T21: #0 l_find /data/builds/10.3_dbg_san/mysys/lf_hash.c:113 (mysqld+0x184e68b) #1 lf_hash_iterate /data/builds/10.3_dbg_san/mysys/lf_hash.c:518 (mysqld+0x184f7a9) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:763 (mysqld+0x10ea432) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea432) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea432) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea432) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b48000e2408 by thread T31 (mutexes: write M426007171751220880): #0 hash_key /data/builds/10.3_dbg_san/mysys/lf_hash.c:301 (mysqld+0x184f10e) #1 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:407 (mysqld+0x184f10e) #2 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #3 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #4 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #5 trx_start_if_not_started_low(trx_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2318 (mysqld+0x12aa6e5) #6 innobase_rename_table(trx_t*, char const*, char const*, bool, bool) (mysqld+0xf84489) #7 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13495 (mysqld+0xf7c6c4) #8 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #9 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #10 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #11 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #12 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #13 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #14 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #15 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #16 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #17 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #18 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #19 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #20 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #21 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #22 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #23 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #24 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #25 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #26 (libtsan.so.0+0x2d1af) Location is heap block of size 324 at 0x7b48000e2380 allocated by thread T31: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_alloc_new /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:503 (mysqld+0x184dca5) #4 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:403 (mysqld+0x184ef25) #5 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #6 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #7 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #8 trx_start_internal_low(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2350 (mysqld+0x12a9d87) #9 dict_stats_fetch_from_ps /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3024 (mysqld+0x1445584) #10 dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3327 (mysqld+0x1445584) #11 dict_stats_init /data/builds/10.3_dbg_san/storage/innobase/include/dict0stats.ic:165 (mysqld+0xf7016d) #12 ha_innobase::open(char const*, int, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6097 (mysqld+0xf7016d) #13 handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List*) /data/builds/10.3_dbg_san/sql/handler.cc:2767 (mysqld+0xb572b6) #14 open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List*) /data/builds/10.3_dbg_san/sql/table.cc:3568 (mysqld+0x862d33) #15 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1992 (mysqld+0x5b9310) #16 open_and_process_table /data/builds/10.3_dbg_san/sql/sql_base.cc:3730 (mysqld+0x5bfdd8) #17 open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:4199 (mysqld+0x5bfdd8) #18 open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:5128 (mysqld+0x5c15f4) #19 open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.h:503 (mysqld+0xede02c) #20 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:230 (mysqld+0xede02c) #21 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #22 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #23 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #24 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #25 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #26 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #27 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #28 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #29 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #30 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #31 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #32 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #33 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #34 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #35 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #36 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #37 (libtsan.so.0+0x2d1af) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_hash.c:113 in l_find ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b48000e2400 by thread T21: #0 l_find /data/builds/10.3_dbg_san/mysys/lf_hash.c:114 (mysqld+0x184e69c) #1 lf_hash_iterate /data/builds/10.3_dbg_san/mysys/lf_hash.c:518 (mysqld+0x184f7a9) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:763 (mysqld+0x10ea432) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea432) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea432) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea432) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b48000e2400 by thread T31 (mutexes: write M426007171751220880): #0 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:407 (mysqld+0x184ef89) #1 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #2 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #3 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #4 trx_start_if_not_started_low(trx_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2318 (mysqld+0x12aa6e5) #5 innobase_rename_table(trx_t*, char const*, char const*, bool, bool) (mysqld+0xf84489) #6 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13495 (mysqld+0xf7c6c4) #7 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #8 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #9 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #10 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #11 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #12 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #13 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #14 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #15 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #16 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #17 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #18 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #19 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #20 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #21 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #22 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #23 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #24 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #25 (libtsan.so.0+0x2d1af) Location is heap block of size 324 at 0x7b48000e2380 allocated by thread T31: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_alloc_new /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:503 (mysqld+0x184dca5) #4 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:403 (mysqld+0x184ef25) #5 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #6 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #7 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #8 trx_start_internal_low(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2350 (mysqld+0x12a9d87) #9 dict_stats_fetch_from_ps /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3024 (mysqld+0x1445584) #10 dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3327 (mysqld+0x1445584) #11 dict_stats_init /data/builds/10.3_dbg_san/storage/innobase/include/dict0stats.ic:165 (mysqld+0xf7016d) #12 ha_innobase::open(char const*, int, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6097 (mysqld+0xf7016d) #13 handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List*) /data/builds/10.3_dbg_san/sql/handler.cc:2767 (mysqld+0xb572b6) #14 open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List*) /data/builds/10.3_dbg_san/sql/table.cc:3568 (mysqld+0x862d33) #15 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1992 (mysqld+0x5b9310) #16 open_and_process_table /data/builds/10.3_dbg_san/sql/sql_base.cc:3730 (mysqld+0x5bfdd8) #17 open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:4199 (mysqld+0x5bfdd8) #18 open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:5128 (mysqld+0x5c15f4) #19 open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.h:503 (mysqld+0xede02c) #20 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:230 (mysqld+0xede02c) #21 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #22 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #23 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #24 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #25 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #26 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #27 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #28 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #29 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #30 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #31 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #32 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #33 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #34 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #35 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #36 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #37 (libtsan.so.0+0x2d1af) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_hash.c:114 in l_find ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b48000e23f0 by thread T21: #0 l_find /data/builds/10.3_dbg_san/mysys/lf_hash.c:117 (mysqld+0x184e6b8) #1 lf_hash_iterate /data/builds/10.3_dbg_san/mysys/lf_hash.c:518 (mysqld+0x184f7a9) #2 rw_trx_hash_t::iterate(trx_t*, char (*)(void*, void*), void*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:763 (mysqld+0x10ea432) #3 trx_sys_t::snapshot_ids(trx_t*, std::vector >*, unsigned long*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:989 (mysqld+0x10ea432) #4 ReadView::snapshot(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:185 (mysqld+0x10ea432) #5 trx_sys_t::clone_oldest_view() /data/builds/10.3_dbg_san/storage/innobase/read/read0read.cc:281 (mysqld+0x10ea432) #6 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1582 (mysqld+0x1270c36) #7 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #8 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #9 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b48000e23f0 by thread T31 (mutexes: write M426007171751220880): #0 l_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:188 (mysqld+0x184e8cf) #1 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:416 (mysqld+0x184f0af) #2 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #3 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #4 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #5 trx_start_if_not_started_low(trx_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2318 (mysqld+0x12aa6e5) #6 innobase_rename_table(trx_t*, char const*, char const*, bool, bool) (mysqld+0xf84489) #7 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13495 (mysqld+0xf7c6c4) #8 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #9 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #10 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #11 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #12 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #13 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #14 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #15 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #16 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #17 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #18 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #19 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #20 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #21 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #22 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #23 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #24 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #25 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #26 (libtsan.so.0+0x2d1af) Location is heap block of size 324 at 0x7b48000e2380 allocated by thread T31: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 lf_alloc_new /data/builds/10.3_dbg_san/mysys/lf_alloc-pin.c:503 (mysqld+0x184dca5) #4 lf_hash_insert /data/builds/10.3_dbg_san/mysys/lf_hash.c:403 (mysqld+0x184ef25) #5 rw_trx_hash_t::insert(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:683 (mysqld+0x12a97d4) #6 trx_sys_t::register_rw(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/include/trx0sys.h:1041 (mysqld+0x12a97d4) #7 trx_start_low /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:1025 (mysqld+0x12a97d4) #8 trx_start_internal_low(trx_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0trx.cc:2350 (mysqld+0x12a9d87) #9 dict_stats_fetch_from_ps /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3024 (mysqld+0x1445584) #10 dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats.cc:3327 (mysqld+0x1445584) #11 dict_stats_init /data/builds/10.3_dbg_san/storage/innobase/include/dict0stats.ic:165 (mysqld+0xf7016d) #12 ha_innobase::open(char const*, int, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:6097 (mysqld+0xf7016d) #13 handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List*) /data/builds/10.3_dbg_san/sql/handler.cc:2767 (mysqld+0xb572b6) #14 open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List*) /data/builds/10.3_dbg_san/sql/table.cc:3568 (mysqld+0x862d33) #15 open_table(THD*, TABLE_LIST*, Open_table_context*) /data/builds/10.3_dbg_san/sql/sql_base.cc:1992 (mysqld+0x5b9310) #16 open_and_process_table /data/builds/10.3_dbg_san/sql/sql_base.cc:3730 (mysqld+0x5bfdd8) #17 open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:4199 (mysqld+0x5bfdd8) #18 open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /data/builds/10.3_dbg_san/sql/sql_base.cc:5128 (mysqld+0x5c15f4) #19 open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /data/builds/10.3_dbg_san/sql/sql_base.h:503 (mysqld+0xede02c) #20 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:230 (mysqld+0xede02c) #21 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #22 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #23 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #24 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #25 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #26 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #27 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #28 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #29 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #30 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #31 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #32 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #33 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #34 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #35 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #36 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #37 (libtsan.so.0+0x2d1af) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/lf_hash.c:117 in l_find ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead06815a0 by thread T21: #0 rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 (mysqld+0x1270ccb) #1 pfs_rw_lock_x_unlock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:800 (mysqld+0x1270ccb) #2 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1583 (mysqld+0x1270ccb) #3 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead06815a0 by thread T31 (mutexes: write M426007171751220880): #0 rw_lock_own_flagged(rw_lock_t const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:1052 (mysqld+0x1243512) #1 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:282 (mysqld+0x1283fe6) #2 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x1283fe6) #3 trx_undo_get_undo_rec /data/builds/10.3_dbg_san/storage/innobase/trx/trx0rec.cc:2191 (mysqld+0x1283fe6) #4 trx_undo_prev_version_build(unsigned char const*, mtr_t*, unsigned char const*, dict_index_t*, unsigned short*, mem_block_info_t*, unsigned char**, mem_block_info_t*, dtuple_t**, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0rec.cc:2281 (mysqld+0x1283fe6) #5 row_vers_impl_x_locked_low /data/builds/10.3_dbg_san/storage/innobase/row/row0vers.cc:191 (mysqld+0x121d46f) #6 row_vers_impl_x_locked(trx_t*, unsigned char const*, dict_index_t*, unsigned short const*) /data/builds/10.3_dbg_san/storage/innobase/row/row0vers.cc:428 (mysqld+0x121d46f) #7 lock_sec_rec_some_has_impl /data/builds/10.3_dbg_san/storage/innobase/lock/lock0lock.cc:1237 (mysqld+0x102d989) #8 lock_rec_convert_impl_to_expl /data/builds/10.3_dbg_san/storage/innobase/lock/lock0lock.cc:5528 (mysqld+0x102d989) #9 lock_sec_rec_read_check_and_lock(unsigned long, buf_block_t const*, unsigned char const*, dict_index_t*, unsigned short const*, lock_mode, unsigned long, que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/lock/lock0lock.cc:5746 (mysqld+0x10359aa) #10 row_ins_set_shared_rec_lock /data/builds/10.3_dbg_san/storage/innobase/row/row0ins.cc:1404 (mysqld+0x112d207) #11 row_ins_scan_sec_index_for_duplicate /data/builds/10.3_dbg_san/storage/innobase/row/row0ins.cc:2158 (mysqld+0x1137b15) #12 row_ins_sec_index_entry_low(unsigned long, unsigned long, dict_index_t*, mem_block_info_t*, mem_block_info_t*, dtuple_t*, unsigned long, que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0ins.cc:3031 (mysqld+0x1137b15) #13 row_ins_sec_index_entry(dict_index_t*, dtuple_t*, que_thr_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/row/row0ins.cc:3287 (mysqld+0x1140c1f) #14 row_upd_sec_index_entry /data/builds/10.3_dbg_san/storage/innobase/row/row0upd.cc:2529 (mysqld+0x120c3ed) #15 row_upd_sec_step /data/builds/10.3_dbg_san/storage/innobase/row/row0upd.cc:2556 (mysqld+0x120cfa4) #16 row_upd /data/builds/10.3_dbg_san/storage/innobase/row/row0upd.cc:3331 (mysqld+0x120cfa4) #17 row_upd_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0upd.cc:3446 (mysqld+0x120cfa4) #18 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1020 (mysqld+0x10e690d) #19 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e690d) #20 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e690d) #21 que_eval_sql(pars_info_t*, char const*, unsigned long, trx_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1217 (mysqld+0x10e877d) #22 row_rename_table_for_mysql(char const*, char const*, trx_t*, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:4343 (mysqld+0x117bc05) #23 innobase_rename_table(trx_t*, char const*, char const*, bool, bool) (mysqld+0xf84726) #24 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13495 (mysqld+0xf7c6c4) #25 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #26 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #27 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #28 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #29 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #30 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #31 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #32 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #33 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #34 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #35 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #36 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #37 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #38 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #39 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #40 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #41 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #42 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #43 (libtsan.so.0+0x2d1af) Location is global 'purge_sys' of size 768 at 0x55ead0681540 (mysqld+0x00000216f5a0) Mutex M426007171751220880 is already destroyed. Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:404 in rw_lock_x_unlock_func ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7fd101c0c0e0 by thread T21 (mutexes: write M1220, write M1218): #0 sync_array_find_thread /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:636 (mysqld+0x123e634) #1 sync_array_deadlock_step /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:670 (mysqld+0x123e634) #2 sync_array_detect_deadlock /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:926 (mysqld+0x123e4ec) #3 sync_array_wait_event(sync_array_t*, sync_cell_t*&) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:461 (mysqld+0x1240bab) #4 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:374 (mysqld+0x1242af7) #5 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #6 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #7 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7fd101c0c0e0 by thread T24: #0 sync_array_reserve_cell(sync_array_t*, void*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:378 (mysqld+0x1241839) #1 sync_array_get_and_reserve_cell /data/builds/10.3_dbg_san/storage/innobase/include/sync0arr.ic:76 (mysqld+0x12427f1) #2 rw_lock_s_lock_spin(rw_lock_t*, unsigned long, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0rw.cc:339 (mysqld+0x12427f1) #3 rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:288 (mysqld+0x11b3215) #4 pfs_rw_lock_s_lock_func /data/builds/10.3_dbg_san/storage/innobase/include/sync0rw.ic:660 (mysqld+0x11b3215) #5 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1065 (mysqld+0x11b3215) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b3215) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b3215) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #12 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 135424 at 0x7fd101c0c000 allocated by main thread: #0 operator new[](unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8af9c) #1 sync_array_t::sync_array_t(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:207 (mysqld+0x123e74c) #2 sync_array_init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:1172 (mysqld+0x123ebfb) #3 sync_check_init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1705 (mysqld+0x1256719) #4 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1128 (mysqld+0x122557d) #5 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #6 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #7 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #8 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #9 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #10 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #11 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #12 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1220 (0x7b3400000438) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 sync_array_t::sync_array_t(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:218 (mysqld+0x123e966) #6 sync_array_init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:1172 (mysqld+0x123ebfb) #7 sync_check_init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1705 (mysqld+0x1256719) #8 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1128 (mysqld+0x122557d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1218 (0x55ead0781570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 LatchDebug::init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1211 (mysqld+0x12565ca) #6 sync_check_init() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1703 (mysqld+0x1256714) #7 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1128 (mysqld+0x122557d) #8 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #9 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #10 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #11 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #12 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #13 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #14 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #15 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0arr.cc:636 in sync_array_find_thread ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 4 at 0x7fd0e1e5a868 by thread T22: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:984 (mysqld+0x137ee50) #2 buf_block_fix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:996 (mysqld+0x137ee50) #3 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4460 (mysqld+0x137ee50) #4 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #5 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #6 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #7 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #8 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #9 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7fd0e1e5a868 by thread T21: #0 buf_block_get_frame /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:765 (mysqld+0x1098da9) #1 page_cur_search_with_match_bytes(buf_block_t const*, dict_index_t const*, dtuple_t const*, page_cur_mode_t, unsigned long*, unsigned long*, unsigned long*, unsigned long*, page_cur_t*) /data/builds/10.3_dbg_san/storage/innobase/page/page0cur.cc:577 (mysqld+0x109e842) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1862 (mysqld+0x13211d0) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #14 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #15 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #16 (libtsan.so.0+0x2d1af) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x55ead07552c0 by thread T23: #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x1083f2e) #1 simple_counter::inc() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1167 (mysqld+0x1083f2e) #2 buf_flush_note_modification /data/builds/10.3_dbg_san/storage/innobase/include/buf0flu.ic:103 (mysqld+0x1083f2e) #3 ReleaseBlocks::add_dirty_page_to_flush_list(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:333 (mysqld+0x1083f2e) #4 ReleaseBlocks::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:345 (mysqld+0x1083f2e) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1083f2e) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1083f2e) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:452 (mysqld+0x107ed28) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x55ead07552c0 by thread T21: #0 simple_counter::add(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 (mysqld+0x1083f45) #1 simple_counter::inc() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1167 (mysqld+0x1083f45) #2 buf_flush_note_modification /data/builds/10.3_dbg_san/storage/innobase/include/buf0flu.ic:103 (mysqld+0x1083f45) #3 ReleaseBlocks::add_dirty_page_to_flush_list(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:333 (mysqld+0x1083f45) #4 ReleaseBlocks::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:345 (mysqld+0x1083f45) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1083f45) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1083f45) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:452 (mysqld+0x107ed28) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #16 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #17 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #18 (libtsan.so.0+0x2d1af) Location is global 'srv_stats' of size 123584 at 0x55ead0755080 (mysqld+0x0000022432c0) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1174 in simple_counter::add(unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x7fd0e1e5a580 by thread T23: #0 buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 (mysqld+0x137f83e) #1 buf_page_get_gen(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4901 (mysqld+0x138163a) #2 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1486 (mysqld+0x131faa1) #3 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #4 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #5 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #6 row_purge_poss_sec(purge_node_t*, dict_index_t*, dtuple_t const*, btr_pcur_t*, mtr_t*, bool) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:316 (mysqld+0x11a52a9) #7 row_purge_remove_sec_if_poss_leaf /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:579 (mysqld+0x11ab7f1) #8 row_purge_remove_sec_if_poss /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:692 (mysqld+0x11adcf7) #9 row_purge_del_mark /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:766 (mysqld+0x11adcf7) #10 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1191 (mysqld+0x11adcf7) #11 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #12 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #13 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #14 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #15 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #16 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #17 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #18 (libtsan.so.0+0x2d1af) Previous atomic write of size 4 at 0x7fd0e1e5a580 by thread T22: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1053 (mysqld+0x10792fc) #2 buf_block_unfix /data/builds/10.3_dbg_san/storage/innobase/include/buf0buf.ic:1067 (mysqld+0x10792fc) #3 memo_slot_release /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:237 (mysqld+0x10792fc) #4 ReleaseAll::operator()(mtr_memo_slot_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:294 (mysqld+0x1080858) #5 CIterate::operator()(mtr_buf_t::block_t*) const /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:58 (mysqld+0x1080858) #6 bool mtr_buf_t::for_each_block_in_reverse >(CIterate const&) const /data/builds/10.3_dbg_san/storage/innobase/include/dyn0buf.h:379 (mysqld+0x1080858) #7 mtr_t::commit() /data/builds/10.3_dbg_san/storage/innobase/mtr/mtr0mtr.cc:461 (mysqld+0x1080858) #8 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:848 (mysqld+0x11a8d75) #9 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #10 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #11 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #12 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #13 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #14 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #15 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #16 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #17 (libtsan.so.0+0x2d1af) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/buf/buf0buf.cc:4701 in buf_page_get_low(page_id_t, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b6c00010558 by thread T21: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 (mysqld+0x1320b38) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #12 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #13 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #14 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x7b6c00010558 by thread T23: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 (mysqld+0x131e51c) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_remove_clust_if_poss_low /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:123 (mysqld+0x11a3966) #5 row_purge_remove_clust_if_poss /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:191 (mysqld+0x11ae1cb) #6 row_purge_del_mark /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:781 (mysqld+0x11ae1cb) #7 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1191 (mysqld+0x11ae1cb) #8 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #9 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #10 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #11 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #12 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #13 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #14 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #15 (libtsan.so.0+0x2d1af) Location is heap block of size 1696 at 0x7b6c00010300 allocated by thread T21: #0 malloc (libtsan.so.0+0x30343) #1 mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:277 (mysqld+0x10705d7) #2 mem_heap_add_block(mem_block_info_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:378 (mysqld+0x1070bf3) #3 mem_heap_alloc /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.ic:191 (mysqld+0x142c364) #4 mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:242 (mysqld+0x142c364) #5 mem_heap_strdup(mem_block_info_t*, char const*) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:254 (mysqld+0x142c364) #6 dict_mem_fill_index_struct /data/builds/10.3_dbg_san/storage/innobase/include/dict0mem.ic:48 (mysqld+0x142c364) #7 dict_mem_index_create(dict_table_t*, char const*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0mem.cc:773 (mysqld+0x142c364) #8 dict_index_build_internal_clust /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2513 (mysqld+0x14010c8) #9 dict_index_add_to_cache(dict_index_t*&, unsigned long, dict_add_v_col_t const*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2045 (mysqld+0x14010c8) #10 dict_load_indexes /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2578 (mysqld+0x142171a) #11 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2963 (mysqld+0x141ad0d) #12 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #13 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #14 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #15 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #16 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #17 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #18 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #19 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #20 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #21 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #22 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #23 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #24 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #25 (libtsan.so.0+0x2d1af) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 in btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7b6c00010558 by thread T22: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 (mysqld+0x131e51c) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 srv_task_execute /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2491 (mysqld+0x122df52) #12 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2539 (mysqld+0x122df52) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b6c00010558 by thread T21: #0 btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1717 (mysqld+0x1320b38) #1 btr_pcur_open_low /data/builds/10.3_dbg_san/storage/innobase/include/btr0pcur.ic:441 (mysqld+0x11befb7) #2 row_search_on_row_ref(btr_pcur_t*, unsigned long, dict_table_t const*, dtuple_t const*, mtr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0row.cc:1045 (mysqld+0x11bf397) #3 row_purge_reposition_pcur /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:78 (mysqld+0x11a325b) #4 row_purge_reset_trx_id /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:795 (mysqld+0x11a7f7b) #5 row_purge_record_func /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1208 (mysqld+0x11ae41d) #6 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1257 (mysqld+0x11b245b) #7 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b245b) #8 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #9 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #10 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #11 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #12 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #13 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #14 (libtsan.so.0+0x2d1af) Location is heap block of size 1696 at 0x7b6c00010300 allocated by thread T21: #0 malloc (libtsan.so.0+0x30343) #1 mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:277 (mysqld+0x10705d7) #2 mem_heap_add_block(mem_block_info_t*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/mem/mem0mem.cc:378 (mysqld+0x1070bf3) #3 mem_heap_alloc /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.ic:191 (mysqld+0x142c364) #4 mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:242 (mysqld+0x142c364) #5 mem_heap_strdup(mem_block_info_t*, char const*) /data/builds/10.3_dbg_san/storage/innobase/include/mem0mem.h:254 (mysqld+0x142c364) #6 dict_mem_fill_index_struct /data/builds/10.3_dbg_san/storage/innobase/include/dict0mem.ic:48 (mysqld+0x142c364) #7 dict_mem_index_create(dict_table_t*, char const*, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0mem.cc:773 (mysqld+0x142c364) #8 dict_index_build_internal_clust /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2513 (mysqld+0x14010c8) #9 dict_index_add_to_cache(dict_index_t*&, unsigned long, dict_add_v_col_t const*) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:2045 (mysqld+0x14010c8) #10 dict_load_indexes /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2578 (mysqld+0x142171a) #11 dict_load_table_one /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2963 (mysqld+0x141ad0d) #12 dict_load_table(char const*, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:2746 (mysqld+0x141bfc4) #13 dict_load_table_on_id(unsigned long, dict_err_ignore_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0load.cc:3185 (mysqld+0x1423b33) #14 dict_table_open_on_id_low /data/builds/10.3_dbg_san/storage/innobase/include/dict0priv.ic:90 (mysqld+0x13f1c26) #15 dict_table_open_on_id(unsigned long, unsigned long, dict_table_op_t) /data/builds/10.3_dbg_san/storage/innobase/dict/dict0dict.cc:824 (mysqld+0x13f82e4) #16 row_purge_parse_undo_rec /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1067 (mysqld+0x11b15d7) #17 row_purge /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1254 (mysqld+0x11b15d7) #18 row_purge_step(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/row/row0purge.cc:1316 (mysqld+0x11b15d7) #19 que_thr_step /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1038 (mysqld+0x10e73bb) #20 que_run_threads_low /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1100 (mysqld+0x10e73bb) #21 que_run_threads(que_thr_t*) /data/builds/10.3_dbg_san/storage/innobase/que/que0que.cc:1140 (mysqld+0x10e73bb) #22 trx_purge(unsigned long, bool, srv_slot_t*) /data/builds/10.3_dbg_san/storage/innobase/trx/trx0purge.cc:1605 (mysqld+0x1271a56) #23 srv_do_purge /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2637 (mysqld+0x1229f66) #24 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2769 (mysqld+0x1229f66) #25 (libtsan.so.0+0x2d1af) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/btr/btr0cur.cc:1281 in btr_cur_search_to_nth_level_func(dict_index_t*, unsigned long, dtuple_t const*, page_cur_mode_t, unsigned long, btr_cur_t*, rw_lock_t*, char const*, unsigned int, mtr_t*, unsigned long) ================== TESTCASE_STOP ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead0732178 by thread T29 (mutexes: write M895): #0 LOGGER::init_error_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1431 (mysqld+0xd8df73) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1600 (mysqld+0xd95602) #2 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3610 (mysqld+0x4db386) #3 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead0732178 by main thread: #0 LOGGER::error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:1170 (mysqld+0xd8d4d9) #1 error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:6542 (mysqld+0xd953fd) #2 sql_print_information_v(char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:8852 (mysqld+0xda21cb) #3 sql_print_information(char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:8841 (mysqld+0xda22b9) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6234 (mysqld+0x4f0219) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'logger' of size 192 at 0x55ead0732120 (mysqld+0x000002220178) Mutex M895 (0x55ead0732120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1431 in LOGGER::init_error_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead0732180 by thread T29 (mutexes: write M895): #0 LOGGER::init_error_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1432 (mysqld+0xd8df82) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1600 (mysqld+0xd95602) #2 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3610 (mysqld+0x4db386) #3 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead0732180 by thread T25: #0 LOGGER::error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:1170 (mysqld+0xd8d4f3) #1 error_log_print(loglevel, char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:6542 (mysqld+0xd953fd) #2 sql_print_information_v(char const*, __va_list_tag*) /data/builds/10.3_dbg_san/sql/log.cc:8852 (mysqld+0xda21cb) #3 sql_print_information(char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:8841 (mysqld+0xda22b9) #4 ib::info::~info() /data/builds/10.3_dbg_san/storage/innobase/ut/ut0ut.cc:576 (mysqld+0x12ccb27) #5 buf_load_status /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:168 (mysqld+0x13943ac) #6 buf_load /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:769 (mysqld+0x1396526) #7 buf_dump_thread /data/builds/10.3_dbg_san/storage/innobase/buf/buf0dump.cc:826 (mysqld+0x1396686) #8 (libtsan.so.0+0x2d1af) Location is global 'logger' of size 192 at 0x55ead0732120 (mysqld+0x000002220180) Mutex M895 (0x55ead0732120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T25 (tid=1625188, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2486 (mysqld+0x123af45) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1432 in LOGGER::init_error_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead07321b8 by thread T29 (mutexes: write M895): #0 LOGGER::init_general_log(unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1473 (mysqld+0xd8e17f) #1 LOGGER::set_handlers(unsigned long long, unsigned long long, unsigned long long) /data/builds/10.3_dbg_san/sql/log.cc:1602 (mysqld+0xd95719) #2 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3610 (mysqld+0x4db386) #3 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead07321b8 by thread T31: #0 LOGGER::log_command(THD*, enum_server_command) /data/builds/10.3_dbg_san/sql/log.cc:6567 (mysqld+0xd9c918) #1 general_log_print(THD*, enum_server_command, char const*, ...) /data/builds/10.3_dbg_san/sql/log.cc:6586 (mysqld+0xd9d0fb) #2 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:2185 (mysqld+0x6b3b67) #3 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #4 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #5 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #6 (libtsan.so.0+0x2d1af) Location is global 'logger' of size 192 at 0x55ead0732120 (mysqld+0x0000022201b8) Mutex M895 (0x55ead0732120) created at: #0 pthread_rwlock_init (libtsan.so.0+0x3699f) #1 inline_mysql_rwlock_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:822 (mysqld+0xd8f2bf) #2 LOGGER::init_base() /data/builds/10.3_dbg_san/sql/log.cc:1225 (mysqld+0xd8f2bf) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:5990 (mysqld+0x4ee4e2) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/log.cc:1473 in LOGGER::init_general_log(unsigned long long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0706115 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3615 (mysqld+0x4db3c4) #1 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0706115 by main thread: #0 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6806 (mysqld+0x4ed151) #1 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #2 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'abort_loop' of size 1 at 0x55ead0706115 (mysqld+0x0000021f4115) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3615 in signal_hand ================== 2021-03-06 15:52:10 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld (initiated by: root[root] @ localhost []): Normal shutdown ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead0706114 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3586 (mysqld+0x4db482) #1 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead0706114 by thread T31: #0 kill_mysql(THD*) /data/builds/10.3_dbg_san/sql/mysqld.cc:1952 (mysqld+0x4dcbb4) #1 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:2187 (mysqld+0x6b3bb7) #2 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #3 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #4 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #5 (libtsan.so.0+0x2d1af) Location is global 'shutdown_in_progress' of size 1 at 0x55ead0706114 (mysqld+0x0000021f4114) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3586 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x55ead0706220 by thread T32: #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1613 (mysqld+0x4e3229) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e3229) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ead0706220 by thread T31 (mutexes: write M899): #0 cache_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:3023 (mysqld+0x4ddda3) #1 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3129 (mysqld+0x4ddda3) #2 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #3 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #4 (libtsan.so.0+0x2d1af) Location is global 'kill_cached_threads' of size 4 at 0x55ead0706220 (mysqld+0x0000021f4220) Mutex M899 (0x55ead07037a8) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6d67) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4859 (mysqld+0x4e6d67) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6d67) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:1613 in close_connections ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x55ead0703964 by main thread (mutexes: write M897, write M896): #0 safe_mutex_lock /data/builds/10.3_dbg_san/mysys/thr_mutex.c:303 (mysqld+0x18460ad) #1 inline_mysql_mutex_lock /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:717 (mysqld+0x4f07a7) #2 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6301 (mysqld+0x4f07a7) #3 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 4 at 0x55ead0703964 by thread T31: #0 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1632 (mysqld+0x5ffb42) #1 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1706 (mysqld+0x600b3e) #2 one_thread_per_connection_end(THD*, bool) /data/builds/10.3_dbg_san/sql/mysqld.cc:3131 (mysqld+0x4ddc47) #3 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1422 (mysqld+0x8cb8e1) #4 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #5 (libtsan.so.0+0x2d1af) Location is global 'LOCK_thread_count' of size 176 at 0x55ead0703900 (mysqld+0x0000021f1964) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M896 (0x55ead0703900) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:192 (mysqld+0x1845d97) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/thr_mutex.c:303 in safe_mutex_lock ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x7b48000bc098 by thread T32 (mutexes: write M897, write M957995307231337584): #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1731 (mysqld+0x4e3eb3) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e3eb3) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x7b48000bc098 by thread T28 (mutexes: write M951525955286598040): #0 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:326 (mysqld+0xf3f2cd) #1 (libtsan.so.0+0x2d1af) Location is heap block of size 360 at 0x7b48000bbf80 allocated by thread T28: #0 calloc (libtsan.so.0+0x305ca) #1 my_thread_init /data/builds/10.3_dbg_san/mysys/my_thr_init.c:295 (mysqld+0x183b8fa) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:309 (mysqld+0xf3f0bc) #3 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M957995307231337584 is already destroyed. Mutex M951525955286598040 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:1731 in close_connections ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 4 at 0x55ead0777540 by thread T28: #0 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2525 (mysqld+0x1230fdd) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #2 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ead0777540 by thread T3: #0 LinuxAIOHandler::collect() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1994 (mysqld+0x108e785) #1 LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2093 (mysqld+0x1091b0c) #2 os_aio_linux_handler /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:2147 (mysqld+0x1093cf4) #3 os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5728 (mysqld+0x1093cf4) #4 fil_aio_wait(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/fil/fil0fil.cc:4431 (mysqld+0x1470dbf) #5 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:326 (mysqld+0x1230a78) #6 (libtsan.so.0+0x2d1af) Location is global 'srv_shutdown_state' of size 4 at 0x55ead0777540 (mysqld+0x000002265540) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T3 (tid=1624930, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2525 in srv_shutdown_bg_undo_sources() ================== 2021-03-06 15:52:10 0 [Note] InnoDB: FTS optimize thread exiting. 2021-03-06 15:52:10 0 [Note] Event Scheduler: Purging the queue. 0 events ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0785770 by thread T28: #0 dict_stats_shutdown() /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:515 (mysqld+0x1446f2d) #1 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2527 (mysqld+0x1231042) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #3 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0785770 by thread T18: #0 dict_stats_thread /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:468 (mysqld+0x1448852) #1 (libtsan.so.0+0x2d1af) Location is global 'dict_stats_start_shutdown' of size 1 at 0x55ead0785770 (mysqld+0x000002273770) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T18 (tid=1625132, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2359 (mysqld+0x123a458) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/dict/dict0stats_bg.cc:515 in dict_stats_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 4 at 0x55ead0706060 by thread T30: #0 __tsan_atomic32_fetch_add (libtsan.so.0+0x7f099) #1 thread_safe_decrement32 /data/builds/10.3_dbg_san/include/my_pthread.h:816 (mysqld+0x600424) #2 THD::dec_thread_count() /data/builds/10.3_dbg_san/sql/sql_class.h:2193 (mysqld+0x600424) #3 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1704 (mysqld+0x600424) #4 THD::~THD() /data/builds/10.3_dbg_san/sql/sql_class.cc:1706 (mysqld+0x600b3e) #5 handle_slave_background /data/builds/10.3_dbg_san/sql/slave.cc:554 (mysqld+0x51d5af) #6 (libtsan.so.0+0x2d1af) Previous read of size 4 at 0x55ead0706060 by thread T32: #0 close_connections /data/builds/10.3_dbg_san/sql/mysqld.cc:1776 (mysqld+0x4e437d) #1 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2033 (mysqld+0x4e437d) #2 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #3 (libtsan.so.0+0x2d1af) Location is global 'thread_count' of size 4 at 0x55ead0706060 (mysqld+0x0000021f4060) Thread T30 (tid=1625440, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x52252a) #3 start_slave_background_thread /data/builds/10.3_dbg_san/sql/slave.cc:643 (mysqld+0x52252a) #4 init_slave() /data/builds/10.3_dbg_san/sql/slave.cc:682 (mysqld+0x52252a) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6220 (mysqld+0x4efd79) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f099) in __tsan_atomic32_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead077754c by thread T28: #0 srv_shutdown_bg_undo_sources() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2532 (mysqld+0x1231064) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:343 (mysqld+0xf3f4ff) #2 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead077754c by thread T21: #0 srv_purge_coordinator_suspend /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2711 (mysqld+0x1229b3f) #1 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2758 (mysqld+0x1229b3f) #2 (libtsan.so.0+0x2d1af) Location is global 'srv_undo_sources' of size 1 at 0x55ead077754c (mysqld+0x00000226554c) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2532 in srv_shutdown_bg_undo_sources() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0783e60 by thread T26: #0 btr_defragment_thread /data/builds/10.3_dbg_san/storage/innobase/btr/btr0defragment.cc:798 (mysqld+0x135ea9f) #1 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0783e60 by thread T31 (mutexes: write M426007171751220880): #0 row_drop_table_for_mysql(char const*, trx_t*, enum_sql_command, bool, bool) /data/builds/10.3_dbg_san/storage/innobase/row/row0mysql.cc:3467 (mysqld+0x117e276) #1 ha_innobase::delete_table(char const*, enum_sql_command) (mysqld+0xf8aa77) #2 ha_innobase::truncate() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:13541 (mysqld+0xf7ca79) #3 handler::ha_truncate() /data/builds/10.3_dbg_san/sql/handler.cc:4452 (mysqld+0xb62580) #4 Sql_cmd_truncate_table::handler_truncate(THD*, TABLE_LIST*, bool) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:238 (mysqld+0xede92c) #5 Sql_cmd_truncate_table::truncate_table(THD*, TABLE_LIST*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:444 (mysqld+0xedf434) #6 Sql_cmd_truncate_table::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_truncate.cc:500 (mysqld+0xedf614) #7 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #8 sp_instr_stmt::exec_core(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3702 (mysqld+0x53e754) #9 sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3434 (mysqld+0x554b6e) #10 sp_instr_stmt::execute(THD*, unsigned int*) /data/builds/10.3_dbg_san/sql/sp_head.cc:3608 (mysqld+0x555f2b) #11 sp_head::execute(THD*, bool) /data/builds/10.3_dbg_san/sql/sp_head.cc:1377 (mysqld+0x547f92) #12 sp_head::execute_procedure(THD*, List*) /data/builds/10.3_dbg_san/sql/sp_head.cc:2404 (mysqld+0x54af1c) #13 do_execute_sp /data/builds/10.3_dbg_san/sql/sql_parse.cc:3018 (mysqld+0x6883d6) #14 Sql_cmd_call::execute(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:3258 (mysqld+0x68cd5b) #15 mysql_execute_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:6052 (mysqld+0x6aa364) #16 mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:7840 (mysqld+0x6ad628) #17 dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1852 (mysqld+0x6b1b48) #18 do_command(THD*) /data/builds/10.3_dbg_san/sql/sql_parse.cc:1398 (mysqld+0x6b6e7d) #19 do_handle_one_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/sql_connect.cc:1403 (mysqld+0x8cb6b4) #20 handle_one_connection /data/builds/10.3_dbg_san/sql/sql_connect.cc:1308 (mysqld+0x8cba69) #21 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 btr_defragment_thread /data/builds/10.3_dbg_san/storage/innobase/btr/btr0defragment.cc:703 (mysqld+0x135c45c) #3 (libtsan.so.0+0x2d1af) Location is global 'btr_defragment_thread_active' of size 1 at 0x55ead0783e60 (mysqld+0x000002271e60) Mutex M426007171751220880 is already destroyed. Thread T26 (tid=1625190, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2508 (mysqld+0x123b035) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T31 (tid=1625492, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4df8a2) #3 create_thread_to_handle_connection(CONNECT*) /data/builds/10.3_dbg_san/sql/mysqld.cc:6658 (mysqld+0x4df8a2) #4 create_new_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:6728 (mysqld+0x4edb3e) #5 handle_connections_sockets() /data/builds/10.3_dbg_san/sql/mysqld.cc:6986 (mysqld+0x4edb3e) #6 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6280 (mysqld+0x4f057d) #7 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/btr/btr0defragment.cc:798 in btr_defragment_thread ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 8 at 0x55ead0680668 by thread T21 (mutexes: write M1263): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1229167) #2 srv_resume_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:930 (mysqld+0x1229167) #3 srv_purge_coordinator_suspend /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2681 (mysqld+0x1229b63) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2758 (mysqld+0x1229b63) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead0680668 by thread T28: #0 srv_purge_wakeup() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2881 (mysqld+0x1227cc4) #1 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2889 (mysqld+0x1227db0) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ead067fdc0 (mysqld+0x00000216e668) Mutex M1263 (0x55ead067fe90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Atomic write of size 8 at 0x55ead0680660 by thread T22 (mutexes: write M1263): #0 __tsan_atomic64_fetch_add (libtsan.so.0+0x7f2d9) #1 my_atomic_addlint /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:1121 (mysqld+0x1229167) #2 srv_resume_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:930 (mysqld+0x1229167) #3 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2537 (mysqld+0x122dad8) #4 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead0680660 by thread T28: #0 srv_purge_wakeup() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2880 (mysqld+0x1227cb1) #1 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2889 (mysqld+0x1227db0) #2 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #3 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ead067fdc0 (mysqld+0x00000216e660) Mutex M1263 (0x55ead067fe90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x7f2d9) in __tsan_atomic64_fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead067ff60 by thread T21 (mutexes: write M1263): #0 srv_free_slot /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1013 (mysqld+0x1227105) #1 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2776 (mysqld+0x1229fe2) #2 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead067ff60 by thread T28: #0 srv_purge_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2890 (mysqld+0x1227d8c) #1 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:344 (mysqld+0xf3f515) #2 (libtsan.so.0+0x2d1af) Location is global 'srv_sys' of size 2304 at 0x55ead067fdc0 (mysqld+0x00000216df60) Mutex M1263 (0x55ead067fe90) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1030 (mysqld+0x1225609) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x1225609) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1013 in srv_free_slot ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7ba80000c078 by thread T21: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad38) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad38) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad38) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2811 (mysqld+0x122a5d2) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80000c078 by thread T22 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:637 (mysqld+0x5faecf) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faecf) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faecf) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80000c000 allocated by thread T21: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2727 (mysqld+0x1229467) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T22 (tid=1625178, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7ba80003c080 by thread T28: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad48) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad48) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad48) #3 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:346 (mysqld+0xf3f51d) #4 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80003c080 by thread T24 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:636 (mysqld+0x5faea1) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faea1) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faea1) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80003c000 allocated by thread T28: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 thd_destructor_proxy /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:317 (mysqld+0xf3f1ac) #6 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T28 (tid=1625212, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7ba80002a078 by thread T23: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad38) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad38) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad38) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80002a078 by thread T24 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:637 (mysqld+0x5faecf) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faecf) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faecf) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80002a000 allocated by thread T23: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T24 (tid=1625183, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 8 at 0x7ba80002a080 by thread T23: #0 ilink::assert_linked() /data/builds/10.3_dbg_san/sql/sql_list.h:642 (mysqld+0x5fad48) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4899 (mysqld+0x5fad48) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5fad48) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2557 (mysqld+0x122e344) #5 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7ba80002a080 by thread T21 (mutexes: write M897): #0 ilink::unlink() /data/builds/10.3_dbg_san/sql/sql_list.h:636 (mysqld+0x5faea1) #1 unlink_not_visible_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.h:4901 (mysqld+0x5faea1) #2 destroy_thd(THD*) /data/builds/10.3_dbg_san/sql/sql_class.cc:4759 (mysqld+0x5faea1) #3 innobase_destroy_background_thd(THD*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1666 (mysqld+0xf41ab9) #4 srv_purge_coordinator_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2811 (mysqld+0x122a5d2) #5 (libtsan.so.0+0x2d1af) Location is heap block of size 23764 at 0x7ba80002a000 allocated by thread T23: #0 malloc (libtsan.so.0+0x30343) #1 sf_malloc /data/builds/10.3_dbg_san/mysys/safemalloc.c:118 (mysqld+0x1850044) #2 my_malloc /data/builds/10.3_dbg_san/mysys/my_malloc.c:101 (mysqld+0x1836304) #3 ilink::operator new(unsigned long) /data/builds/10.3_dbg_san/sql/sql_list.h:622 (mysqld+0x5fa82d) #4 create_thd() /data/builds/10.3_dbg_san/sql/sql_class.cc:4746 (mysqld+0x5fa82d) #5 innobase_create_background_thd(char const*) /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:1648 (mysqld+0xf419dd) #6 srv_worker_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2518 (mysqld+0x122da38) #7 (libtsan.so.0+0x2d1af) Mutex M897 (0x55ead0703928) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 safe_mutex_init /data/builds/10.3_dbg_san/mysys/thr_mutex.c:193 (mysqld+0x1845da3) #2 inline_mysql_mutex_init /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:655 (mysqld+0x4e6ced) #3 init_thread_environment /data/builds/10.3_dbg_san/sql/mysqld.cc:4858 (mysqld+0x4e6ced) #4 init_common_variables /data/builds/10.3_dbg_san/sql/mysqld.cc:4297 (mysqld+0x4e6ced) #5 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6022 (mysqld+0x4ee4eb) #6 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T23 (tid=1625181, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2426 (mysqld+0x123acf5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T21 (tid=1625176, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2415 (mysqld+0x123abba) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/sql_list.h:642 in ilink::assert_linked() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead072df10 by thread T32: #0 tdc_start_shutdown() /data/builds/10.3_dbg_san/sql/table_cache.cc:657 (mysqld+0xa07f17) #1 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2239 (mysqld+0x4d9976) #2 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #3 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #4 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #5 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead072df10 by thread T20 (mutexes: write M426007171751220880): #0 innobase_get_table_cache_size() /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:2296 (mysqld+0xf42fad) #1 srv_master_evict_from_table_cache /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2033 (mysqld+0x12242fd) #2 srv_master_do_idle_tasks /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2271 (mysqld+0x122b248) #3 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2405 (mysqld+0x122b248) #4 (libtsan.so.0+0x2d1af) Location is global 'tdc_size' of size 8 at 0x55ead072df10 (mysqld+0x00000221bf10) Mutex M426007171751220880 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T20 (tid=1625175, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/table_cache.cc:657 in tdc_start_shutdown() ================== 2021-03-06 15:52:11 0 [Note] InnoDB: Starting shutdown... 2021-03-06 15:52:11 0 [Note] InnoDB: Dumping buffer pool(s) to /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/data/ib_buffer_pool 2021-03-06 15:52:11 0 [Note] InnoDB: Buffer pool(s) dump completed at 210306 15:52:11 ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead07734fc by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1646 (mysqld+0x104d057) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead07734fc by thread T16: #0 srv_error_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1874 (mysqld+0x122507f) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_error_monitor_active' of size 1 at 0x55ead07734fc (mysqld+0x0000022614fc) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T16 (tid=1625130, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2335 (mysqld+0x123a313) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1646 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead07734fd by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1648 (mysqld+0x104d0b8) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead07734fd by thread T17: #0 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1769 (mysqld+0x122f3fa) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_monitor_active' of size 1 at 0x55ead07734fd (mysqld+0x0000022614fd) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1625131, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1648 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead07331f8 by thread T32: #0 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1655 (mysqld+0x104d180) #1 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #2 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #3 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #4 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #5 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #6 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #7 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #8 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #9 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #10 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #11 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead07331f8 by thread T15: #0 lock_wait_timeout_thread /data/builds/10.3_dbg_san/storage/innobase/lock/lock0wait.cc:554 (mysqld+0x103d675) #1 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 logs_empty_and_mark_files_at_shutdown() /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1616 (mysqld+0x104cec7) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2558 (mysqld+0x12321a5) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'lock_sys' of size 448 at 0x55ead0733040 (mysqld+0x0000022211f8) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T15 (tid=1625128, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2326 (mysqld+0x123a2b5) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/log/log0log.cc:1655 in logs_empty_and_mark_files_at_shutdown() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x7b4000001701 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001701 by thread T4 (mutexes: write M1296): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1296 (0x7b4000001710) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001710 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001710 by thread T4 (mutexes: write M364927084625139472): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001708 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001708 by thread T4 (mutexes: write M364927084625139472): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001700 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6a5) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001700 by thread T4 (mutexes: write M364927084625139472): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001700 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5995 (mysqld+0x10900ca) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001760 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6b2) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001760 by thread T4 (mutexes: write M364927084625139472): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001768 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6078 (mysqld+0x108c6b2) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001768 by thread T4 (mutexes: write M364927084625139472): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7374 (mysqld+0x108fba3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M364927084625139472 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x7b4000001801 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001801 by thread T4 (mutexes: write M1300): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1300 (0x7b4000001810) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001810 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001810 by thread T4 (mutexes: write M366052984531982352): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001808 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001808 by thread T4 (mutexes: write M366052984531982352): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001800 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6e9) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001800 by thread T4 (mutexes: write M366052984531982352): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001800 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6005 (mysqld+0x1090115) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001860 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6f6) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001860 by thread T4 (mutexes: write M366052984531982352): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001868 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6081 (mysqld+0x108c6f6) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001868 by thread T4 (mutexes: write M366052984531982352): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7378 (mysqld+0x108fbc3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M366052984531982352 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x7b4000001a01 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x7b4000001a01 by thread T4 (mutexes: write M1308): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x108f9ac) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ac) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ac) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ac) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M1308 (0x7b4000001a10) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 AIO::AIO(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5777 (mysqld+0x108c1ca) #6 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dad8) #7 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #8 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #9 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #10 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #11 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #12 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #13 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #14 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #15 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #16 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001a10 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #6 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #7 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #8 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #9 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #10 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #11 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #12 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #13 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #14 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #15 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #16 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #17 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #18 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x7b4000001a10 by thread T4 (mutexes: write M368304784345668112): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x108f9e9) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9e9) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9e9) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9e9) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9e9) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001a08 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #5 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #6 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #7 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #8 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #9 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #10 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #11 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #12 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #13 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #14 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #15 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #16 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #17 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001a08 by thread T4 (mutexes: write M368304784345668112): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x108f9d1) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x108f9d1) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9d1) #3 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9d1) #4 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9d1) #5 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #6 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #7 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #8 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x7b4000001a00 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 AIO::~AIO() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5926 (mysqld+0x108c480) #4 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c771) #5 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x7b4000001a00 by thread T4 (mutexes: write M368304784345668112): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x108f9ba) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x108f9ba) #2 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f9ba) #3 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f9ba) #4 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #5 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #6 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #7 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is heap block of size 256 at 0x7b4000001a00 allocated by main thread: #0 operator new(unsigned long, std::nothrow_t const&) (libtsan.so.0+0x8aeac) #1 AIO::create(latch_id_t, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:5911 (mysqld+0x108dabb) #2 AIO::start(unsigned long, unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6041 (mysqld+0x1090215) #3 os_aio_init(unsigned long, unsigned long, unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6112 (mysqld+0x109045d) #4 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1570 (mysqld+0x1236fb8) #5 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #6 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #7 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #8 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #9 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #10 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #11 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001a60 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c77e) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 8 at 0x7b4000001a60 by thread T4 (mutexes: write M368304784345668112): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:93 (mysqld+0xf89aaf) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89aaf) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x7b4000001a68 by thread T32: #0 operator delete(void*, unsigned long) (libtsan.so.0+0x8b728) #1 AIO::shutdown() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6087 (mysqld+0x108c77e) #2 os_aio_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:6119 (mysqld+0x108c7fe) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2640 (mysqld+0x12326bd) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x7b4000001a68 by thread T4 (mutexes: write M368304784345668112): #0 MutexDebug >::Context::release() /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:95 (mysqld+0xf89ac0) #1 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:96 (mysqld+0xf89ac0) #2 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #4 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #5 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #6 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #7 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #8 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #9 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x8b728) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 1 at 0x55ead0773561 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 (mysqld+0x10125cf) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125cf) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125cf) #3 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #4 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #5 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #6 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #7 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #8 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #9 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #10 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #11 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #12 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #13 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #14 (libtsan.so.0+0x2d1af) Previous write of size 1 at 0x55ead0773561 by thread T17 (mutexes: write M1261): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:82 (mysqld+0x122edd2) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122edd2) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122edd2) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122edd2) #4 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ead0773560 (mysqld+0x000002261561) Mutex M1261 (0x55ead0773570) created at: #0 pthread_mutex_init (libtsan.so.0+0x4a636) #1 OSMutex::init() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:395 (mysqld+0x1011dd5) #2 OSTrackMutex::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:62 (mysqld+0x1011dd5) #3 PolicyMutex >::init(latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:659 (mysqld+0x1011dd5) #4 void mutex_init > >(PolicyMutex >*, latch_id_t, char const*, unsigned int) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:178 (mysqld+0x1011dd5) #5 srv_init /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1023 (mysqld+0x12255a9) #6 srv_boot() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1132 (mysqld+0x12255a9) #7 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1501 (mysqld+0x1236b95) #8 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #9 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #10 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #11 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #12 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #13 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #14 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1625131, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:70 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0773570 by thread T32: #0 pthread_mutex_destroy (libtsan.so.0+0x3727c) #1 OSMutex::destroy() (mysqld+0x101157c) #2 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #3 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #4 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #5 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #6 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #7 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #8 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #9 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #10 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #11 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #12 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #13 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #14 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #15 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #16 (libtsan.so.0+0x2d1af) Previous atomic read of size 1 at 0x55ead0773570 by thread T17 (mutexes: write M355034412640318832): #0 pthread_mutex_unlock (libtsan.so.0+0x3aafc) #1 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:436 (mysqld+0x122ee17) #2 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x122ee17) #3 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122ee17) #4 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122ee17) #5 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ee17) #6 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ead0773560 (mysqld+0x000002261570) Mutex M355034412640318832 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1625131, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x3727c) in pthread_mutex_destroy ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0773568 by thread T32: #0 OSMutex::destroy() (mysqld+0x101159f) #1 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:73 (mysqld+0x10125eb) #2 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x10125eb) #3 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x10125eb) #4 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #5 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #6 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #7 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #8 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #9 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #10 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #11 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #12 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #13 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #14 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #15 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0773568 by thread T17 (mutexes: write M355034412640318832): #0 OSMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/sync0types.h:432 (mysqld+0x122edfe) #1 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:85 (mysqld+0x122edfe) #2 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122edfe) #3 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122edfe) #4 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122edfe) #5 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ead0773560 (mysqld+0x000002261568) Mutex M355034412640318832 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1625131, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race (/test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld+0x101159f) in OSMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0773560 by thread T32: #0 OSTrackMutex::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 (mysqld+0x1012689) #1 PolicyMutex >::destroy() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:669 (mysqld+0x1012689) #2 void mutex_destroy > >(PolicyMutex >*) /data/builds/10.3_dbg_san/storage/innobase/include/ut0mutex.h:189 (mysqld+0x1012689) #3 srv_free() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1096 (mysqld+0x12258c1) #4 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2642 (mysqld+0x12326c7) #5 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #6 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #7 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #8 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #9 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #10 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #11 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #12 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #13 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #14 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0773560 by thread T17 (mutexes: write M355034412640318832): #0 OSTrackMutex::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:83 (mysqld+0x122ede5) #1 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:566 (mysqld+0x122ede5) #2 srv_refresh_innodb_monitor_stats /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1149 (mysqld+0x122ede5) #3 srv_monitor_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:1755 (mysqld+0x122ede5) #4 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'srv_innodb_monitor_mutex' of size 152 at 0x55ead0773560 (mysqld+0x000002261560) Mutex M355034412640318832 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T17 (tid=1625131, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2342 (mysqld+0x123a33d) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:75 in OSTrackMutex::destroy() ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 8 at 0x55ead07814e0 by thread T32: #0 LatchDebug::shutdown() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1230 (mysqld+0x1248d7a) #1 sync_check_close() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1712 (mysqld+0x1248dde) #2 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2655 (mysqld+0x1232757) #3 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #4 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #5 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #6 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #7 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #8 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #9 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #10 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #11 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #12 (libtsan.so.0+0x2d1af) Previous read of size 8 at 0x55ead07814e0 by thread T4 (mutexes: write M368304784345668112): #0 LatchDebug::instance() /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:343 (mysqld+0x125409d) #1 sync_check_unlock(latch_t const*) /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1157 (mysqld+0x125409d) #2 MutexDebug >::release(OSTrackMutex const*) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.ic:98 (mysqld+0xf89acf) #3 GenericPolicy >::release(OSTrackMutex const&) /data/builds/10.3_dbg_san/storage/innobase/include/sync0policy.h:366 (mysqld+0x108f992) #4 PolicyMutex >::exit() /data/builds/10.3_dbg_san/storage/innobase/include/ib0mutex.h:564 (mysqld+0x108f992) #5 AIO::release() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:388 (mysqld+0x108f992) #6 AIO::pending_io_count() const /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:1072 (mysqld+0x108f992) #7 AIO::total_pending_io_count() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7382 (mysqld+0x108fbe3) #8 os_aio_all_slots_free() /data/builds/10.3_dbg_san/storage/innobase/os/os0file.cc:7599 (mysqld+0x108feb3) #9 io_handler_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:325 (mysqld+0x1230c19) #10 (libtsan.so.0+0x2d1af) As if synchronized via sleep: #0 nanosleep (libtsan.so.0+0x63380) #1 os_thread_sleep(unsigned long) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:231 (mysqld+0x1097b58) #2 srv_shutdown_all_bg_threads /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1230 (mysqld+0x123163e) #3 innodb_shutdown() /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2568 (mysqld+0x123210a) #4 innobase_end /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4316 (mysqld+0xf40534) #5 ha_finalize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:488 (mysqld+0xb50194) #6 plugin_deinitialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1236 (mysqld+0x6b99ca) #7 reap_plugins /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1312 (mysqld+0x6c1685) #8 plugin_shutdown() /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1981 (mysqld+0x6c308e) #9 clean_up /data/builds/10.3_dbg_san/sql/mysqld.cc:2243 (mysqld+0x4d9980) #10 unireg_end() /data/builds/10.3_dbg_san/sql/mysqld.cc:2115 (mysqld+0x4dccfd) #11 kill_server /data/builds/10.3_dbg_san/sql/mysqld.cc:2042 (mysqld+0x4e50f2) #12 kill_server_thread /data/builds/10.3_dbg_san/sql/mysqld.cc:2065 (mysqld+0x4e5153) #13 (libtsan.so.0+0x2d1af) Location is global 'LatchDebug::s_instance' of size 8 at 0x55ead07814e0 (mysqld+0x00000226f4e0) Mutex M368304784345668112 is already destroyed. Thread T32 (tid=134241, running) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) Thread T4 (tid=1624931, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:1640 (mysqld+0x1237551) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/storage/innobase/sync/sync0debug.cc:1230 in LatchDebug::shutdown() ================== 2021-03-06 15:52:13 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2021-03-06 15:52:13 0 [Note] InnoDB: Shutdown completed; log sequence number 1639468; transaction id 42 2021-03-06 15:52:13 0 [Note] /test/TSAN_MD270121-mariadb-10.3.28-linux-x86_64-dbg/bin/mysqld: Shutdown complete ================== WARNING: ThreadSanitizer: data race (pid=1623340) Read of size 4 at 0x55ead07064a0 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3593 (mysqld+0x4db27d) #1 (libtsan.so.0+0x2d1af) Previous write of size 4 at 0x55ead07064a0 by thread T32: [failed to restore the stack] Location is global 'cleanup_done' of size 4 at 0x55ead07064a0 (mysqld+0x0000021f44a0) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Thread T32 (tid=134241, finished) created by thread T29 at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4db46f) #3 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3620 (mysqld+0x4db46f) #4 (libtsan.so.0+0x2d1af) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3593 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0706582 by thread T29: #0 signal_hand /data/builds/10.3_dbg_san/sql/mysqld.cc:3598 (mysqld+0x4db314) #1 (libtsan.so.0+0x2d1af) Previous read of size 1 at 0x55ead0706582 by main thread: #0 wait_for_signal_thread_to_end /data/builds/10.3_dbg_san/sql/mysqld.cc:2345 (mysqld+0x4d60bb) #1 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2182 (mysqld+0x4d60bb) #2 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #3 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Location is global 'signal_thread_in_use' of size 1 at 0x55ead0706582 (mysqld+0x0000021f4582) Thread T29 (tid=1625411, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0x4ef7bd) #3 start_signal_handler /data/builds/10.3_dbg_san/sql/mysqld.cc:3516 (mysqld+0x4ef7bd) #4 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6117 (mysqld+0x4ef7bd) #5 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/sql/mysqld.cc:3598 in signal_hand ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0f98d00 by main thread: #0 my_thread_global_end /data/builds/10.3_dbg_san/mysys/my_thr_init.c:245 (mysqld+0x183b190) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:233 (mysqld+0x1834eff) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ead0f98d00 by thread T20: #0 my_thread_var_dbug /data/builds/10.3_dbg_san/mysys/my_thr_init.c:440 (mysqld+0x183bda8) #1 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:379 (mysqld+0x18690c1) #2 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #3 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2373 (mysqld+0x122a81d) #4 (libtsan.so.0+0x2d1af) Location is global 'my_thread_global_init_done' of size 1 at 0x55ead0f98d00 (mysqld+0x000002a86d00) Thread T20 (tid=1625175, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/mysys/my_thr_init.c:245 in my_thread_global_end ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead068a030 by main thread: #0 _db_end_ /data/builds/10.3_dbg_san/dbug/dbug.c:1669 (mysqld+0x186a9d6) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:236 (mysqld+0x183525e) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ead068a030 by thread T20: #0 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:365 (mysqld+0x186909e) #1 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #2 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2373 (mysqld+0x122a81d) #3 (libtsan.so.0+0x2d1af) Location is global '_dbug_on_' of size 1 at 0x55ead068a030 (mysqld+0x000002178030) Thread T20 (tid=1625175, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/dbug/dbug.c:1669 in _db_end_ ================== ================== WARNING: ThreadSanitizer: data race (pid=1623340) Write of size 1 at 0x55ead0f9a578 by main thread: #0 _db_end_ /data/builds/10.3_dbg_san/dbug/dbug.c:1686 (mysqld+0x186aa6a) #1 my_end /data/builds/10.3_dbg_san/mysys/my_init.c:236 (mysqld+0x183525e) #2 mysqld_exit /data/builds/10.3_dbg_san/sql/mysqld.cc:2186 (mysqld+0x4d6511) #3 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6319 (mysqld+0x4f09f8) #4 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) Previous read of size 1 at 0x55ead0f9a578 by thread T20: #0 code_state /data/builds/10.3_dbg_san/dbug/dbug.c:368 (mysqld+0x18690b3) #1 _db_return_ /data/builds/10.3_dbg_san/dbug/dbug.c:1201 (mysqld+0x186c68b) #2 srv_master_thread /data/builds/10.3_dbg_san/storage/innobase/srv/srv0srv.cc:2373 (mysqld+0x122a81d) #3 (libtsan.so.0+0x2d1af) Location is global 'init_done' of size 1 at 0x55ead0f9a578 (mysqld+0x000002a88578) Thread T20 (tid=1625175, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 os_thread_create_func(void* (*)(void*), void*, unsigned long*) /data/builds/10.3_dbg_san/storage/innobase/os/os0thread.cc:138 (mysqld+0x10978a3) #2 srv_start(bool) /data/builds/10.3_dbg_san/storage/innobase/srv/srv0start.cc:2402 (mysqld+0x123ab29) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4210 (mysqld+0xf6943c) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: data race /data/builds/10.3_dbg_san/dbug/dbug.c:1686 in _db_end_ ================== Stats: SizeClassAllocator64: 15M mapped (7M rss) in 59075 allocations; remains 2565 01 ( 16): mapped: 64K allocs: 1024 frees: 987 inuse: 37 num_freed_chunks 4059 avail: 4096 rss: 16K releases: 1 last released: 48K region: 0x7b0400000000 02 ( 32): mapped: 192K allocs: 4352 frees: 4112 inuse: 240 num_freed_chunks 5904 avail: 6144 rss: 132K releases: 1 last released: 60K region: 0x7b0800000000 03 ( 48): mapped: 64K allocs: 1024 frees: 899 inuse: 125 num_freed_chunks 1240 avail: 1365 rss: 28K releases: 2 last released: 16K region: 0x7b0c00000000 04 ( 64): mapped: 192K allocs: 2560 frees: 2436 inuse: 124 num_freed_chunks 2948 avail: 3072 rss: 76K releases: 2 last released: 52K region: 0x7b1000000000 05 ( 80): mapped: 64K allocs: 896 frees: 847 inuse: 49 num_freed_chunks 770 avail: 819 rss: 36K releases: 1 last released: 16K region: 0x7b1400000000 06 ( 96): mapped: 64K allocs: 384 frees: 256 inuse: 128 num_freed_chunks 554 avail: 682 rss: 8K releases: 1 last released: 48K region: 0x7b1800000000 07 ( 112): mapped: 3712K allocs: 33792 frees: 33676 inuse: 116 num_freed_chunks 33822 avail: 33938 rss: 3628K releases: 2 last released: 32K region: 0x7b1c00000000 08 ( 128): mapped: 192K allocs: 1536 frees: 1399 inuse: 137 num_freed_chunks 1399 avail: 1536 rss: 52K releases: 1 last released: 44K region: 0x7b2000000000 09 ( 144): mapped: 64K allocs: 512 frees: 417 inuse: 95 num_freed_chunks 360 avail: 455 rss: 16K releases: 1 last released: 20K region: 0x7b2400000000 10 ( 160): mapped: 64K allocs: 640 frees: 558 inuse: 82 num_freed_chunks 327 avail: 409 rss: 20K releases: 1 last released: 16K region: 0x7b2800000000 11 ( 176): mapped: 192K allocs: 1408 frees: 1308 inuse: 100 num_freed_chunks 1017 avail: 1117 rss: 88K releases: 2 last released: 24K region: 0x7b2c00000000 12 ( 192): mapped: 128K allocs: 640 frees: 562 inuse: 78 num_freed_chunks 604 avail: 682 rss: 32K releases: 2 last released: 48K region: 0x7b3000000000 13 ( 208): mapped: 64K allocs: 128 frees: 17 inuse: 111 num_freed_chunks 204 avail: 315 rss: 4K releases: 0 last released: 0K region: 0x7b3400000000 14 ( 224): mapped: 256K allocs: 1024 frees: 897 inuse: 127 num_freed_chunks 1043 avail: 1170 rss: 52K releases: 4 last released: 44K region: 0x7b3800000000 15 ( 240): mapped: 192K allocs: 640 frees: 538 inuse: 102 num_freed_chunks 717 avail: 819 rss: 28K releases: 2 last released: 60K region: 0x7b3c00000000 16 ( 256): mapped: 256K allocs: 896 frees: 804 inuse: 92 num_freed_chunks 932 avail: 1024 rss: 36K releases: 1 last released: 60K region: 0x7b4000000000 17 ( 320): mapped: 192K allocs: 512 frees: 399 inuse: 113 num_freed_chunks 501 avail: 614 rss: 36K releases: 3 last released: 56K region: 0x7b4400000000 18 ( 384): mapped: 960K allocs: 2688 frees: 2638 inuse: 50 num_freed_chunks 2510 avail: 2560 rss: 280K releases: 1 last released: 32K region: 0x7b4800000000 19 ( 448): mapped: 128K allocs: 256 frees: 138 inuse: 118 num_freed_chunks 174 avail: 292 rss: 12K releases: 2 last released: 64K region: 0x7b4c00000000 20 ( 512): mapped: 384K allocs: 768 frees: 652 inuse: 116 num_freed_chunks 652 avail: 768 rss: 16K releases: 1 last released: 60K region: 0x7b5000000000 21 ( 640): mapped: 320K allocs: 510 frees: 455 inuse: 55 num_freed_chunks 457 avail: 512 rss: 56K releases: 1 last released: 60K region: 0x7b5400000000 22 ( 768): mapped: 128K allocs: 170 frees: 93 inuse: 77 num_freed_chunks 93 avail: 170 rss: 20K releases: 1 last released: 52K region: 0x7b5800000000 23 ( 896): mapped: 320K allocs: 365 frees: 309 inuse: 56 num_freed_chunks 309 avail: 365 rss: 48K releases: 1 last released: 56K region: 0x7b5c00000000 24 ( 1024): mapped: 320K allocs: 320 frees: 272 inuse: 48 num_freed_chunks 272 avail: 320 rss: 32K releases: 1 last released: 60K region: 0x7b6000000000 25 ( 1280): mapped: 576K allocs: 459 frees: 430 inuse: 29 num_freed_chunks 431 avail: 460 rss: 196K releases: 1 last released: 48K region: 0x7b6400000000 26 ( 1536): mapped: 256K allocs: 168 frees: 167 inuse: 1 num_freed_chunks 169 avail: 170 rss: 88K releases: 1 last released: 48K region: 0x7b6800000000 27 ( 1792): mapped: 384K allocs: 216 frees: 202 inuse: 14 num_freed_chunks 205 avail: 219 rss: 88K releases: 1 last released: 52K region: 0x7b6c00000000 28 ( 2048): mapped: 384K allocs: 192 frees: 163 inuse: 29 num_freed_chunks 163 avail: 192 rss: 100K releases: 1 last released: 52K region: 0x7b7000000000 29 ( 2560): mapped: 1344K allocs: 550 frees: 516 inuse: 34 num_freed_chunks 503 avail: 537 rss: 896K releases: 2 last released: 12K region: 0x7b7400000000 30 ( 3072): mapped: 128K allocs: 42 frees: 36 inuse: 6 num_freed_chunks 36 avail: 42 rss: 60K releases: 1 last released: 52K region: 0x7b7800000000 31 ( 3584): mapped: 192K allocs: 54 frees: 49 inuse: 5 num_freed_chunks 49 avail: 54 rss: 84K releases: 1 last released: 48K region: 0x7b7c00000000 32 ( 4096): mapped: 320K allocs: 80 frees: 49 inuse: 31 num_freed_chunks 49 avail: 80 rss: 144K releases: 1 last released: 56K region: 0x7b8000000000 33 ( 5120): mapped: 512K allocs: 96 frees: 85 inuse: 11 num_freed_chunks 91 avail: 102 rss: 240K releases: 3 last released: 72K region: 0x7b8400000000 34 ( 6144): mapped: 128K allocs: 20 frees: 12 inuse: 8 num_freed_chunks 13 avail: 21 rss: 20K releases: 1 last released: 64K region: 0x7b8800000000 36 ( 8192): mapped: 256K allocs: 32 frees: 29 inuse: 3 num_freed_chunks 29 avail: 32 rss: 104K releases: 1 last released: 56K region: 0x7b9000000000 37 ( 10240): mapped: 320K allocs: 30 frees: 29 inuse: 1 num_freed_chunks 31 avail: 32 rss: 124K releases: 1 last released: 140K region: 0x7b9400000000 38 ( 12288): mapped: 128K allocs: 10 frees: 5 inuse: 5 num_freed_chunks 5 avail: 10 rss: 12K releases: 1 last released: 60K region: 0x7b9800000000 39 ( 14336): mapped: 64K allocs: 4 frees: 3 inuse: 1 num_freed_chunks 3 avail: 4 rss: 4K releases: 1 last released: 40K region: 0x7b9c00000000 40 ( 16384): mapped: 192K allocs: 12 frees: 9 inuse: 3 num_freed_chunks 9 avail: 12 rss: 48K releases: 1 last released: 64K region: 0x7ba000000000 41 ( 20480): mapped: 256K allocs: 12 frees: 11 inuse: 1 num_freed_chunks 11 avail: 12 rss: 104K releases: 1 last released: 120K region: 0x7ba400000000 42 ( 24576): mapped: 384K allocs: 16 frees: 16 inuse: 0 num_freed_chunks 16 avail: 16 rss: 192K releases: 2 last released: 48K region: 0x7ba800000000 43 ( 28672): mapped: 64K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 0K releases: 1 last released: 56K region: 0x7bac00000000 44 ( 32768): mapped: 576K allocs: 20 frees: 17 inuse: 3 num_freed_chunks 15 avail: 18 rss: 212K releases: 1 last released: 64K region: 0x7bb000000000 45 ( 40960): mapped: 192K allocs: 4 frees: 3 inuse: 1 num_freed_chunks 3 avail: 4 rss: 72K releases: 1 last released: 80K region: 0x7bb400000000 46 ( 49152): mapped: 192K allocs: 3 frees: 1 inuse: 2 num_freed_chunks 2 avail: 4 rss: 60K releases: 1 last released: 96K region: 0x7bb800000000 47 ( 57344): mapped: 128K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 0K releases: 1 last released: 112K region: 0x7bbc00000000 48 ( 65536): mapped: 64K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 64K region: 0x7bc000000000 49 ( 81920): mapped: 128K allocs: 1 frees: 0 inuse: 1 num_freed_chunks 0 avail: 1 rss: 4K releases: 0 last released: 0K region: 0x7bc400000000 50 ( 98304): mapped: 128K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 96K region: 0x7bc800000000 51 (114688): mapped: 128K allocs: 1 frees: 1 inuse: 0 num_freed_chunks 1 avail: 1 rss: 0K releases: 1 last released: 112K region: 0x7bcc00000000 52 (131072): mapped: 256K allocs: 2 frees: 2 inuse: 0 num_freed_chunks 2 avail: 2 rss: 0K releases: 1 last released: 256K region: 0x7bd000000000 Stats: LargeMmapAllocator: allocated 39 times, remains 0 (0 K) max 290 M; by size logs: 17:6; 18:16; 19:5; 20:1; 21:5; 22:2; 24:2; 26:2; ================== WARNING: ThreadSanitizer: thread leak (pid=1623340) Thread T28 (tid=1625212, finished) created by main thread at: #0 pthread_create (libtsan.so.0+0x5ea99) #1 spawn_thread_noop /data/builds/10.3_dbg_san/mysys/psi_noop.c:187 (mysqld+0x18649d8) #2 inline_mysql_thread_create /data/builds/10.3_dbg_san/include/mysql/psi/mysql_thread.h:1275 (mysqld+0xf694ab) #3 innodb_init /data/builds/10.3_dbg_san/storage/innobase/handler/ha_innodb.cc:4216 (mysqld+0xf694ab) #4 ha_initialize_handlerton(st_plugin_int*) /data/builds/10.3_dbg_san/sql/handler.cc:549 (mysqld+0xb50529) #5 plugin_initialize /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1433 (mysqld+0x6c70fc) #6 plugin_init(int*, char**, int) /data/builds/10.3_dbg_san/sql/sql_plugin.cc:1715 (mysqld+0x6c9922) #7 init_server_components /data/builds/10.3_dbg_san/sql/mysqld.cc:5472 (mysqld+0x4e2064) #8 mysqld_main(int, char**) /data/builds/10.3_dbg_san/sql/mysqld.cc:6081 (mysqld+0x4eea57) #9 main /data/builds/10.3_dbg_san/sql/main.cc:25 (mysqld+0x4d55bb) SUMMARY: ThreadSanitizer: thread leak (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x5ea99) in pthread_create ================== ThreadSanitizer: reported 117 warnings