ariadbd: /home/jgagne/sandboxes/compile/mariadb-10.6.12/storage/innobase/btr/btr0cur.cc:3915: dberr_t btr_cur_pessimistic_update(ulint, btr_cur_t*, rec_offs**, mem_heap_t**, mem_heap_t*, big_rec_t**, upd_t*, ulint, que_thr_t*, trx_id_t, mtr_t*): Assertion `flags & BTR_KEEP_POS_FLAG' failed. 230608 17:50:33 [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.6.12-MariaDB-debug source revision: 4c79e15cc3716f69c044d4287ad2160da8101cdc 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 = 468092 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7fffd8004a48 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 = 0x7ffff0bb7ad8 thread_stack 0x49000 mysys/stacktrace.c:212(my_print_stacktrace)[0x555556af85e9] sql/signal_handler.cc:238(handle_fatal_signal)[0x55555624624b] ??:0(__restore_rt)[0x7ffff6a32cf0] :0(__GI_raise)[0x7ffff5b75aff] :0(__GI_abort)[0x7ffff5b48ea5] ??:0(_nl_load_domain.cold.0)[0x7ffff5b48d79] :0(__GI___assert_fail)[0x7ffff5b6e456] btr/btr0cur.cc:3919(btr_cur_pessimistic_update(unsigned long, btr_cur_t*, unsigned short**, mem_block_info_t**, mem_block_info_t*, big_rec_t**, upd_t*, unsigned long, que_thr_t*, unsigned long, mtr_t*))[0x55555691629a] row/row0umod.cc:122(row_undo_mod_clust_low(undo_node_t*, unsigned short**, mem_block_info_t**, mem_block_info_t*, unsigned char*, que_thr_t*, mtr_t*, btr_latch_mode))[0x555556a45b6c] row/row0umod.cc:293(row_undo_mod_clust(undo_node_t*, que_thr_t*))[0x555556a46654] row/row0umod.cc:1250(row_undo_mod(undo_node_t*, que_thr_t*))[0x555556a499ba] row/row0undo.cc:405(row_undo(undo_node_t*, que_thr_t*))[0x5555568675ac] row/row0undo.cc:452(row_undo_step(que_thr_t*))[0x5555568677d0] que/que0que.cc:595(que_thr_step(que_thr_t*))[0x5555567b6e96] que/que0que.cc:653(que_run_threads_low(que_thr_t*))[0x5555567b7126] que/que0que.cc:675(que_run_threads(que_thr_t*))[0x5555567b723a] trx/trx0roll.cc:128(trx_t::rollback_low(trx_savept_t*))[0x5555568b6d20] trx/trx0roll.cc:198(trx_rollback_for_mysql_low(trx_t*))[0x5555568b3d1d] trx/trx0roll.cc:231(trx_rollback_for_mysql(trx_t*))[0x5555568b409d] handler/ha_innodb.cc:4696(innobase_rollback(handlerton*, THD*, bool))[0x555556659951] sql/handler.cc:2199(ha_rollback_trans(THD*, bool))[0x55555624da68] sql/transaction.cc:372(trans_rollback(THD*))[0x555556088743] sql/sql_parse.cc:5662(mysql_execute_command(THD*, bool))[0x555555ebedbb] sql/sql_parse.cc:8021(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x555555ec61b9] sql/sql_parse.cc:1898(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x555555eb2714] sql/sql_parse.cc:1409(do_command(THD*, bool))[0x555555eb1000] sql/sql_connect.cc:1416(do_handle_one_connection(CONNECT*, bool))[0x55555606c67c] sql/sql_connect.cc:1320(handle_one_connection)[0x55555606c3de] perfschema/pfs.cc:2203(pfs_spawn_thread)[0x555556586083] ??:0(start_thread)[0x7ffff6a281ca] :0(__GI___clone)[0x7ffff5b60e73] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7fffd801b790): rollback Connection ID (thread ID): 4 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 /mnt/jgagne_sandboxes/msb_mariadb_10_6_12/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 4096 4096 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 253022 253022 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/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e Kernel version: Linux version 5.4.141-hs26.el8.x86_64 (root@default-generic-cluster25n2f) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-13) (GCC)) #1 SMP Tue Jul 12 04:02:56 UTC 2022