|
I have this same issue. Our DB was MariaDB 10.1.21 and if we ran:
select table_schema, table_name, table_type, engine, row_format, table_rows, avg_row_length, data_length, max_data_length, index_length, data_free, create_time, update_time, create_options, table_collation from information_schema.tables;
The session would fail and the db would crash. I'll put mysqld.log info below on the crash.
We have since upgrade to 10.1.26 and now the DB does not crash anymore, but the sql still fails with:
Error Code: 2003. Received error: 2003 : Can't connect to MySQL server on 'rckdmdb002' (111 "Connection refused")
I find the Federated tables interesting, because the server this is crashing on has Federated X installed and we use it push certain changes out to its child federated databases. In addition, it is a mysql master to 2 slaves for one of its databases.
here is what the crash showed:
170905 13:31:16 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Server version: 10.1.21-MariaDB
key_buffer_size=524288000
read_buffer_size=524288000
max_used_connections=141
max_threads=1002
thread_count=128
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1026580559 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f3209770008
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f320a476208 thread_stack 0x48400
/mysql/current/bin/mysqld(my_print_stacktrace+0x2e)[0xc0a26e]
/mysql/current/bin/mysqld(handle_fatal_signal+0x4bf)[0x76880f]
/lib64/libpthread.so.0(+0xf710)[0x7f33547f8710]
/mysql/current/bin/mysqld(_Z21open_table_from_shareP3THDP11TABLE_SHAREPKcjjjP5TABLEb+0xc81)[0x667561]
/mysql/current/bin/mysqld(_Z10open_tableP3THDP10TABLE_LISTP18Open_table_context+0x8c4)[0x56c9f4]
/mysql/current/bin/mysqld(_Z11open_tablesP3THDRK14DDL_options_stPP10TABLE_LISTPjjP19Prelocking_strategy+0xe37)[0x56f347]
/mysql/current/bin/mysqld(_Z30open_normal_and_derived_tablesP3THDP10TABLE_LISTjj+0x63)[0x56fb73]
/mysql/current/bin/mysqld[0x61465f]
/mysql/current/bin/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x7f3)[0x61f793]
/mysql/current/bin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x2ee)[0x613f5e]
/mysql/current/bin/mysqld(_ZN4JOIN10exec_innerEv+0x908)[0x6099d8]
/mysql/current/bin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x1dc)[0x6085ec]
/mysql/current/bin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x250)[0x60c1e0]
/mysql/current/bin/mysqld[0x5aeee8]
/mysql/current/bin/mysqld(_Z21mysql_execute_commandP3THD+0x14b3)[0x5b3a63]
/mysql/current/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x34e)[0x5bbcee]
/mysql/current/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x237b)[0x5beceb]
/mysql/current/bin/mysqld(_Z10do_commandP3THD+0x157)[0x5befa7]
/mysql/current/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x183)[0x68eb73]
/mysql/current/bin/mysqld(handle_one_connection+0x42)[0x68ed82]
/lib64/libpthread.so.0(+0x79d1)[0x7f33547f09d1]
/lib64/libc.so.6(clone+0x6d)[0x7f335376f9dd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f321683b020): select CONSTRAINT_SCHEMA index_schema, CONSTRAINT_NAME index_name, TABLE_SCHEMA, table_name, column_name, ordinal_position, REFERENCED_TABLE_SCHEMA, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME from information_schema.KEY_COLUMN_USAGE
Connection ID (thread ID): 13585
Status: NOT_KILLED
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=off
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
170905 13:31:16 mysqld_safe Number of processes running now: 0
170905 13:31:16 mysqld_safe mysqld restarted
|