mysqld: /home/mysql/mariadb/storage/innobase/lock/lock0lock.cc:6025: bool lock_trx_has_expl_x_lock(const trx_t&, const dict_table_t&, page_id_t, ulint): Assertion `lock_table_has(&trx, &table, LOCK_IX)' failed. 220907 19:17:31 [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.10.1-MariaDB-debug key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=4 max_threads=153 thread_count=4 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 468134 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x62b0001ab288 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 = 0x7fabdc45dbd0 thread_stack 0x100000 sanitizer_common/sanitizer_common_interceptors.inc:4022(__interceptor_backtrace.part.0)[0x7fac006a3d40] mysys/stacktrace.c:212(my_print_stacktrace)[0x56480f1146bb] sql/signal_handler.cc:236(handle_fatal_signal)[0x56480dcfdd04] ??:0(__restore_rt)[0x7fac00115420] ??:0(gsignal)[0x7fabffbfe00b] ??:0(abort)[0x7fabffbdd859] /lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7fabffbdd729] ??:0(__assert_fail)[0x7fabffbeefd6] lock/lock0lock.cc:6026(lock_trx_has_expl_x_lock(trx_t const&, dict_table_t const&, page_id_t, unsigned long))[0x56480e8a937f] row/row0upd.cc:2662(row_upd_clust_step(upd_node_t*, que_thr_t*))[0x56480eb5ab0e] row/row0upd.cc:2791(row_upd(upd_node_t*, que_thr_t*))[0x56480eb5ba52] row/row0upd.cc:2933(row_upd_step(que_thr_t*))[0x56480eb5c962] row/row0mysql.cc:1691(row_update_for_mysql(row_prebuilt_t*))[0x56480eab8e10] handler/ha_innodb.cc:8706(ha_innobase::delete_row(unsigned char const*))[0x56480e6f4c93] sql/handler.cc:7716(handler::ha_delete_row(unsigned char const*))[0x56480dd42e2a] sql/sql_delete.cc:281(TABLE::delete_row())[0x56480d32b732] sql/sql_delete.cc:842(mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List*, unsigned long long, unsigned long long, select_result*))[0x56480d3206b1] sql/sql_parse.cc:4805(mysql_execute_command(THD*, bool))[0x56480d41e2e7] sql/sql_parse.cc:8035(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x56480d434699] sql/sql_parse.cc:1896(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56480d40a773] sql/sql_parse.cc:1407(do_command(THD*, bool))[0x56480d4074f9] sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x56480d8c1130] sql/sql_connect.cc:1314(handle_one_connection)[0x56480d8c09bc] perfschema/pfs.cc:2203(pfs_spawn_thread)[0x56480e4f142a] ??:0(start_thread)[0x7fac00109609] ??:0(clone)[0x7fabffcda133] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x6290002da2a8): delete from t_ywo4_b where t_ywo4_b.c_hlsgr not in ( select ref_0.pkey as c0 from (t_yfrkzd as ref_0 inner join (select ref_1.wkey as c0 from t_yfrkzd as ref_1 ) as subq_0 on (ref_0.wkey = subq_0.c0 ))) Connection ID (thread ID): 11 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 0 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 514337 514337 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 Kernel version: Linux version 5.4.0-96-generic (buildd@lgw01-amd64-051) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 Aborted