==== Stack traces from assertion when running repro test for Bug#40633==== mysqltest_embedded: pthread_mutex_lock.c:80: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. mysqltest got signal 6 ====================================== === GDB backtrace from all threads, followed by GDB backtrace full from all threads === (gdb) thread apply all bt Thread 7 (process 4955): #0 0x00002b5509b9f9e7 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b161 in Synchronize::sleep (this=0x2aaaaaee4238, milliseconds=1000, callersMutex=0x0) at Synchronize.cpp:183 #2 0x0000000000c6af57 in Synchronize::sleep (this=0x2aaaaaee4238, milliseconds=1000) at Synchronize.cpp:136 #3 0x0000000000bcf6bd in Database::ticker (this=0x2aaaaacd8bc8) at Database.cpp:1886 #4 0x0000000000bcf6f7 in Database::ticker (database=0x2aaaaacd8bc8) at Database.cpp:1875 #5 0x0000000000b0aff9 in Thread::thread (this=0x2aaaaaee4238) at Thread.cpp:167 #6 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4238) at Thread.cpp:146 #7 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #8 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #9 0x0000000000000000 in ?? () Thread 6 (process 4960): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee49d8) at Synchronize.cpp:123 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee49d8) at Thread.cpp:193 #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee49d8) at Thread.cpp:146 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 5 (process 4961): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4b20) at Synchronize.cpp:123 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4b20) at Thread.cpp:193 #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4b20) at Thread.cpp:146 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 4 (process 4962): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4c68) at Synchronize.cpp:123 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4c68) at Thread.cpp:193 #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4c68) at Thread.cpp:146 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 3 (process 4963): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4db0) at Synchronize.cpp:123 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4db0) at Thread.cpp:193 #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4db0) at Thread.cpp:146 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 2 (process 4964): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4ef8) at Synchronize.cpp:123 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4ef8) at Thread.cpp:193 #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4ef8) at Thread.cpp:146 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 1 (process 4945): #0 0x00002b550a38daa5 in raise () from /lib64/libc.so.6 #1 0x00002b550a38ef90 in abort () from /lib64/libc.so.6 #2 0x00002b550a387246 in __assert_fail () from /lib64/libc.so.6 #3 0x00002b5509b9e57b in pthread_mutex_lock () from /lib64/libpthread.so.0 #4 0x0000000000c6afab in Synchronize::wake (this=0x2aaaaaeda5e8) at Synchronize.cpp:231 #5 0x0000000000c6af84 in Synchronize::shutdown (this=0x2aaaaaeda5e8) at Synchronize.cpp:243 #6 0x0000000000bb6893 in Cache::shutdownThreads (this=0x2aaaaad01010) at Cache.cpp:1016 #7 0x0000000000bb6fb8 in Cache::shutdown (this=0x2aaaaad01010) at Cache.cpp:998 #8 0x0000000000bd0460 in Database::shutdown (this=0x2aaaaacd8bc8) at Database.cpp:1611 #9 0x0000000000bc5a61 in Connection::shutdownDatabase (this=0x2aaaaaed97d8) at Connection.cpp:1804 #10 0x0000000000ae88b0 in StorageDatabase::close (this=0x2aaaaaed9210) at StorageDatabase.cpp:925 #11 0x0000000000aeceba in StorageHandler::shutdownHandler (this=0x2aaaaacd8048) at StorageHandler.cpp:194 #12 0x0000000000ae2b20 in StorageInterface::falcon_deinit (p=0x0) at ha_falcon.cpp:274 #13 0x0000000000ae2b45 in StorageInterface::panic (hton=0x205cf38, flag=HA_PANIC_CLOSE) at ha_falcon.cpp:2224 #14 0x00000000009b88d0 in ha_finalize_handlerton (plugin=0x201eb70) at handler.cc:392 #15 0x00000000007064e4 in plugin_deinitialize (plugin=0x201eb70, ref_check=true) at sql_plugin.cc:819 #16 0x0000000000706a1f in reap_plugins () at sql_plugin.cc:907 #17 0x000000000070948f in plugin_shutdown () at sql_plugin.cc:1511 #18 0x0000000000629301 in clean_up (print_message=false) at ../sql/mysqld.cc:1365 #19 0x00000000006296b9 in end_embedded_server () at lib_sql.cc:567 #20 0x000000000061d2df in mysql_server_end () at libmysql.c:202 #21 0x00000000006052be in free_used_memory () at mysqltest.cc:1139 #22 0x00000000006052d0 in cleanup_and_exit (exit_code=0) at mysqltest.cc:1148 #23 0x0000000000612570 in main (argc=20, argv=0x7fffa13518d8) at mysqltest.cc:7981 ====================================== (gdb) thread apply all backtrace full Thread 7 (process 4955): #0 0x00002b5509b9f9e7 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b161 in Synchronize::sleep (this=0x2aaaaaee4238, milliseconds=1000, callersMutex=0x0) at Synchronize.cpp:183 ret = 0 nanoTime = {tv_sec = 1232724964, tv_nsec = 700245000} start = 1232724963700245000 nanos = 1700245000 #2 0x0000000000c6af57 in Synchronize::sleep (this=0x2aaaaaee4238, milliseconds=1000) at Synchronize.cpp:136 No locals. #3 0x0000000000bcf6bd in Database::ticker (this=0x2aaaaacd8bc8) at Database.cpp:1886 thread = (class Thread *) 0x2aaaaaee4238 #4 0x0000000000bcf6f7 in Database::ticker (database=0x2aaaaacd8bc8) at Database.cpp:1875 No locals. #5 0x0000000000b0aff9 in Thread::thread (this=0x2aaaaaee4238) at Thread.cpp:167 No locals. #6 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4238) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee4238 #7 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #8 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #9 0x0000000000000000 in ?? () No symbol table info available. Thread 6 (process 4960): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee49d8) at Synchronize.cpp:123 ret = 0 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee49d8) at Thread.cpp:193 No locals. #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee49d8) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee49d8 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #6 0x0000000000000000 in ?? () No symbol table info available. Thread 5 (process 4961): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4b20) at Synchronize.cpp:123 ret = 0 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4b20) at Thread.cpp:193 No locals. #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4b20) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee4b20 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #6 0x0000000000000000 in ?? () No symbol table info available. Thread 4 (process 4962): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4c68) at Synchronize.cpp:123 ret = 0 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4c68) at Thread.cpp:193 No locals. #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4c68) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee4c68 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #6 0x0000000000000000 in ?? () No symbol table info available. Thread 3 (process 4963): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4db0) at Synchronize.cpp:123 ret = 0 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4db0) at Thread.cpp:193 No locals. #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4db0) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee4db0 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #6 0x0000000000000000 in ?? () No symbol table info available. Thread 2 (process 4964): #0 0x00002b5509b9f7f6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0000000000c6b2ab in Synchronize::sleep (this=0x2aaaaaee4ef8) at Synchronize.cpp:123 ret = 0 #2 0x0000000000b0b0d4 in Thread::thread (this=0x2aaaaaee4ef8) at Thread.cpp:193 No locals. #3 0x0000000000b0b221 in Thread::thread (parameter=0x2aaaaaee4ef8) at Thread.cpp:146 thread = (Thread *) 0x2aaaaaee4ef8 #4 0x00002b5509b9c193 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #5 0x00002b550a41d47d in clone () from /lib64/libc.so.6 No symbol table info available. #6 0x0000000000000000 in ?? () No symbol table info available. Thread 1 (process 4945): #0 0x00002b550a38daa5 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00002b550a38ef90 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00002b550a387246 in __assert_fail () from /lib64/libc.so.6 No symbol table info available. #3 0x00002b5509b9e57b in pthread_mutex_lock () from /lib64/libpthread.so.0 No symbol table info available. #4 0x0000000000c6afab in Synchronize::wake (this=0x2aaaaaeda5e8) at Synchronize.cpp:231 ret = 0 #5 0x0000000000c6af84 in Synchronize::shutdown (this=0x2aaaaaeda5e8) at Synchronize.cpp:243 No locals. #6 0x0000000000bb6893 in Cache::shutdownThreads (this=0x2aaaaad01010) at Cache.cpp:1016 n = 1 sync = {_vptr.Sync = 0x0, syncObject = 0xffffffffffffffff, state = None, request = None, prior = 0x2b550a58eda0, location = 0x7fffa1351130 " \0215¡ÿ\177", marked = 0x8f5da5 "¸"} #7 0x0000000000bb6fb8 in Cache::shutdown (this=0x2aaaaad01010) at Cache.cpp:998 sync = {_vptr.Sync = 0xe85850, syncObject = 0x2aaaaad70280, state = Exclusive, request = Exclusive, prior = 0x0, location = 0xf47425 "SerialLog::shutdown", marked = 0x0} #8 0x0000000000bd0460 in Database::shutdown (this=0x2aaaaacd8bc8) at Database.cpp:1611 No locals. #9 0x0000000000bc5a61 in Connection::shutdownDatabase (this=0x2aaaaaed97d8) at Connection.cpp:1804 db = (class Database *) 0x2aaaaacd8bc8 #10 0x0000000000ae88b0 in StorageDatabase::close (this=0x2aaaaaed9210) at StorageDatabase.cpp:925 No locals. #11 0x0000000000aeceba in StorageHandler::shutdownHandler (this=0x2aaaaacd8048) at StorageHandler.cpp:194 storageDatabase = (StorageDatabase *) 0x2aaaaaed9210 n = 27 #12 0x0000000000ae2b20 in StorageInterface::falcon_deinit (p=0x0) at ha_falcon.cpp:274 No locals. #13 0x0000000000ae2b45 in StorageInterface::panic (hton=0x205cf38, flag=HA_PANIC_CLOSE) at ha_falcon.cpp:2224 No locals. #14 0x00000000009b88d0 in ha_finalize_handlerton (plugin=0x201eb70) at handler.cc:392 hton = (handlerton *) 0x205cf38 _db_stack_frame_ = {func = 0xe06bdf "plugin_shutdown", file = 0xe060e0 "sql_plugin.cc", level = 2147483651, prev = 0x7fffa1351430} __PRETTY_FUNCTION__ = "int ha_finalize_handlerton(st_plugin_int*)" #15 0x00000000007064e4 in plugin_deinitialize (plugin=0x201eb70, ref_check=true) at sql_plugin.cc:819 __PRETTY_FUNCTION__ = "void plugin_deinitialize(st_plugin_int*, bool)" #16 0x0000000000706a1f in reap_plugins () at sql_plugin.cc:907 count = 20 idx = 20 plugin = (st_plugin_int *) 0x201eb70 reap = (st_plugin_int **) 0x7fffa13513b0 list = (st_plugin_int **) 0x7fffa1351340 __PRETTY_FUNCTION__ = "void reap_plugins()" #17 0x000000000070948f in plugin_shutdown () at sql_plugin.cc:1511 i = 20 count = 20 free_slots = 0 plugins = (st_plugin_int **) 0x7fffa13514e0 plugin = (st_plugin_int *) 0x2035958 dl = (st_plugin_dl **) 0x68da04 _db_stack_frame_ = {func = 0xdbd97d "free_used_memory", file = 0xdbd340 "mysqltest.cc", level = 2147483650, prev = 0x7fffa13514e0} #18 0x0000000000629301 in clean_up (print_message=false) at ../sql/mysqld.cc:1365 No locals. #19 0x00000000006296b9 in end_embedded_server () at lib_sql.cc:567 No locals. #20 0x000000000061d2df in mysql_server_end () at libmysql.c:202 No locals. #21 0x00000000006052be in free_used_memory () at mysqltest.cc:1139 i = 10 _db_stack_frame_ = {func = 0xdd1ed5 "?func", file = 0xdd1edb "?file", level = 2147483649, prev = 0x0} #22 0x00000000006052d0 in cleanup_and_exit (exit_code=0) at mysqltest.cc:1148 __PRETTY_FUNCTION__ = "void cleanup_and_exit(int)" #23 0x0000000000612570 in main (argc=20, argv=0x7fffa13518d8) at mysqltest.cc:7981 command = (st_command *) 0x218b5f8 q_send_flag = 0 '\0' abort_flag = 0 '\0' command_executed = 7 last_command_executed = 7 save_file = "\000ÿÿÿÿÿÿÿ\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\027", '\0' , "\001\000\000\000\000\000\000\000¨66\nU+\000\000\000Ð5\nU+\000\000a\0255¡ÿ\177\000\000(7\036\001", '\0' , "\200\0315¡ÿ\177\000\000Ø\0305¡ÿ\177\000\000\024", '\0' , "å\020v\tU+\000\000\b\000\000\000\001", '\0' , "ôËÞ\000\000\000\000\000@×=\001\000\000\000\000\200\0265¡ÿ\177\000\000§\032i\000\000\000\000\000\000\0275¡", '\0' , "*ÒÞ", '\0' , "\020\004\000\000\000\000\000\000`ù"... con = (st_connection *) 0x1325480