2022-09-21 15:21:10 0 [Warning] You need to use --log-bin to make --binlog-format work.
2022-09-21 15:21:10 0 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2022-09-21 15:21:10 0 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2022-09-21 15:21:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-09-21 15:21:10 0 [Note] InnoDB: Number of transaction pools: 1
2022-09-21 15:21:10 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-09-21 15:21:11 0 [Note] InnoDB: Using Linux native AIO
2022-09-21 15:21:11 0 [Note] InnoDB: Initializing buffer pool, total size = 3.906GiB, chunk size = 62.500MiB
2022-09-21 15:21:11 0 [Note] InnoDB: Completed initialization of buffer pool
2022-09-21 15:21:11 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2022-09-21 15:21:11 0 [Note] InnoDB: 128 rollback segments are active.
2022-09-21 15:21:11 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2022-09-21 15:21:11 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2022-09-21 15:21:11 0 [Note] InnoDB: log sequence number 328659002506; transaction id 243034488
2022-09-21 15:21:11 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-09-21 15:21:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-09-21 15:21:11 0 [ERROR] mariadbd: Plugin 'unix_socket' already installed
2022-09-21 15:21:11 0 [Note] Loaded 'metadata_lock_info.so' with offset 0x7ff41cdc9000
2022-09-21 15:21:11 0 [Warning] 'innodb-large-prefix' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:21:11 0 [Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:21:11 0 [Warning] 'innodb-large-prefix' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:21:11 0 [Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:21:11 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2022-09-21 15:21:11 0 [Note] Server socket created on IP: '0.0.0.0'.
2022-09-21 15:21:12 0 [Note] Reading of all Master_info entries succeeded
2022-09-21 15:21:12 0 [Note] Added new Master_info '' to hash table
2022-09-21 15:21:12 0 [Note] /usr/sbin/mariadbd: ready for connections.
Version: '10.9.3-MariaDB-1:10.9.3+maria~ubu2004-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : Start merge-sorting index `activity_user_time` (2 / 5), estimated cost : 7.0370
2022-09-21 15:22:30 82 [Note] InnoDB: Online DDL : merge-sorting has estimated 2 runs
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of  merge-sorting index `activity_user_time` (2 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start building index `activity_user_time` (2 / 5), estimated cost : 10.5556
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of building index `activity_user_time` (2 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start merge-sorting index `activity_filter_by` (3 / 5), estimated cost : 7.0370
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : merge-sorting has estimated 2 runs
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of  merge-sorting index `activity_filter_by` (3 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start building index `activity_filter_by` (3 / 5), estimated cost : 10.5556
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of building index `activity_filter_by` (3 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start merge-sorting index `activity_object` (4 / 5), estimated cost : 7.0370
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : merge-sorting has estimated 2 runs
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of  merge-sorting index `activity_object` (4 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start building index `activity_object` (4 / 5), estimated cost : 10.5556
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of building index `activity_object` (4 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start merge-sorting index `activity_filter` (5 / 5), estimated cost : 8.8889
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : merge-sorting has estimated 3 runs
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of  merge-sorting index `activity_filter` (5 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start building index `activity_filter` (5 / 5), estimated cost : 13.3333
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of building index `activity_filter` (5 / 5)
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : End of reading clustered index of the table and create temporary files
2022-09-21 15:22:31 82 [Note] InnoDB: Online DDL : Start reading clustered index of the table and create temporary files
2022-09-21 15:22:32 0x7ff3d40be700  InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.9.3/storage/innobase/page/page0zip.cc line 760
InnoDB: Failing assertion: i + PAGE_HEAP_NO_USER_LOW == n_heap
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mariadbd startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
InnoDB: about forcing recovery.
220921 15:22:32 [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.9.3-MariaDB-1:10.9.3+maria~ubu2004-log
key_buffer_size=268435456
read_buffer_size=131072
max_used_connections=2
max_threads=502
thread_count=2
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8564374 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7ff24c000c58
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 = 0x7ff3d40bdd98 thread_stack 0x30000
addr2line: DWARF error: section .debug_info is larger than its filesize! (0xc27b1e0 vs 0x7908f68)
??:0(my_print_stacktrace)[0x557675402b52]
??:0(handle_fatal_signal)[0x557674ed62b5]
??:0(__restore_rt)[0x7ff41cb3e420]
??:0(gsignal)[0x7ff41c32000b]
??:0(abort)[0x7ff41c2ff859]
addr2line: DWARF error: section .debug_info is larger than its filesize! (0xc27b1e0 vs 0x7908f68)
??:0(Wsrep_server_service::log_dummy_write_set(wsrep::client_state&, wsrep::ws_meta const&))[0x557674b0d0f9]
??:0(Wsrep_server_service::log_dummy_write_set(wsrep::client_state&, wsrep::ws_meta const&))[0x557674af8fa4]
??:0(std::pair<std::_Rb_tree_iterator<std::pair<unsigned long const, bool> >, bool> std::_Rb_tree<unsigned long, std::pair<unsigned long const, bool>, std::_Select1st<std::pair<unsigned long const, bool> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, bool> > >::_M_emplace_unique<unsigned long&, bool>(unsigned long&, bool&&))[0x5576752d9fe6]
??:0(std::pair<std::_Rb_tree_iterator<std::pair<unsigned long const, bool> >, bool> std::_Rb_tree<unsigned long, std::pair<unsigned long const, bool>, std::_Select1st<std::pair<unsigned long const, bool> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, bool> > >::_M_emplace_unique<unsigned long&, bool>(unsigned long&, bool&&))[0x5576752da3f4]
??:0(std::pair<std::_Rb_tree_iterator<std::pair<unsigned long const, bool> >, bool> std::_Rb_tree<unsigned long, std::pair<unsigned long const, bool>, std::_Select1st<std::pair<unsigned long const, bool> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, bool> > >::_M_emplace_unique<unsigned long&, bool>(unsigned long&, bool&&))[0x5576752d9923]
??:0(void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag))[0x55767525a82d]
??:0(void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag))[0x5576752639ed]
??:0(void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag))[0x5576752646d4]
??:0(void std::this_thread::sleep_for<long, std::ratio<1l, 1l> >(std::chrono::duration<long, std::ratio<1l, 1l> > const&))[0x5576751d0dff]
??:0(mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool, bool))[0x557674d433f6]
??:0(mysql_recreate_table(THD*, TABLE_LIST*, bool))[0x557674d4419f]
??:0(MDL_ticket::~MDL_ticket())[0x557674db5fcd]
??:0(fill_check_table_metadata_fields(THD*, List<Item>*))[0x557674db8844]
??:0(Sql_cmd_optimize_table::execute(THD*))[0x557674dba1b5]
??:0(mysql_execute_command(THD*, bool))[0x557674c899be]
??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x557674c795d7]
??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x557674c85825]
??:0(do_command(THD*, bool))[0x557674c87a7e]
??:0(do_handle_one_connection(CONNECT*, bool))[0x557674daa917]
??:0(handle_one_connection)[0x557674daac6d]
??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x5576750fec96]
??:0(start_thread)[0x7ff41cb32609]
??:0(clone)[0x7ff41c3fc133]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7ff24c0589a0): OPTIMIZE TABLE `oc_cards`

Connection ID (thread ID): 82
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        unlimited            unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             127942               127942               processes 
Max open files            32768                32768                files     
Max locked memory         8388608              8388608              bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       127942               127942               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: /var/spool/cores/core

Kernel version: Linux version 5.19.4-edge (github@pve-bullseye) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT_DYNAMIC PVE Edge 5.19.4-1 (2022-08-25)

2022-09-21 15:22:38 0 [Warning] You need to use --log-bin to make --binlog-format work.
2022-09-21 15:22:38 0 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2022-09-21 15:22:38 0 [Note] Using unique option prefix 'myisam-recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2022-09-21 15:22:38 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-09-21 15:22:38 0 [Note] InnoDB: Number of transaction pools: 1
2022-09-21 15:22:38 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-09-21 15:22:38 0 [Note] InnoDB: Using Linux native AIO
2022-09-21 15:22:38 0 [Note] InnoDB: Initializing buffer pool, total size = 3.906GiB, chunk size = 62.500MiB
2022-09-21 15:22:38 0 [Note] InnoDB: Completed initialization of buffer pool
2022-09-21 15:22:38 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2022-09-21 15:22:38 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=328659002490
2022-09-21 15:22:39 0 [Note] InnoDB: Starting final batch to recover 2526 pages from redo log.
2022-09-21 15:22:39 0 [Note] InnoDB: 128 rollback segments are active.
2022-09-21 15:22:39 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2022-09-21 15:22:39 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2022-09-21 15:22:39 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2022-09-21 15:22:39 0 [Note] InnoDB: log sequence number 328666180974; transaction id 243034882
2022-09-21 15:22:39 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-09-21 15:22:39 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-09-21 15:22:39 0 [ERROR] mariadbd: Plugin 'unix_socket' already installed
2022-09-21 15:22:39 0 [Note] Loaded 'metadata_lock_info.so' with offset 0x7f394f0ba000
2022-09-21 15:22:39 0 [Warning] 'innodb-large-prefix' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:22:39 0 [Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:22:39 0 [Warning] 'innodb-large-prefix' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:22:39 0 [Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-09-21 15:22:39 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2022-09-21 15:22:39 0 [Note] DDL_LOG: Crash recovery executed 1 entries
