210813 4:24:26 [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.5.9-MariaDB-debug key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=1 max_threads=153 thread_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467968 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x62b000093288 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 = 0x7f9be6183580 thread_stack 0x5fc00 /usr/local/mysql/bin/mariadbd(__interceptor_backtrace+0x5b)[0x8dd7db] :0(_mi_get_pack_key)[0x870c377] sql/item_windowfunc.h:636(Item_sum_cume_dist::reset_field())[0x33ede22] sigaction.c:0(__restore_rt)[0x7f9c071b03c0] sql/item_func.cc:0(Item_func::fix_fields(THD*, Item**))[0x3d16c1f] ??:0(Item_func_case::Item_func_case(Item_func_case const&))[0x3c749a7] sql/item_strfunc.h:368(Item_func_regexp_replace)[0x3ce600d] psi/mysql_file.h:1079(inline_mysql_file_open(unsigned int, char const*, unsigned int, char const*, int, unsigned long))[0x3920b7a] handler.cc:0(xid_to_str(char*, xid_t const&))[0x3920614] sql/field.h:3986(Field_string::is_var_string() const)[0x37494c7] client.c:0(native_password_auth_client)[0x3565731] ??:0(is_temporal_type_with_date(enum_field_types))[0x371a6bd] ??:0(ha_rollback_to_savepoint(THD*, st_savepoint*))[0x3838fc1] ??:0(merge_many_buff(Sort_param*, Bounds_checked_array, Merge_chunk*, unsigned int*, st_io_cache*))[0x37a41d9] client.c:0(native_password_auth_client)[0x3565b1f] sql_prepare.cc:0(mysql_test_show_slave_status(Prepared_statement*, bool))[0x1bd55b7] sql/sql_base.cc:6940(mark_common_columns(THD*, TABLE_LIST*, TABLE_LIST*, List*, unsigned int*))[0x1401033] sql_prepare.cc:0(mysql_test_delete(Prepared_statement*, TABLE_LIST*))[0x1bccd73] ??:0(change_master(THD*, Master_info*, bool*))[0x1c59c00] sql_prepare.cc:0(mysql_test_show_create_table(Prepared_statement*, TABLE_LIST*))[0x1bd2451] sql/sql_prepare.cc:1980(mysql_test_show_binlog_status(Prepared_statement*))[0x1bd5a9e] sql/item_func.cc:360(Item_func::fix_fields(THD*, Item**))[0x3d16587] ??:0(Item_func_case::Item_func_case(Item_func_case const&))[0x3c749a7] sql/sql_parse.cc:4452(mysql_execute_command(THD*))[0x1a015b9] ??:0(mysql_execute_command(THD*))[0x19de60b] sql/item.h:462(Settable_routine_parameter)[0x191864e] ??:0(Type_cast_attributes::Type_cast_attributes(char const*, char const*, charset_info_st const*))[0x1932e79] sql/table.h:2058(vers_select_conds_t::is_set() const)[0x18f8028] ??:0(DTCollation::DTCollation(charset_info_st const*))[0x1414fa9] sql_servers.cc:0(insert_server_record(TABLE*, st_federated_server*))[0x29f5f3e] sql/sql_tvc.h:50(table_value_constr)[0x1911d12] ??:0(Type_cast_attributes::Type_cast_attributes(char const*, char const*, charset_info_st const*))[0x1932e79] sql/table.h:2058(vers_select_conds_t::is_set() const)[0x18f8028] ??:0(DTCollation::DTCollation(charset_info_st const*))[0x1414fa9] sql_servers.cc:0(insert_server_record(TABLE*, st_federated_server*))[0x29f5f3e] sql/sql_tvc.h:50(table_value_constr)[0x1911d12] ??:0(Type_cast_attributes::Type_cast_attributes(char const*, char const*, charset_info_st const*))[0x1932e79] sql/table.h:2058(vers_select_conds_t::is_set() const)[0x18f8028] ??:0(Lex_trim_st::make_item_func_trim_std(THD*) const)[0x18a8afe] ??:0(LEX::make_item_func_substr(THD*, Item*, Item*))[0x18a5a5d] ??:0(mysql_upgrade_db(THD*, st_mysql_const_lex_string const*))[0x164cc11] sql/sql_lex.h:1985(Query_tables_list::set_stmt_unsafe(Query_tables_list::enum_binlog_stmt_unsafe))[0x15f3b55] sql/sql_class.cc:5886(start_new_trans)[0x15a9fad] ??:0(open_purge_table(THD*, char const*, unsigned long, char const*, unsigned long))[0x1591329] sql/sql_class.cc:6284(THD::decide_logging_format(TABLE_LIST*))[0x15b2502] ??:0(TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long, unsigned char const*, unsigned long))[0x262b03d] ??:0(TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long, unsigned char const*, unsigned long))[0x26294fd] :0(maria_repair)[0x5608773] nptl/pthread_create.c:478(start_thread)[0x7f9c071a4609] ??:0(clone)[0x7f9c06428293] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b0000772a8): WITH jennifer_1 AS (select distinct case when ref_1.c_l2i8lidek not in ( select ref_5.c_l2i8lidek as c0 from t_ykc as ref_5 ) then ref_1.c_l2i8lidek else ref_1.c_l2i8lidek end as c0 from t_ykc as ref_1 where ((select c_l2i8lidek from t_ykc order by c_l2i8lidek limit 1 offset 5) in ( select ref_2.c_l2i8lidek as c0 from (t_ykc as ref_2 cross join t_ykc as ref_3 ) )) ), jennifer_2 AS (select distinct ref_8.c_l2i8lidek as c0, (select c_l2i8lidek from t_ykc order by c_l2i8lidek limit 1 offset 3) as c1, ref_8.c_l2i8lidek as c2, ref_8.c_l2i8lidek as c3, ref_8.c_l2i8lidek as c4, cast(coalesce(ref_8.c_l2i8lidek, ref_8.c_l2i8lidek) as SIGNED) as c5 from t_ykc as ref_8 ), jennifer_3 AS (select ((select c_l2i8lidek from t_ykc order by c_l2i8lidek limit 1 offset 1) * subq_0.c0) as c0, (subq_0.c0 < subq_0.c0) as c1, subq_0.c0 as c5, subq_0.c0 as c6, LAST_VALUE( cast(subq_0.c0 as SIGNED)) over (partition by subq_0.c0 order by subq_0.c0) as c10, (subq_0.c0 + subq_0.c0) as c12 from (select ref_9.c_l2i8lidek as c0, ref_9.c_l2i8lidek as c1 from t_ykc as ref_9 ) as subq_0 ) select distinct case when ref_10.c1 >= ( select ref_10.c5 >= ( select distinct ref_10.c10 as c0 from jennifer_2 as ref_12 where ref_11.c0 < ( select ref_11.c0 as c0 from jennifer_1 as ref_16 where 1=1) window a as ( partition by (select c0 from jennifer_1 order by c0 limit 1 offset 3) order by ref_11.c0 desc) ) as c0 from t_ued0ue as ref_11 ) then ref_10.c6 else ref_10.c6 end as c0 from jennifer_3 as ref_10 Connection ID (thread ID): 12 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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains information that should help you find out what is causing the crash. Writing a core file... Working directory at /usr/local/mysql/data Resource Limits: Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 79615 79615 processes Max open files 1048576 1048576 files Max locked memory 67108864 67108864 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 79615 79615 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E 210813 04:24:27 mysqld_safe Number of processes running now: 0 210813 04:24:27 mysqld_safe mysqld restarted