2022-05-08 17:02:37 0 [Note] InnoDB: Using Linux native AIO 2022-05-08 17:02:37 0 [Note] InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 2022-05-08 17:02:37 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2022-05-08 17:02:37 0 [Note] InnoDB: Uses event mutexes 2022-05-08 17:02:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2022-05-08 17:02:37 0 [Note] InnoDB: Number of pools: 1 2022-05-08 17:02:37 0 [Note] InnoDB: Using SSE2 crc32 instructions 2022-05-08 17:02:37 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2022-05-08 17:02:37 0 [Note] InnoDB: Completed initialization of buffer pool 2022-05-08 17:02:37 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-08 17:02:37 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=8137003062 2022-05-08 17:02:37 0 [Note] InnoDB: Starting final batch to recover 14 pages from redo log. 2022-05-08 17:02:37 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2022-05-08 17:02:37 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2022-05-08 17:02:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2022-05-08 17:02:37 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2022-05-08 17:02:37 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2022-05-08 17:02:37 0 [Note] InnoDB: Waiting for purge to start 2022-05-08 17:02:37 0 [Note] InnoDB: 10.3.35 started; log sequence number 8137009364; transaction id 23603940 2022-05-08 17:02:37 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2022-05-08 17:02:37 0 [Note] Plugin 'FEEDBACK' is disabled. 2022-05-08 17:02:37 0 [Note] Recovering after a crash using tc.log 2022-05-08 17:02:37 0 [Note] Starting crash recovery... 2022-05-08 17:02:37 0 [Note] InnoDB: Buffer pool(s) load completed at 220508 17:02:37 2022-05-08 17:02:37 0 [Note] Crash recovery finished. 2022-05-08 17:02:37 0 [Note] Server socket created on IP: '::'. 2022-05-08 17:02:37 0 [Note] Reading of all Master_info entries succeeded 2022-05-08 17:02:37 0 [Note] Added new Master_info '' to hash table 2022-05-08 17:02:37 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/sql_select.cc:18212: TABLE* create_tmp_table(THD*, TMP_TABLE_PARAM*, List&, ORDER*, bool, bool, ulonglong, ha_rows, const LEX_CSTRING*, bool, bool): Assertion `field->table == table' failed. 220508 17:02:42 [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: 0x62a0000c0270 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 = 0x7fffffffdb20 thread_stack 0x5fc00 /usr/lib/x86_64-linux-gnu/libasan.so.4(+0x558c0)[0x7ffff6e6d8c0] mysys/stacktrace.c:174(my_print_stacktrace)[0x5555582b7ab2] sql/signal_handler.cc:221(handle_fatal_signal)[0x555556dfb5dc] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7ffff4117980] linux/raise.c:51(__GI_raise)[0x7ffff3d52e87] stdlib/abort.c:81(__GI_abort)[0x7ffff3d547f1] assert/assert.c:89(__assert_fail_base)[0x7ffff3d443fa] /lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7ffff3d44472] sql/sql_select.cc:18213(create_tmp_table(THD*, TMP_TABLE_PARAM*, List&, st_order*, bool, bool, unsigned long long, unsigned long long, st_mysql_const_lex_string const*, bool, bool))[0x5555567854f9] sql/sql_select.cc:3461(JOIN::create_postjoin_aggr_table(st_join_table*, List*, st_order*, bool, bool, bool))[0x55555671893c] sql/sql_select.cc:3058(JOIN::make_aggr_tables_info())[0x555556714423] sql/sql_select.cc:2697(JOIN::optimize_stage2())[0x55555670ff13] sql/sql_select.cc:2003(JOIN::optimize_inner())[0x555556708ccb] sql/sql_select.cc:1519(JOIN::optimize())[0x555556703e03] sql/sql_select.cc:4340(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*))[0x55555672149a] sql/sql_select.cc:372(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5555566f7586] sql/sql_parse.cc:6339(execute_sqlcom_select(THD*, TABLE_LIST*))[0x5555566621a4] sql/sql_parse.cc:3870(mysql_execute_command(THD*))[0x55555665017f] sql/sql_parse.cc:7870(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55555666c415] sql/sql_parse.cc:1855(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55555664331a] sql/sql_parse.cc:1398(do_command(THD*))[0x55555663f169] sql/sql_connect.cc:1403(do_handle_one_connection(CONNECT*))[0x555556a3c56b] sql/mysqld.cc:6632(handle_connection_in_main_thread(CONNECT*))[0x55555636771f] sql/mysqld.cc:6740(create_new_thread(CONNECT*))[0x5555563681df] sql/mysqld.cc:6997(handle_connections_sockets())[0x5555563693a2] sql/mysqld.cc:6295(mysqld_main(int, char**))[0x555556366d46] sql/main.cc:26(main)[0x55555634ca7a] csu/libc-start.c:344(__libc_start_main)[0x7ffff3d35c87] /usr/local/mysql/bin/mysqld(_start+0x2a)[0x55555634c97a] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b00001c3bd): SELECT DISTINCT v1252 IN ( SELECT v1252 FROM v1251 WHERE v1252 = CASE v1252 * -2147483648 = 90 WHEN 87 THEN -1 WHEN FALSE THEN 'x' ELSE 0 END / 0 ) FROM v1251 WINDOW v1263 AS ( PARTITION BY CASE v1252 WHEN 11 THEN v1252 = CASE WHEN v1252 * ( SELECT v1252 FROM v1251 WHERE v1252 BETWEEN FALSE AND ( ( ( v1252 OR NOT v1252 ) BETWEEN ( ( ( NOT ( ( 95934338.000000 ^ 13533169.000000 AND ( 13965219.000000 ) + -1 + NULL ) * NULL ) ) ) ) AND 29501520.000000 ) ) GROUP BY ( WITH RECURSIVE v1253 ( v1254 ) AS ( SELECT v1252 FROM v1251 ) SELECT v1254 FROM ( SELECT DISTINCT ( ( NOT ( 93673169.000000 AND v1252 = 80 ) ) = 75 AND v1252 = -1 ) % 93 , ( v1252 = -1 OR v1252 > 'x' ) FROM v1251 WHERE v1252 = 2 AND ( v1252 = -1 OR v1252 = 59 OR v1252 = 34 ) ) AS v1255 NATURAL JOIN v1253 WHERE ( v1252 = 0 OR v1252 = 20 ) NOT LIKE 'x' AND NULL GROUP BY v1252 , v1254 ORDER BY v1252 DESC LIMIT 1 OFFSET 1 ) , v1252 WINDOW v1264 AS ( PARTITION BY v1252 ORDER BY ( SELECT DISTINCT -2147483648 FROM v1251 AS v1260 , v1251 AS v1261 , v1251 AS v1262 JOIN v1251 ) DESC RANGE BETWEEN 19177764.000000 FOLLOWING AND FALSE FOLLOWING ) ) ^ v1252 THEN 'x' ELSE v1252 END / 127 ELSE 2147483647 END != 5 ORDER BY ( ( v1252 OR NOT v1252 ) BETWEEN ( 73 = v1252 ) AND TRUE ) ) Connection ID (thread ID): 14 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 128007 128007 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 128007 128007 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