170913 17:18:43 [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.2.8-MariaDB-10.2.8+maria~stretch-log key_buffer_size=134217728 read_buffer_size=2097152 max_used_connections=2 max_threads=201 thread_count=9 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1368152 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7fb48c0008c8 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 = 0x7fb536673c48 thread_stack 0x30000 SQLDriverConnect:0(SQLDriverConnect: [unixODBC][Oracle][ODBC][Ora]ORA-12541: TNS:no listener)[0x555cc0efe07e] /usr/sbin/mysqld(handle_fatal_signal+0x3cd)[0x555cc096617d] /lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7fb65b4760c0] /usr/sbin/mysqld(_Z13rr_unlock_rowP13st_join_table+0xb)[0x555cc07f68db] /usr/sbin/mysqld(+0x4e6f2f)[0x555cc07fbf2f] /usr/sbin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x12d)[0x555cc080444d] /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xad8)[0x555cc0822eb8] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x555cc0823053] /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xeb)[0x555cc082319b] /usr/sbin/mysqld(_Z18mysql_derived_fillP3THDP3LEXP10TABLE_LIST+0x101)[0x555cc07a9061] /usr/sbin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x27b)[0x555cc07a8d9b] /usr/sbin/mysqld(_ZN13st_join_table12preread_initEv+0xe0)[0x555cc0804310] /usr/sbin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x350)[0x555cc0804670] /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xad8)[0x555cc0822eb8] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x555cc0823053] /usr/sbin/mysqld(_ZN18st_select_lex_unit4execEv+0x353)[0x555cc0861773] /usr/sbin/mysqld(_Z11mysql_unionP3THDP3LEXP13select_resultP18st_select_lex_unitm+0x2d)[0x555cc0864f0d] /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x59)[0x555cc08239f9] /usr/sbin/mysqld(+0x4b0c1e)[0x555cc07c5c1e] /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x61c7)[0x555cc07d26f7] /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x28a)[0x555cc07d522a] /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1fb6)[0x555cc07d8086] /usr/sbin/mysqld(_Z10do_commandP3THD+0x167)[0x555cc07d89c7] /usr/sbin/mysqld(_Z11tp_callbackP13TP_connection+0x11f)[0x555cc08dc3bf] /usr/sbin/mysqld(+0x6293c8)[0x555cc093e3c8] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7494)[0x7fb65b46c494] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fb659753aff] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7fb48c0112d0): with dt_e as ( select ss.ssa_code, ss.ssa_name, o.site_id, vendor, bts_tech, bts_down_ts, sum(down_time) from a_bts_down_old o left join b_site si on o.site_id = si.site_id left join b_ssa ss on si.ssa_code = ss.ssa_code WHERE vendor = 'E' And alarm_element = 'S' AND alarm_type = 'S' and bts_down_ts >= '2017-09-12' and bts_up_ts <= '2017-09-13' GROUP BY ssa_code, ssa_name, site_id, vendor, bts_tech, bts_down_ts HAVING COUNT(*) >= 2 ), dt_n as ( SELECT ss.ssa_code, ss.ssa_name, o.site_id, vendor, bts_tech, bts_down_ts, SUM(down_time) FROM a_bts_down_old o LEFT JOIN b_site si ON o.site_id = si.site_id LEFT JOIN b_ssa ss ON si.ssa_code = ss.ssa_code WHERE vendor = 'N' AND alarm_element = 'B' AND alarm_type = 'S' AND bts_down_ts >= '2017-09-12' AND bts_up_ts <= '2017-09-13' GROUP BY ssa_code, ssa_name, site_id, vendor, bts_tech, bts_down_ts ) select * from dt_eric union all select * from dt_nokia Connection ID (thread ID): 13 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=on,mrr_cost_based=on,mrr_sort_keys=on,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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on 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.