mysqld: /home/mysql/mariadb/storage/innobase/lock/lock0lock.cc:5994: bool lock_trx_has_expl_x_lock(const trx_t&, const dict_table_t&, page_id_t, ulint): Assertion `lock_rec_has_expl(LOCK_X | 1024U, g.cell(), id, heap_no, &trx)' failed. 220711 14:08:02 [ERROR] mysqld got signal 6 ; 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.8.3-MariaDB-debug key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=6 max_threads=153 thread_count=6 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 468121 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f91ac000db8 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 = 0x7f91f405ed98 thread_stack 0x49000 mysys/stacktrace.c:212(my_print_stacktrace)[0x558f7165af7e] sql/signal_handler.cc:226(handle_fatal_signal)[0x558f70da8bd0] ??:0(__restore_rt)[0x7f91f7ba63c0] ??:0(gsignal)[0x7f91f768f03b] ??:0(abort)[0x7f91f766e859] /lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7f91f766e729] ??:0(__assert_fail)[0x7f91f7680006] lock/lock0lock.cc:5993(lock_trx_has_expl_x_lock(trx_t const&, dict_table_t const&, page_id_t, unsigned long))[0x558f7126d6ad] row/row0upd.cc:2661(row_upd_clust_step(upd_node_t*, que_thr_t*))[0x558f713c33d5] row/row0upd.cc:2790(row_upd(upd_node_t*, que_thr_t*))[0x558f713c3b10] row/row0upd.cc:2935(row_upd_step(que_thr_t*))[0x558f713c410a] row/row0mysql.cc:1702(row_update_for_mysql(row_prebuilt_t*))[0x558f7137028a] handler/ha_innodb.cc:8582(ha_innobase::update_row(unsigned char const*, unsigned char const*))[0x558f711aca56] sql/handler.cc:7602(handler::ha_update_row(unsigned char const*, unsigned char const*))[0x558f70dc2dc5] sql/sql_update.cc:1088(mysql_update(THD*, TABLE_LIST*, List&, List&, Item*, unsigned int, st_order*, unsigned long long, bool, unsigned long long*, unsigned long long*))[0x558f70b3ccb7] sql/sql_parse.cc:4405(mysql_execute_command(THD*, bool))[0x558f709e954e] sql/sql_parse.cc:8027(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x558f709f57c2] sql/sql_parse.cc:1896(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x558f709e1cae] sql/sql_parse.cc:1407(do_command(THD*, bool))[0x558f709e068f] sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x558f70bb9df1] sql/sql_connect.cc:1314(handle_one_connection)[0x558f70bb9a81] perfschema/pfs.cc:2203(pfs_spawn_thread)[0x558f710ca123] ??:0(start_thread)[0x7f91f7b9a609] ??:0(clone)[0x7f91f776b163] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f91ac0140d0): update t_khn17c set wkey = 158, c_ci0ked = PI(), c_qdo5gb = t_khn17c.pkey where t_khn17c.pkey = t_khn17c.pkey Connection ID (thread ID): 377 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 unlimited unlimited bytes Max resident set unlimited unlimited bytes Max processes unlimited unlimited processes Max open files 1048576 1048576 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 63469 63469 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%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E