210813 4:35:08 [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=2 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: 0x62b00009a288 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 = 0x7fd68731c580 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)[0x7fd6b27d43c0] sql/sql_show.cc:9239(__cxx_global_var_init.727)[0xb1fe25] sql/field.cc:5439(Field_timestamp::get_date(st_mysql_time*, date_mode_t))[0x3635441] ??:0(Sys_var_rpl_filter::Sys_var_rpl_filter(char const*, int, char const*, privilege_t))[0x2bb6638] sql/field.cc:5442(Field_timestamp::get_date(st_mysql_time*, date_mode_t))[0x3635a14] sql/create_options.cc:511(engine_options_differ(void*, void*, st_ha_create_table_option*))[0x2cfe7fe] ??:0(parse_engine_table_options(THD*, handlerton*, TABLE_SHARE*))[0x2cfd76f] ??:0(engine_table_options_frm_length(engine_option_value*, List&, unsigned int, st_key*))[0x2cfff9c] ??:0(engine_option_value::frm_image(unsigned char*))[0x2d00652] ??:0(merge_engine_table_options(engine_option_value*, engine_option_value*, st_mem_root*))[0x2d06049] ??:0(Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*))[0x1b70665] ??:0(mysql_execute_command(THD*))[0x1a034f8] ??:0(mysqld_stmt_fetch(THD*, char*, unsigned int))[0x1b72787] ??:0(check_access(THD*, privilege_t, char const*, privilege_t*, st_grant_internal_info*, bool, bool))[0x1a476d6] ??:0(mysql_execute_command(THD*))[0x1a3b7ec] ??:0(mysql_execute_command(THD*))[0x1a307cb] sql/sql_lex.cc:9264(Lex_trim_st::make_item_func_trim_std(THD*) const)[0x18a93af] ??: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)[0x7fd6b27c8609] ??:0(clone)[0x7fd6b1a4c293] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b0000a12a8): select case when LAST_VALUE( cast(77.22 as SIGNED)) over (partition by ref_0.c_l2nwhnnh5 order by ref_0.c_l2nwhnnh5,ref_0.c_l2nwhnnh5) not in ( select 62.4 as c0 from t_ykc as ref_1 where 0<>0) then ref_0.c_l2nwhnnh5 else ref_0.c_l2nwhnnh5 end as c0, ref_0.c_l2nwhnnh5 as c1, (select c_l2nwhnnh5 from t_ykc order by c_l2nwhnnh5 limit 1 offset 4) as c2, case when ref_0.c_l2nwhnnh5 not in ( select ref_2.c_l2nwhnnh5 as c0 from (t_ykc as ref_2 inner join (t_ykc as ref_3 cross join t_ykc as ref_4 ) on (((99 between ref_2.c_l2nwhnnh5 and 44) and (1=1) AND ref_3.c_i3w65h8 <> ref_3.c_i3w65h8) and (1=1))) where ref_2.c_l2nwhnnh5 between ref_2.c_i3w65h8 and ref_3.c_l2nwhnnh5) then ref_0.c_l2nwhnnh5 else ref_0.c_l2nwhnnh5 end as c3, (select count(c_l2nwhnnh5) from t_ykc) as c4, cast(nullif(11, ref_0.c_l2nwhnnh5) as SIGNED) as c5, ref_0.c_l2nwhnnh5 as c6, ref_0.c_l2nwhnnh5 as c7, ref_0.c_l2nwhnnh5 as c8, ref_0.c_l2nwhnnh5 as c9, ref_0.c_l2nwhnnh5 as c10 from t_ykc as ref_0 where (ref_0.c_l2nwhnnh5 <= (select min(c_l2nwhnnh5) from t_ykc) ) is not NULL Connection ID (thread ID): 7 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:35:09 mysqld_safe Number of processes running now: 0 210813 04:35:09 mysqld_safe mysqld restarted