Details
Description
A user saw the following crash when executing EXPLAIN for a complex query that exceeds the 61 table join limit:
Nov 11 13:50:44 ip-172-30-0-32 mysqld: 161111 13:50:44 [ERROR] mysqld got signal 11 ;
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: This could be because you hit a bug. It is also possible that this binary
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: or one of the libraries it was linked against is corrupt, improperly built,
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: or misconfigured. This error can also be caused by malfunctioning hardware.
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: We will try our best to scrape up some info that will hopefully help
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: diagnose the problem, but since we have already crashed,
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: something is definitely wrong and this may fail.
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: Server version: 10.1.18-MariaDB
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: key_buffer_size=134217728
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: read_buffer_size=131072
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: max_used_connections=1
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: max_threads=153
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: thread_count=1
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: It is possible that mysqld could use up to
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467121 K bytes of memory
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: Hope that's ok; if not, decrease some variables in the equation.
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: Thread pointer: 0x0x7fdab1c0e008
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: Attempting backtrace. You can use the following information to find out
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: where mysqld died. If you see no messages after this, something went
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: terribly wrong...
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: stack_bottom = 0x7fdad8f9c130 thread_stack 0x48400
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7fdad9b46a6e]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(handle_fatal_signal+0x2d5)[0x7fdad966c8d5]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /lib64/libpthread.so.0(+0xf100)[0x7fdad8c87100]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_ZN10TABLE_LIST20fetch_number_of_rowsEv+0x30)[0x7fdad9599d70]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(+0x47df05)[0x7fdad9535f05]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x72f)[0x7fdad953e6af]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x2f)[0x7fdad9540faf]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x8f)[0x7fdad95410ef]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z19mysql_explain_unionP3THDP18st_select_lex_unitP13select_result+0x120)[0x7fdad9541dd0]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(+0x428e8b)[0x7fdad94e0e8b]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5f8f)[0x7fdad94ecfaf]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x352)[0x7fdad94f0952]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x25db)[0x7fdad94f3e2b]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z10do_commandP3THD+0x169)[0x7fdad94f46a9]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x18a)[0x7fdad95bb19a]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /usr/sbin/mysqld(handle_one_connection+0x40)[0x7fdad95bb370]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /lib64/libpthread.so.0(+0x7dc5)[0x7fdad8c7fdc5]
|
Nov 11 13:50:44 ip-172-30-0-32 mysqld: /lib64/libc.so.6(clone+0x6d)[0x7fdad70a21cd]
|
Attachments
Issue Links
- is duplicated by
-
MDEV-15632 [ERROR] mysqld got signal 11 - Service crash
-
- Closed
-
Reproducible on 5.5, 10.0, 10.1.
Could not reproduce on 10.2, MySQL 5.5-5.7.
5.5 96b62b55149a9297f32c3aad99ece613cc3f788f
#3 <signal handler called>
#4 0x00000000006d3e3c in TABLE_LIST::fetch_number_of_rows (this=0x7fa10e5ef000) at /data/src/5.5/sql/table.cc:6812
#5 0x000000000063a409 in make_join_statistics (join=0x7fa10e7b3ac0, tables_list=..., conds=0x7fa10e7f5938, keyuse_array=0x7fa10e7b3dd8) at /data/src/5.5/sql/sql_select.cc:3223
#6 0x000000000063337c in JOIN::optimize (this=0x7fa10e7b3ac0) at /data/src/5.5/sql/sql_select.cc:1229
#7 0x0000000000639d01 in mysql_select (thd=0x7fa10f674060, rref_pointer_array=0x7fa10f677ce0, tables=0x7fa10e5491f0, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748612, result=0x7fa10e5f1f30, unit=0x7fa10f677390, select_lex=0x7fa10f677a70) at /data/src/5.5/sql/sql_select.cc:3080
#8 0x000000000066af6f in mysql_explain_union (thd=0x7fa10f674060, unit=0x7fa10f677390, result=0x7fa10e5f1f30) at /data/src/5.5/sql/sql_select.cc:23063
#9 0x0000000000609a31 in execute_sqlcom_select (thd=0x7fa10f674060, all_tables=0x7fa10e5491f0) at /data/src/5.5/sql/sql_parse.cc:4660
#10 0x0000000000602f34 in mysql_execute_command (thd=0x7fa10f674060) at /data/src/5.5/sql/sql_parse.cc:2234
#11 0x000000000060c7ae in mysql_parse (thd=0x7fa10f674060, rawbuf=0x7fa10e548078 "EXPLAIN\nSELECT t0.*\nFROM t0\nJOIN t1\nON t1.f1 = t0.f0\nLEFT JOIN t2\nON t0.f0 = t2.f2\nLEFT JOIN t3\nON t0.f0 = t3.f3\nLEFT JOIN t4\nON t0.f0 = t4.f4\nLEFT JOIN t5\nON t4.f4 = t5.f5\nLEFT JOIN t6\nON t0.f0 = t6."..., length=2007, parser_state=0x7fa115930650) at /data/src/5.5/sql/sql_parse.cc:5934
#12 0x00000000006004c3 in dispatch_command (command=COM_QUERY, thd=0x7fa10f674060, packet=0x7fa11034e061 "", packet_length=2008) at /data/src/5.5/sql/sql_parse.cc:1079
#13 0x00000000005ff67d in do_command (thd=0x7fa10f674060) at /data/src/5.5/sql/sql_parse.cc:793
#14 0x0000000000701889 in do_handle_one_connection (thd_arg=0x7fa10f674060) at /data/src/5.5/sql/sql_connect.cc:1270
#15 0x0000000000701616 in handle_one_connection (arg=0x7fa10f674060) at /data/src/5.5/sql/sql_connect.cc:1186
#16 0x0000000000943ae5 in pfs_spawn_thread (arg=0x7fa11037a300) at /data/src/5.5/storage/perfschema/pfs.cc:1015
#17 0x00007fa11556d0a4 in start_thread (arg=0x7fa115931700) at pthread_create.c:309
#18 0x00007fa11399387d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Test case
EXPLAIN
;