(gdb) thread 5 [Switching to thread 5 (Thread 0x7f7afac4d700 (LWP 12820))] #0 0x00007f7ba4f74e24 in pthread_rwlock_rdlock () from /lib64/libpthread.so.0 (gdb) bt #0 0x00007f7ba4f74e24 in pthread_rwlock_rdlock () from /lib64/libpthread.so.0 #1 0x0000000000ca65e8 in native_rw_rdlock (rwp=) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/include/thr_rwlock.h:79 #2 inline_mysql_rwlock_rdlock (src_line=2746, src_file=0x1453990 "/data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc", that=) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/include/mysql/psi/mysql_thread.h:906 #3 find_sys_var_ex (thd=thd@entry=0x7f7ac4850000, str=0x7f7ac4862990 "autocommit", length=10, throw_error=throw_error@entry=false, locked=locked@entry=false) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc:2746 #4 0x0000000000ca66ca in find_sys_var (thd=thd@entry=0x7f7ac4850000, str=, length=) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc:2776 #5 0x0000000000dcdff9 in find_sys_var_null_base (thd=thd@entry=0x7f7ac4850000, tmp=tmp@entry=0x7f7ac48629a8) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_helpers.cc:142 #6 0x0000000000d7ffa4 in PT_internal_variable_name_1d::contextualize (this=0x7f7ac48629a0, pc=) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_nodes.h:1163 #7 0x0000000000d7ee60 in PT_option_value_following_option_type::contextualize (this=0x7f7ac4862a80, pc=0x7f7afac4a610) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_nodes.h:1249 #8 0x0000000000d7f13d in PT_start_option_value_list_following_option_type_eq::contextualize (this=0x7f7ac4862ab8, pc=0x7f7afac4a610) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_nodes.h:1823 #9 0x0000000000d7e614 in PT_start_option_value_list_type::contextualize (this=0x7f7ac4862af0, pc=0x7f7afac4a610) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_nodes.h:1887 #10 0x0000000000d803e4 in PT_set::contextualize (this=0x7f7ac4862b08, pc=0x7f7afac4a610) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/parse_tree_nodes.h:1963 #11 0x0000000000d63a2c in MYSQLparse (YYTHD=YYTHD@entry=0x7f7ac4850000) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_yacc.yy:1720 #12 0x0000000000c87be7 in parse_sql (thd=thd@entry=0x7f7ac4850000, parser_state=parser_state@entry=0x7f7afac4c730, creation_ctx=creation_ctx@entry=0x0) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:7656 #13 0x0000000000c8821d in mysql_parse (thd=thd@entry=0x7f7ac4850000, parser_state=parser_state@entry=0x7f7afac4c730) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:5943 #14 0x0000000000c89330 in dispatch_command (thd=thd@entry=0x7f7ac4850000, com_data=com_data@entry=0x7f7afac4cdd0, command=COM_QUERY) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:1519 #15 0x0000000000c8a6ff in do_command (thd=thd@entry=0x7f7ac4850000) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:1039 #16 0x0000000000d52aa8 in handle_connection (arg=arg@entry=0x7f7aba4501c0) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/conn_handler/connection_handler_per_thread.cc:312 #17 0x0000000000eb92fd in pfs_spawn_thread (arg=0x7f7ae9ffc620) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/storage/perfschema/pfs.cc:2188 #18 0x00007f7ba4f71dc5 in start_thread () from /lib64/libpthread.so.0 #19 0x00007f7ba3a2474d in clone () from /lib64/libc.so.6 (gdb) p LOCK_system_variables_hash $3 = {m_rwlock = {__data = {__lock = 0, __nr_readers = 0, __readers_wakeup = 1, __writer_wakeup = 0, __nr_readers_queued = 2, __nr_writers_queued = 0, __writer = 1573, __shared = 0, __pad1 = 0, __pad2 = 0, __flags = 0}, __size = "\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000%\006", '\000' , __align = 0}, m_psi = 0x0} (gdb) thread 23 [Switching to thread 23 (Thread 0x7f7afaeca700 (LWP 1573))] #0 0x00007f7ba4f781bd in __lll_lock_wait () from /lib64/libpthread.so.0 (gdb) bt #0 0x00007f7ba4f781bd in __lll_lock_wait () from /lib64/libpthread.so.0 #1 0x00007f7ba4f73d38 in _L_lock_975 () from /lib64/libpthread.so.0 #2 0x00007f7ba4f73ce1 in pthread_mutex_lock () from /lib64/libpthread.so.0 #3 0x0000000000ca8048 in native_mutex_lock (mutex=0x1d77ae0 ) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/include/thr_mutex.h:84 #4 my_mutex_lock (mp=0x1d77ae0 ) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/include/thr_mutex.h:182 #5 inline_mysql_mutex_lock (that=0x1d77ae0 , src_line=939, src_file=0x1453990 "/data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc") at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/include/mysql/psi/mysql_thread.h:730 #6 plugin_add (allow_path=false, report=2, argv=0x7f7aca7aba88, argc=0x7f7afaec818c, dl=0x7f7aca46a9f8, name=0x7f7aca46a9e8, tmp_root=0x7f7aca41eee8) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc:939 #7 mysql_install_plugin (thd=thd@entry=0x7f7aca41c000, name=0x7f7aca46a9e8, dl=0x7f7aca46a9f8) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc:2066 #8 0x0000000000ca80c9 in Sql_cmd_install_plugin::execute (this=, thd=0x7f7aca41c000) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_plugin.cc:4433 #9 0x0000000000c820c2 in mysql_execute_command (thd=thd@entry=0x7f7aca41c000, first_level=first_level@entry=true) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:5270 #10 0x0000000000c884dd in mysql_parse (thd=thd@entry=0x7f7aca41c000, parser_state=parser_state@entry=0x7f7afaec9730) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:6049 #11 0x0000000000c89330 in dispatch_command (thd=thd@entry=0x7f7aca41c000, com_data=com_data@entry=0x7f7afaec9dd0, command=COM_QUERY) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:1519 #12 0x0000000000c8a6ff in do_command (thd=thd@entry=0x7f7aca41c000) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:1039 #13 0x0000000000d52aa8 in handle_connection (arg=arg@entry=0x7f7af3fff2b0) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/conn_handler/connection_handler_per_thread.cc:312 #14 0x0000000000eb92fd in pfs_spawn_thread (arg=0x7f7ae9fff020) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/storage/perfschema/pfs.cc:2188 #15 0x00007f7ba4f71dc5 in start_thread () from /lib64/libpthread.so.0 #16 0x00007f7ba3a2474d in clone () from /lib64/libc.so.6 (gdb) p LOCK_plugin $4 = {m_mutex = {__data = {__lock = 2, __count = 0, __owner = 12820, __nusers = 1, __kind = 3, __spins = 82, __list = {__prev = 0x0, __next = 0x0}}, __size = "\002\000\000\000\000\000\000\000\024\062\000\000\001\000\000\000\003\000\000\000R", '\000' , __align = 2}, m_psi = 0x0} (gdb) f 9 #9 0x0000000000c820c2 in mysql_execute_command (thd=thd@entry=0x7f7aca41c000, first_level=first_level@entry=true) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:5270 5270 /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc: No such file or directory. (gdb) p thd->m_query_string $5 = {str = 0x7f7aca46a030 "INSTALL PLUGIN keyring_udf SONAME 'keyring_udf.so'", length = 50} (gdb) thread 5 [Switching to thread 5 (Thread 0x7f7afac4d700 (LWP 12820))] #0 0x00007f7ba4f74e24 in pthread_rwlock_rdlock () from /lib64/libpthread.so.0 (gdb) f 12 #12 0x0000000000c87be7 in parse_sql (thd=thd@entry=0x7f7ac4850000, parser_state=parser_state@entry=0x7f7afac4c730, creation_ctx=creation_ctx@entry=0x0) at /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc:7656 7656 in /data/home/tdengine/davie/latest/percona-server-5.7.17-11/sql/sql_parse.cc (gdb) p thd->m_query_string $6 = {str = 0x7f7ac4862030 "set session autocommit=1", length = 24}