2022-05-18 20:21:15 0 [Note] InnoDB: Using Linux native AIO 2022-05-18 20:21:15 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2022-05-18 20:21:15 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-05-18 20:21:15 0 [Note] InnoDB: Uses event mutexes 2022-05-18 20:21:15 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2022-05-18 20:21:15 0 [Note] InnoDB: Number of pools: 1 2022-05-18 20:21:15 0 [Note] InnoDB: Using SSE2 crc32 instructions 2022-05-18 20:21:15 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2022-05-18 20:21:15 0 [Note] InnoDB: Completed initialization of buffer pool 2022-05-18 20:21:15 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-18 20:21:15 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=2091897 2022-05-18 20:21:15 0 [Note] InnoDB: Starting final batch to recover 15 pages from redo log. 2022-05-18 20:21:16 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2022-05-18 20:21:16 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2022-05-18 20:21:16 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2022-05-18 20:21:16 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2022-05-18 20:21:16 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2022-05-18 20:21:16 0 [Note] InnoDB: 10.3.35 started; log sequence number 2100327; transaction id 1242 2022-05-18 20:21:16 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2022-05-18 20:21:16 0 [Note] InnoDB: Buffer pool(s) load completed at 220518 20:21:16 2022-05-18 20:21:16 0 [Note] Plugin 'FEEDBACK' is disabled. 2022-05-18 20:21:16 0 [Note] Recovering after a crash using tc.log 2022-05-18 20:21:16 0 [Note] Starting crash recovery... 2022-05-18 20:21:16 0 [Note] Crash recovery finished. 2022-05-18 20:21:16 0 [Note] Server socket created on IP: '::'. 2022-05-18 20:21:16 0 [Note] Reading of all Master_info entries succeeded 2022-05-18 20:21:16 0 [Note] Added new Master_info '' to hash table 2022-05-18 20:21:16 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/handler.cc:2853: int handler::ha_rnd_next(uchar*): Assertion `table_share->tmp_table != NO_TMP_TABLE || m_lock_type != 2' failed. 220518 20:21:20 [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: 0x62a0000ba270 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 = 0x7ffe776d8620 thread_stack 0x5fc00 /usr/lib/x86_64-linux-gnu/libasan.so.4(+0x558c0)[0x7fc06bd568c0] mysys/stacktrace.c:174(my_print_stacktrace)[0x5600d02fbab2] sql/signal_handler.cc:221(handle_fatal_signal)[0x5600cee3f5dc] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fc069000980] linux/raise.c:51(__GI_raise)[0x7fc068c3be87] stdlib/abort.c:81(__GI_abort)[0x7fc068c3d7f1] assert/assert.c:89(__assert_fail_base)[0x7fc068c2d3fa] /lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7fc068c2d472] sql/handler.cc:2854(handler::ha_rnd_next(unsigned char*))[0x5600cee55d5c] sql/records.cc:485(rr_sequential(READ_RECORD*))[0x5600cf283084] sql/records.h:70(READ_RECORD::read_record())[0x5600ce4f8e1a] sql/sql_select.cc:20827(join_init_read_record(st_join_table*))[0x5600ce7df4b0] sql/sql_select.cc:19881(sub_select(JOIN*, st_join_table*, bool))[0x5600ce7d79ca] sql/sql_select.cc:19422(do_select(JOIN*, Procedure*))[0x5600ce7d555f] sql/sql_select.cc:4151(JOIN::exec_inner())[0x5600ce764242] sql/sql_select.cc:3946(JOIN::exec())[0x5600ce761bcc] sql/item_subselect.cc:4026(subselect_single_select_engine::exec())[0x5600cf090b11] sql/item_subselect.cc:791(Item_subselect::exec())[0x5600cf06b8e8] sql/item_subselect.cc:1394(Item_singlerow_subselect::val_real())[0x5600cf0715b7] sql/item_cmpfunc.cc:2238(Item_func_between::val_int_cmp_real())[0x5600cef171d9] sql/sql_type.cc:3815(Type_handler_real_result::Item_func_between_val_int(Item_func_between*) const)[0x5600cebd60da] sql/item_cmpfunc.h:905(Item_func_between::val_int())[0x5600cf269597] sql/item.h:1629(Item::update_null_value())[0x5600ce3eb18e] sql/item_func.h:185(Item_func::is_null())[0x5600ce5aa8ef] sql/item_row.cc:59(Item_row::fix_fields(THD*, Item**))[0x5600cf017869] sql/item.h:830(Item::fix_fields_if_needed(THD*, Item**))[0x5600ce4074df] sql/item_func.cc:352(Item_func::fix_fields(THD*, Item**))[0x5600cef8b6e5] sql/item.h:830(Item::fix_fields_if_needed(THD*, Item**))[0x5600ce4074df] sql/item.h:833(Item::fix_fields_if_needed_for_scalar(THD*, Item**))[0x5600ce40750d] sql/item.h:838(Item::fix_fields_if_needed_for_bool(THD*, Item**))[0x5600ce53c401] sql/item_cmpfunc.cc:4628(Item_cond::fix_fields(THD*, Item**))[0x5600cef2c259] sql/item.h:830(Item::fix_fields_if_needed(THD*, Item**))[0x5600ce4074df] sql/item_func.cc:352(Item_func::fix_fields(THD*, Item**))[0x5600cef8b6e5] sql/item.h:830(Item::fix_fields_if_needed(THD*, Item**))[0x5600ce4074df] sql/item.h:833(Item::fix_fields_if_needed_for_scalar(THD*, Item**))[0x5600ce40750d] sql/sql_base.cc:7542(setup_fields(THD*, Bounds_checked_array, List&, enum_column_usage, List*, List*, bool))[0x5600ce52e24c] sql/sql_select.cc:1152(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5600ce743406] sql/sql_union.cc:647(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x5600ce945807] sql/sql_union.cc:993(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x5600ce94902d] sql/sql_derived.cc:793(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x5600ce5caccd] sql/sql_derived.cc:497(mysql_derived_merge_for_insert(THD*, LEX*, TABLE_LIST*))[0x5600ce5c8a44] sql/sql_derived.cc:119(mysql_handle_derived(LEX*, unsigned int))[0x5600ce5c6ad5] sql/sql_update.cc:1571(Multiupdate_prelocking_strategy::handle_end(THD*))[0x5600ce9666f1] sql/sql_base.cc:4317(open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*))[0x5600ce519979] sql/sql_base.h:252(open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*))[0x5600ce958869] sql/sql_update.cc:1729(mysql_multi_update_prepare(THD*))[0x5600ce967a86] sql/sql_parse.cc:4381(mysql_execute_command(THD*))[0x5600ce697168] sql/sql_parse.cc:7870(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5600ce6b0415] sql/sql_parse.cc:1855(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5600ce68731a] sql/sql_parse.cc:1398(do_command(THD*))[0x5600ce683169] sql/sql_connect.cc:1403(do_handle_one_connection(CONNECT*))[0x5600cea8056b] sql/mysqld.cc:6632(handle_connection_in_main_thread(CONNECT*))[0x5600ce3ab71f] sql/mysqld.cc:6740(create_new_thread(CONNECT*))[0x5600ce3ac1df] sql/mysqld.cc:6997(handle_connections_sockets())[0x5600ce3ad3a2] sql/mysqld.cc:6295(mysqld_main(int, char**))[0x5600ce3aad46] sql/main.cc:26(main)[0x5600ce390a7a] csu/libc-start.c:344(__libc_start_main)[0x7fc068c1ec87] /usr/local/mysql/bin/mysqld(_start+0x2a)[0x5600ce39097a] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b00001c34c): UPDATE ( SELECT DISTINCT ( ( 66 , 'x' NOT BETWEEN ( SELECT DISTINCT EXISTS ( SELECT DISTINCT v1270 FROM v1269 UNION SELECT v1274 FROM ( SELECT DISTINCT ( SELECT v1270 FROM ( SELECT DISTINCT ( ( NOT ( 17138038.000000 AND v1274 = 78 ) ) = 0 AND v1274 = -128 ) % 45 , ( 79 = 13 OR v1276 > 'x' ) FROM v1273 WHERE v1275 - v1276 ) AS v1277 NATURAL JOIN ( WITH v1279 AS ( SELECT v1276 FROM ( SELECT NOT v1276 <= 'x' , v1276 FROM v1273 GROUP BY v1274 ) AS v1278 ) SELECT DISTINCT v1270 , ( v1270 = 5 OR v1272 > 'x' ) FROM v1269 ) AS v1280 NATURAL JOIN v1269 WHERE v1270 = v1274 ) AS v1281 FROM v1273 ) AS v1282 NATURAL JOIN v1269 AS v1283 NATURAL JOIN v1273 ORDER BY v1271 ) AND v1270 = -1 FROM v1269 ) AND 'x' ) = 12 AND v1271 = 64 ) % 0 , ( v1271 = 37 OR v1270 > 'x' ) FROM v1269 WHERE v1271 = -1 AND ( v1271 = 85 OR v1270 = 0 OR v1270 = 45 ) ) AS v1284 NATURAL JOIN v1269 SET v1271 = -1 WHERE v1270 = 62 Connection ID (thread ID): 12 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