210820 10:49:04 mysqld_safe Starting mariadbd daemon with databases from /home/przemek/sandboxes/msb_10_6_4/data 2021-08-20 10:49:04 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd (server 10.6.4-MariaDB) starting as process 44075 ... 2021-08-20 10:49:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-08-20 10:49:04 0 [Note] InnoDB: Number of pools: 1 2021-08-20 10:49:04 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-08-20 10:49:04 0 [Note] InnoDB: Using Linux native AIO 2021-08-20 10:49:04 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-08-20 10:49:04 0 [Note] InnoDB: Completed initialization of buffer pool 2021-08-20 10:49:04 0 [Note] InnoDB: 128 rollback segments are active. 2021-08-20 10:49:04 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-08-20 10:49:04 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-08-20 10:49:04 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-08-20 10:49:04 0 [Note] InnoDB: 10.6.4 started; log sequence number 42161; transaction id 14 2021-08-20 10:49:04 0 [Note] InnoDB: Loading buffer pool(s) from /data/sandboxes/msb_10_6_4/data/ib_buffer_pool 2021-08-20 10:49:04 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-08-20 10:49:04 0 [Note] Server socket created on IP: '127.0.0.1'. 2021-08-20 10:49:04 0 [Note] InnoDB: Buffer pool(s) load completed at 210820 10:49:04 2021-08-20 10:49:04 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd: ready for connections. Version: '10.6.4-MariaDB' socket: '/tmp/mysql_sandbox10604.sock' port: 10604 MariaDB Server 210820 10:49:55 [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 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 = 467956 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f5310000c58 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 = 0x7f536811ad60 thread_stack 0x49000 mysys/stacktrace.c:213(my_print_stacktrace)[0x56077025999e] sql/signal_handler.cc:225(handle_fatal_signal)[0x56076fc2b1d7] sigaction.c:0(__restore_rt)[0x7f536b5b43c0] sql/sql_select.cc:27088(st_join_table::save_explain_data(Explain_table_access*, unsigned long long, bool, st_join_table*))[0x56076fa5587b] sql/sql_select.cc:27647(JOIN::save_explain_data_intern(Explain_query*, bool, bool, bool, char const*))[0x56076fa5740b] sql/sql_select.cc:4475(JOIN::save_explain_data(Explain_query*, bool, bool, bool, bool))[0x56076fa57564] sql/sql_select.cc:1758(JOIN::build_explain())[0x56076fa577bc] sql/sql_select.cc:1815(JOIN::optimize())[0x56076fa6bf91] sql/sql_select.cc:4979(mysql_select(THD*, TABLE_LIST*, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56076fa6c098] sql/sql_select.cc:557(handle_select(THD*, LEX*, select_result*, unsigned long))[0x56076fa6c9b4] sql/sql_parse.cc:6257(execute_sqlcom_select(THD*, TABLE_LIST*))[0x56076f8d40aa] sql/sql_parse.cc:3946(mysql_execute_command(THD*, bool))[0x56076fa10612] sql/sql_parse.cc:8031(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x56076fa12a6b] sql/sql_parse.cc:1955(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56076fa14cd7] sql/sql_parse.cc:1406(do_command(THD*, bool))[0x56076fa16373] sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x56076fb0af97] sql/sql_connect.cc:1318(handle_one_connection)[0x56076fb0b234] perfschema/pfs.cc:2204(pfs_spawn_thread)[0x56076fe928d2] nptl/pthread_create.c:478(start_thread)[0x7f536b5a8609] ??:0(clone)[0x7f536b196293] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f5310010840): SELECT COUNT(*) FROM mycrash WHERE (((p = 'foo' AND er != 4) OR er = 4 )) AND ((es >= 4)) limit 1 Connection ID (thread ID): 5 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 /data/sandboxes/msb_10_6_4/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 127569 127569 processes Max open files 32190 32190 files Max locked memory 67108864 67108864 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 127569 127569 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 210820 10:49:55 mysqld_safe Number of processes running now: 0 210820 10:49:55 mysqld_safe mysqld restarted 2021-08-20 10:49:55 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd (server 10.6.4-MariaDB) starting as process 44244 ... 2021-08-20 10:49:55 0 [Note] mariadbd: Aria engine: starting recovery recovered pages: 0% 14% 25% 41% 53% 68% 79% 90% 100% (0.0 seconds); tables to flush: 2 1 0 (0.0 seconds); 2021-08-20 10:49:55 0 [Note] mariadbd: Aria engine: recovery done 2021-08-20 10:49:55 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-08-20 10:49:55 0 [Note] InnoDB: Number of pools: 1 2021-08-20 10:49:55 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-08-20 10:49:55 0 [Note] InnoDB: Using Linux native AIO 2021-08-20 10:49:55 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-08-20 10:49:55 0 [Note] InnoDB: Completed initialization of buffer pool 2021-08-20 10:49:55 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=42161,42161 2021-08-20 10:49:55 0 [Note] InnoDB: Starting final batch to recover 137 pages from redo log. 2021-08-20 10:49:56 0 [Note] InnoDB: 128 rollback segments are active. 2021-08-20 10:49:56 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1" 2021-08-20 10:49:56 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-08-20 10:49:56 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-08-20 10:49:56 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-08-20 10:49:56 0 [Note] InnoDB: 10.6.4 started; log sequence number 1621442; transaction id 27 2021-08-20 10:49:56 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-08-20 10:49:56 0 [Note] InnoDB: Loading buffer pool(s) from /data/sandboxes/msb_10_6_4/data/ib_buffer_pool 2021-08-20 10:49:56 0 [Note] Server socket created on IP: '127.0.0.1'. 2021-08-20 10:49:56 0 [Note] InnoDB: Buffer pool(s) load completed at 210820 10:49:56 2021-08-20 10:49:56 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd: ready for connections. Version: '10.6.4-MariaDB' socket: '/tmp/mysql_sandbox10604.sock' port: 10604 MariaDB Server 210820 10:51:26 [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 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 = 467956 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7fe73000a288 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 = 0x7fe764086d60 thread_stack 0x49000 mysys/stacktrace.c:213(my_print_stacktrace)[0x56309fc5699e] sql/signal_handler.cc:225(handle_fatal_signal)[0x56309f6281d7] sigaction.c:0(__restore_rt)[0x7fe767d213c0] sql/sql_select.cc:27088(st_join_table::save_explain_data(Explain_table_access*, unsigned long long, bool, st_join_table*))[0x56309f45287b] sql/sql_select.cc:27647(JOIN::save_explain_data_intern(Explain_query*, bool, bool, bool, char const*))[0x56309f45440b] sql/sql_select.cc:4475(JOIN::save_explain_data(Explain_query*, bool, bool, bool, bool))[0x56309f454564] sql/sql_select.cc:1758(JOIN::build_explain())[0x56309f4547bc] sql/sql_select.cc:1815(JOIN::optimize())[0x56309f468f91] sql/sql_select.cc:4979(mysql_select(THD*, TABLE_LIST*, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56309f469098] sql/sql_select.cc:27780(mysql_explain_union(THD*, st_select_lex_unit*, select_result*))[0x56309f469c12] sql/sql_parse.cc:6198(execute_sqlcom_select(THD*, TABLE_LIST*))[0x56309f2d0e4e] sql/sql_parse.cc:3946(mysql_execute_command(THD*, bool))[0x56309f40d612] sql/sql_parse.cc:8031(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x56309f40fa6b] sql/sql_parse.cc:1955(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56309f411cd7] sql/sql_parse.cc:1406(do_command(THD*, bool))[0x56309f413373] sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x56309f507f97] sql/sql_connect.cc:1318(handle_one_connection)[0x56309f508234] perfschema/pfs.cc:2204(pfs_spawn_thread)[0x56309f88f8d2] nptl/pthread_create.c:478(start_thread)[0x7fe767d15609] ??:0(clone)[0x7fe767903293] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7fe73001b7c0): EXPLAIN SELECT COUNT(*) FROM mycrash WHERE (((p = 'foo' AND er != 4) OR er = 4 )) AND ((es >= 4)) limit 1 Connection ID (thread ID): 3 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 /data/sandboxes/msb_10_6_4/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 127569 127569 processes Max open files 32190 32190 files Max locked memory 67108864 67108864 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 127569 127569 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 210820 10:51:27 mysqld_safe Number of processes running now: 0 210820 10:51:27 mysqld_safe mysqld restarted 2021-08-20 10:51:27 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd (server 10.6.4-MariaDB) starting as process 44648 ... 2021-08-20 10:51:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-08-20 10:51:27 0 [Note] InnoDB: Number of pools: 1 2021-08-20 10:51:27 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-08-20 10:51:27 0 [Note] InnoDB: Using Linux native AIO 2021-08-20 10:51:27 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-08-20 10:51:27 0 [Note] InnoDB: Completed initialization of buffer pool 2021-08-20 10:51:27 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=42161,42161 2021-08-20 10:51:27 0 [Note] InnoDB: Starting final batch to recover 138 pages from redo log. 2021-08-20 10:51:27 0 [Note] InnoDB: 128 rollback segments are active. 2021-08-20 10:51:27 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1" 2021-08-20 10:51:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-08-20 10:51:27 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-08-20 10:51:27 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-08-20 10:51:27 0 [Note] InnoDB: 10.6.4 started; log sequence number 1621538; transaction id 27 2021-08-20 10:51:27 0 [Note] InnoDB: Loading buffer pool(s) from /data/sandboxes/msb_10_6_4/data/ib_buffer_pool 2021-08-20 10:51:27 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-08-20 10:51:27 0 [Note] Server socket created on IP: '127.0.0.1'. 2021-08-20 10:51:27 0 [Note] InnoDB: Buffer pool(s) load completed at 210820 10:51:27 2021-08-20 10:51:27 0 [Note] /home/przemek/opt/mysql/10.6.4/bin/mariadbd: ready for connections. Version: '10.6.4-MariaDB' socket: '/tmp/mysql_sandbox10604.sock' port: 10604 MariaDB Server