2022-05-12 11:01:13 0 [Note] InnoDB: Using Linux native AIO 2022-05-12 11:01:13 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2022-05-12 11:01:13 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-05-12 11:01:13 0 [Note] InnoDB: Uses event mutexes 2022-05-12 11:01:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2022-05-12 11:01:13 0 [Note] InnoDB: Number of pools: 1 2022-05-12 11:01:13 0 [Note] InnoDB: Using SSE2 crc32 instructions 2022-05-12 11:01:13 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2022-05-12 11:01:13 0 [Note] InnoDB: Completed initialization of buffer pool 2022-05-12 11:01:13 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2022-05-12 11:01:13 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=4049330 2022-05-12 11:01:13 0 [Note] InnoDB: Starting final batch to recover 12 pages from redo log. 2022-05-12 11:01:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2022-05-12 11:01:14 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2022-05-12 11:01:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2022-05-12 11:01:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2022-05-12 11:01:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2022-05-12 11:01:14 0 [Note] InnoDB: 10.3.35 started; log sequence number 4056633; transaction id 7353 2022-05-12 11:01:14 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2022-05-12 11:01:14 0 [Note] InnoDB: Buffer pool(s) load completed at 220512 11:01:14 2022-05-12 11:01:14 0 [Note] Plugin 'FEEDBACK' is disabled. 2022-05-12 11:01:14 0 [Note] Recovering after a crash using tc.log 2022-05-12 11:01:14 0 [Note] Starting crash recovery... 2022-05-12 11:01:14 0 [Note] Crash recovery finished. 2022-05-12 11:01:14 0 [Note] Server socket created on IP: '::'. 2022-05-12 11:01:14 0 [Note] Reading of all Master_info entries succeeded 2022-05-12 11:01:14 0 [Note] Added new Master_info '' to hash table 2022-05-12 11:01:14 0 [Note] /usr/local/mysql/bin/mysqld: ready for connections. Version: '10.3.35-MariaDB-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution mysqld: /home/wsh/test/database_fuzz/test_MariaDB/server_10.3/sql/item_subselect.cc:766: virtual bool Item_subselect::exec(): Assertion `!eliminated' failed. 220512 11:01:16 [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.3.35-MariaDB-debug key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=1 max_threads=2 thread_count=6 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 138937 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x62a0000a8270 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 = 0x7ffe2940f010 thread_stack 0x5fc00 /usr/lib/x86_64-linux-gnu/libasan.so.4(+0x558c0)[0x7f6ff23788c0] mysys/stacktrace.c:174(my_print_stacktrace)[0x55d27cbb0ab2] sql/signal_handler.cc:221(handle_fatal_signal)[0x55d27b6f45dc] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f6fef622980] linux/raise.c:51(__GI_raise)[0x7f6fef25de87] stdlib/abort.c:81(__GI_abort)[0x7f6fef25f7f1] assert/assert.c:89(__assert_fail_base)[0x7f6fef24f3fa] /lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7f6fef24f472] sql/item_subselect.cc:768(Item_subselect::exec())[0x55d27b920422] sql/item_subselect.cc:1394(Item_singlerow_subselect::val_real())[0x55d27b9265b7] sql/item_func.cc:1456(Item_func_mul::real_op())[0x55d27b84cef8] sql/item_func.h:513(Item_func_hybrid_field_type::val_real_from_real_op())[0x55d27b4a0532] sql/sql_type.cc:3589(Type_handler_real_result::Item_func_hybrid_field_type_val_real(Item_func_hybrid_field_type*) const)[0x55d27b48abbc] sql/item_func.h:567(Item_func_hybrid_field_type::val_real())[0x55d27af0eb2f] sql/item.cc:8638(Item_direct_ref::val_real())[0x55d27b7875a7] sql/item.h:5427(Item_direct_view_ref::val_real())[0x55d27b7a5585] sql/item.cc:8638(Item_direct_ref::val_real())[0x55d27b7875a7] sql/item.h:5427(Item_direct_view_ref::val_real())[0x55d27b7a5585] sql/item_cmpfunc.cc:813(Arg_comparator::compare_real())[0x55d27b7b9b78] sql/item_cmpfunc.h:102(Arg_comparator::compare())[0x55d27b7f8dc6] sql/item_cmpfunc.cc:1772(Item_func_ne::val_int())[0x55d27b7c5e93] sql/sql_type.cc:3287(Type_handler_int_result::Item_val_bool(Item*) const)[0x55d27b489fe8] sql/item.h:1220(Item::val_bool())[0x55d27ac9f242] sql/item_cmpfunc.cc:5078(Item_cond_and::val_int())[0x55d27b7e4aa2] sql/item.h:1629(Item::update_null_value())[0x55d27aca018e] sql/item_func.h:185(Item_func::is_null())[0x55d27ae5f8ef] sql/sql_select.cc:11810(end_sj_materialize(JOIN*, st_join_table*, bool))[0x55d27b053508] sql/sql_select.cc:20111(evaluate_join_record(JOIN*, st_join_table*, int))[0x55d27b08e441] sql/sql_select.cc:19884(sub_select(JOIN*, st_join_table*, bool))[0x55d27b08cb85] sql/opt_subselect.cc:5445(join_tab_execution_startup(st_join_table*))[0x55d27b425226] sql/sql_select.cc:19873(sub_select(JOIN*, st_join_table*, bool))[0x55d27b08c7e6] sql/sql_select.cc:20111(evaluate_join_record(JOIN*, st_join_table*, int))[0x55d27b08e441] sql/sql_select.cc:19884(sub_select(JOIN*, st_join_table*, bool))[0x55d27b08cb85] sql/sql_select.cc:19422(do_select(JOIN*, Procedure*))[0x55d27b08a55f] sql/sql_select.cc:4151(JOIN::exec_inner())[0x55d27b019242] sql/sql_select.cc:3946(JOIN::exec())[0x55d27b016bcc] sql/item_subselect.cc:4026(subselect_single_select_engine::exec())[0x55d27b945b11] sql/item_subselect.cc:791(Item_subselect::exec())[0x55d27b9208e8] sql/item_subselect.cc:1394(Item_singlerow_subselect::val_real())[0x55d27b9265b7] sql/item_func.cc:1456(Item_func_mul::real_op())[0x55d27b84cef8] sql/item_func.h:513(Item_func_hybrid_field_type::val_real_from_real_op())[0x55d27b4a0532] sql/sql_type.cc:3589(Type_handler_real_result::Item_func_hybrid_field_type_val_real(Item_func_hybrid_field_type*) const)[0x55d27b48abbc] sql/item_func.h:567(Item_func_hybrid_field_type::val_real())[0x55d27af0eb2f] sql/item.h:1315(Item::val_result())[0x55d27ac9f518] sql/item.cc:10328(Item_cache_real::cache_value())[0x55d27b798313] sql/item.h:6323(Item_cache::has_value())[0x55d27b4a3f14] sql/item.cc:10337(Item_cache_real::val_real())[0x55d27b798541] sql/item_cmpfunc.cc:816(Arg_comparator::compare_real())[0x55d27b7b9d16] sql/item_cmpfunc.h:102(Arg_comparator::compare())[0x55d27b7f8dc6] sql/item_cmpfunc.cc:1749(Item_func_eq::val_int())[0x55d27b7c5bd3] sql/sql_type.cc:3287(Type_handler_int_result::Item_val_bool(Item*) const)[0x55d27b489fe8] sql/item.h:1220(Item::val_bool())[0x55d27ac9f242] sql/item_cmpfunc.cc:5078(Item_cond_and::val_int())[0x55d27b7e4aa2] sql/item_cmpfunc.cc:916(Arg_comparator::compare_int_signed())[0x55d27b7bc037] sql/item_cmpfunc.h:102(Arg_comparator::compare())[0x55d27b7f8dc6] sql/item_cmpfunc.cc:1749(Item_func_eq::val_int())[0x55d27b7c5bd3] sql/sql_type.cc:3287(Type_handler_int_result::Item_val_bool(Item*) const)[0x55d27b489fe8] sql/item.h:1220(Item::val_bool())[0x55d27ac9f242] sql/item_cmpfunc.cc:5078(Item_cond_and::val_int())[0x55d27b7e4aa2] sql/item_func.cc:744(Item_int_func::val_real())[0x55d27b844531] sql/item_func.cc:1456(Item_func_mul::real_op())[0x55d27b84cef8] sql/item_func.h:513(Item_func_hybrid_field_type::val_real_from_real_op())[0x55d27b4a0532] sql/sql_type.cc:3589(Type_handler_real_result::Item_func_hybrid_field_type_val_real(Item_func_hybrid_field_type*) const)[0x55d27b48abbc] sql/item_func.h:567(Item_func_hybrid_field_type::val_real())[0x55d27af0eb2f] sql/sql_type.cc:3282(Type_handler_real_result::Item_val_bool(Item*) const)[0x55d27b489f60] sql/item.h:1220(Item::val_bool())[0x55d27ac9f242] sql/item_cmpfunc.cc:224(Item_func_not::val_int())[0x55d27b7b23bc] sql/item_func.cc:662(Item_func::val_decimal(my_decimal*))[0x55d27b8432a8] sql/item_cmpfunc.cc:2218(Item_func_between::val_int_cmp_decimal())[0x55d27b7cb753] sql/sql_type.cc:3821(Type_handler_decimal_result::Item_func_between_val_int(Item_func_between*) const)[0x55d27b48b0f8] sql/item_cmpfunc.h:905(Item_func_between::val_int())[0x55d27bb1e597] sql/item_func.cc:744(Item_int_func::val_real())[0x55d27b844531] sql/item_cmpfunc.cc:2239(Item_func_between::val_int_cmp_real())[0x55d27b7cc2ed] sql/sql_type.cc:3815(Type_handler_real_result::Item_func_between_val_int(Item_func_between*) const)[0x55d27b48b0da] sql/item_cmpfunc.h:905(Item_func_between::val_int())[0x55d27bb1e597] sql/sql_select.cc:19979(evaluate_join_record(JOIN*, st_join_table*, int))[0x55d27b08da3c] sql/sql_select.cc:19884(sub_select(JOIN*, st_join_table*, bool))[0x55d27b08cb85] sql/sql_select.cc:19422(do_select(JOIN*, Procedure*))[0x55d27b08a55f] sql/sql_select.cc:4151(JOIN::exec_inner())[0x55d27b019242] sql/sql_select.cc:3946(JOIN::exec())[0x55d27b016bcc] sql/sql_select.cc:4356(mysql_select(THD*, TABLE_LIST*, unsigned int, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55d27b01a684] sql/sql_select.cc:372(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55d27aff0586] sql/sql_parse.cc:6339(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55d27af5b1a4] sql/sql_parse.cc:3870(mysql_execute_command(THD*))[0x55d27af4917f] sql/sql_parse.cc:7870(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55d27af65415] sql/sql_parse.cc:1855(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55d27af3c31a] sql/sql_parse.cc:1398(do_command(THD*))[0x55d27af38169] sql/sql_connect.cc:1403(do_handle_one_connection(CONNECT*))[0x55d27b33556b] sql/mysqld.cc:6632(handle_connection_in_main_thread(CONNECT*))[0x55d27ac6071f] sql/mysqld.cc:6740(create_new_thread(CONNECT*))[0x55d27ac611df] sql/mysqld.cc:6997(handle_connections_sockets())[0x55d27ac623a2] sql/mysqld.cc:6295(mysqld_main(int, char**))[0x55d27ac5fd46] sql/main.cc:26(main)[0x55d27ac45a7a] csu/libc-start.c:344(__libc_start_main)[0x7f6fef240c87] /usr/local/mysql/bin/mysqld(_start+0x2a)[0x55d27ac4597a] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b000023358): WITH v1172 AS ( SELECT v1170 FROM ( SELECT v1170 FROM v1169 GROUP BY v1170 ) AS v1171 ) SELECT v1170 FROM v1172 WHERE v1170 BETWEEN FALSE AND ( ( ( v1170 OR NOT v1170 ) BETWEEN ( ( ( NOT ( ( 90778113.000000 ^ 90656932.000000 AND ( v1170 NOT IN ( NOT ( NOT ( 'x' = TRUE AND v1170 = 61 ) ) ) AND v1170 IN ( ( SELECT v1170 FROM v1169 WHERE ( FALSE <= -128 BETWEEN 10 AND 34 , v1170 ) IN ( WITH v1176 AS ( SELECT v1174 FROM ( SELECT ( SELECT v1170 FROM ( SELECT ( v1170 NOT IN ( 11097710.000000 , 12206111.000000 NOT BETWEEN 'x' AND 'x' ) AND v1170 NOT IN ( 2147483647 % v1170 ) ) , CASE WHEN v1170 % 30004927.000000 THEN 'x' ELSE v1170 END / 46 FROM v1169 UNION SELECT v1170 , v1170 FROM v1169 ) AS v1173 ) * 0 AS v1174 FROM v1169 ) AS v1175 ) SELECT ( v1174 NOT IN ( ( NOT ( 'x' / v1174 = v1174 + CASE v1174 WHEN 0 THEN v1174 ELSE ( WITH RECURSIVE v1177 ( v1178 ) AS ( SELECT v1170 FROM v1169 ) SELECT 81155100.000000 AS v1179 FROM v1177 ORDER BY v1178 DESC LIMIT 1 OFFSET 1 ) - 0 END AND v1174 = 'x' ) ) IS NULL ) AND v1174 NOT IN ( 33 ^ v1174 ) ) , v1174 + v1174 FROM v1176 GROUP BY v1174 ) ) * 2147483647 ) ) = -32768 ) * NULL ) ) ) ) AND 719937.000000 ) ) Connection ID (thread ID): 13 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=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on 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 127991 127991 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 127991 127991 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 %s %c %d %P %E