210912 8:10:40 [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.6.4-MariaDB-1:10.6.4+maria~bionic-log key_buffer_size=5242880 read_buffer_size=4194304 max_used_connections=8 max_threads=65537 thread_count=7 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 536886540 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f0180000cf8 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 = 0x7f0324198d00 thread_stack 0x40000 ??:0(my_print_stacktrace)[0x5558cd96d41e] ??:0(handle_fatal_signal)[0x5558cd3c4b15] ??:0(__restore_rt)[0x7f033c78b980] ??:0(Item_field::fix_fields(THD*, Item**))[0x5558cd3eb508] ??:0(find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned long, char const*, char const*, char const*, List*, Item**, bool, bool, unsigned short*, bool, TABLE_LIST**))[0x5558cd144ee3] ??:0(find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, List*, Item**, find_item_error_report_type, bool, bool))[0x5558cd1453d7] ??:0(Item_field::fix_fields(THD*, Item**))[0x5558cd3eb488] ??:0(Item_func::fix_fields(THD*, Item**))[0x5558cd4291c0] ??:0(Item_func::fix_fields(THD*, Item**))[0x5558cd4291c0] ??:0(Item_sum_min_max::fix_fields(THD*, Item**))[0x5558cd48d189] ??:0(setup_fields(THD*, Bounds_checked_array, List&, enum_column_usage, List*, List*, bool))[0x5558cd146085] ??:0(JOIN::prepare(TABLE_LIST*, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5558cd1f4579] ??:0(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long long, bool))[0x5558cd24ca25] ??:0(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long long))[0x5558cd24faf4] ??:0(TABLE_LIST::find_derived_handler(THD*))[0x5558cd167d01] ??:0(mysql_handle_derived(LEX*, unsigned int))[0x5558cd16683f] ??:0(Multiupdate_prelocking_strategy::handle_end(THD*))[0x5558cd25c185] ??:0(open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*))[0x5558cd143b1c] ??:0(mysql_multi_update_prepare(THD*))[0x5558cd260458] ??:0(mysql_execute_command(THD*, bool))[0x5558cd1a4ddf] ??:0(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x5558cd1075e7] ??:0(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x5558cd10ed75] ??:0(sp_instr_stmt::execute(THD*, unsigned int*))[0x5558cd10f7a7] ??:0(sp_head::execute(THD*, bool))[0x5558cd10a99f] ??:0(sp_head::execute_trigger(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_grant_info*))[0x5558cd10b576] ??:0(Table_triggers_list::process_triggers(THD*, trg_event_type, trg_action_time_type, bool))[0x5558cd24651c] ??:0(mysql_update(THD*, TABLE_LIST*, List&, List&, Item*, unsigned int, st_order*, unsigned long long, bool, unsigned long long*, unsigned long long*))[0x5558cd25f620] ??:0(mysql_execute_command(THD*, bool))[0x5558cd1a5910] ??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x5558cd1abbe6] ??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x5558cd1a0c85] ??:0(do_command(THD*, bool))[0x5558cd19f90a] ??:0(tp_callback(TP_connection*))[0x5558cd348562] ??:0(get_event(worker_thread_t*, thread_group_t*, timespec*))[0x5558cd54da50] ??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x5558cd600224] ??:0(start_thread)[0x7f033c7806db] ??:0(clone)[0x7f033bb7e71f] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f00719db8d0): UPDATE fit_cat_rule AS cr LEFT JOIN ( SELECT individual_id, company_id, fit_cat_id, fit_capacity_id, fit_service_id, Min(IF(fit_test_id=4, COALESCE(ca.extension_date, co.extension), Null)) AS meq_extension, Min(IF(fit_test_id=5, COALESCE(ca.extension_date, co.extension), Null)) AS mo_extension, Min(IF(fit_test_id=6, COALESCE(ca.extension_date, co.extension), Null)) AS cms_extension, Min(IF(fit_test_id=7, COALESCE(ca.extension_date, co.extension), Null)) AS cob_extension, Min(IF(fit_test_id=9, COALESCE(ca.extension_date, co.extension), Null)) AS fpe_extension, Min(IF(fit_test_id=10, COALESCE(ca.extension_date, co.extension), Null)) AS re_extension, Min(IF(fit_test_id=11, COALESCE(ca.extension_date, co.extension), Null)) AS q_extension, MAX(IF(fit_test_id=4, exempted, 0)) AS meq_exempt, MAX(IF(fit_test_id=5, exempted, 0)) AS mo_exempt, MAX(IF(fit_test_id=6, exempted, 0)) AS cms_exempt, MAX(IF(fit_test_id=7, exempted, 0)) AS cob_exempt, MAX(IF(fit_test_id=9, exempted, 0)) AS fpe_exempt, MAX(IF(fit_test_id=10, exempted, 0)) AS re_exempt, MAX(IF(fit_test_id=11, exempted, 0)) AS q_exempt FROM ( SELECT cr.individual_id, cr.company_id, ec.fit_cat_id, ec.fit_capacity_id, ec.fit_service_id, cr.fit_test_id, ec.exempted, ec.extension_date FROM fit_ind_exemption AS cr INNER JOIN fit_ind_exemption_cat AS ec ON ec.fit_ind_exemption_id = cr.id WHERE cr.individual_id = New.individual_id AND cr.company_id = New.company_id ) AS ca LEFT JOIN ( SELECT cr.individual_id, cr.company_id, cr.fit_test_id, Min(IF(co.met IS Null OR co.met > Current_Date, co.deadline, Null)) AS extension /* Min(IF(fit_test_id=4 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS meq_extension, Min(IF(fit_test_id=5 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS mo_extension, Min(IF(fit_test_id=6 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS cms_extension, Min(IF(fit_test_id=7 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS cob_extension, Min(IF(fit_test_id=9 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS fpe_extension, Min(IF(fit_test_id=10 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS re_extension, Min(IF(fit_test_id=11 AND (co.met IS Null OR co.met > Current_Date), deadline, Null)) AS q_extension */ FROM fit_ind_exemption AS cr INNER JOIN fit_ind_extend_condition AS co ON co.fit_ind_exemption_id = cr.id WHERE cr.individual_id = New.individual_id AND cr.company_id = New.company_id GROUP BY cr.individual_id, company_id, fit_test_id ) AS co USING(individual_id, company_id, fit_test_id) GROUP BY individual_id, company_id, fit_cat_id, fit_capacity_id, fit_service_id ) AS cc USING(individual_id, company_id, fit_cat_id, fit_capacity_id, fit_service_id) SET cr.meq_exempt = COALESCE(cc.meq_exempt, 0), cr.mo_exempt = COALESCE(cc.mo_exempt, 0), cr.cms_exempt = COALESCE(cc.cms_exempt, 0), cr.cob_exempt = COALESCE(cc.cob_exempt, 0), cr.fpe_exempt = COALESCE(cc.fpe_exempt, 0), cr.re_exempt = COALESCE(cc.re_exempt, 0), cr.q_exempt = COALESCE(cc.q_exempt, 0), cr.meq_extension = cc.meq_extension, cr.mo_extension = cc.mo_extension, cr.cms_extension = cc.cms_extension, cr.cob_extension = cc.cob_extension, cr.fpe_extension = cc.fpe_extension, cr.re_extension = cc.re_extension, cr.q_extension = cc.q_extension WHERE cr.individual_id = New.individual_id AND cr.company_id = New.company_id Connection ID (thread ID): 102 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 /var/lib/mysql 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 513155 513155 processes Max open files 32768 32768 files Max locked memory 67108864 67108864 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 513155 513155 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: core