mysqld: /home/mysql/mariadb/sql/item.cc:10699: virtual longlong Item_type_holder::val_int(): Assertion `0' failed. 220908 8:24:54 [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.10.1-MariaDB-debug 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 = 468134 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x62b00015e288 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 = 0x7f4f1fd91bd0 thread_stack 0x100000 sanitizer_common/sanitizer_common_interceptors.inc:4022(__interceptor_backtrace.part.0)[0x7f4f43aafd40] mysys/stacktrace.c:212(my_print_stacktrace)[0x55b3cf3ba6bb] sql/signal_handler.cc:236(handle_fatal_signal)[0x55b3cdfa3d04] ??:0(__restore_rt)[0x7f4f43521420] ??:0(gsignal)[0x7f4f4300a00b] ??:0(abort)[0x7f4f42fe9859] /lib/x86_64-linux-gnu/libc.so.6(+0x22729)[0x7f4f42fe9729] ??:0(__assert_fail)[0x7f4f42ffafd6] sql/item.cc:10700(Item_type_holder::val_int())[0x55b3ce05831d] sql/item.h:1779(Item::val_int_result())[0x55b3cd312fde] sql/item.cc:10125(Item_cache_int::cache_value())[0x55b3ce052068] sql/item.h:7099(Item_cache::has_value())[0x55b3cdd80bd8] sql/item.h:7108(Item_cache::is_null())[0x55b3cdd80dd8] sql/item_subselect.h:670(Item_in_subselect::disable_cond_guard_for_const_null_left_expr(int))[0x55b3ce26e4b3] sql/item_subselect.cc:2402(Item_in_subselect::create_single_in_to_exists_cond(JOIN*, Item**, Item**))[0x55b3ce245162] sql/item_subselect.cc:2807(Item_in_subselect::create_in_to_exists_cond(JOIN*))[0x55b3ce24ad06] sql/opt_subselect.cc:6522(JOIN::choose_subquery_plan(unsigned long long))[0x55b3cdc8dfe6] sql/sql_select.cc:6020(make_join_statistics(JOIN*, List&, st_dynamic_array*))[0x55b3cd7e4deb] sql/sql_select.cc:2524(JOIN::optimize_inner())[0x55b3cd7c0b08] sql/sql_select.cc:1863(JOIN::optimize())[0x55b3cd7b9b20] sql/sql_lex.cc:4915(st_select_lex::optimize_unflattened_subqueries(bool))[0x55b3cd6438db] sql/opt_subselect.cc:5656(JOIN::optimize_unflattened_subqueries())[0x55b3cdc88223] sql/sql_select.cc:3125(JOIN::optimize_stage2())[0x55b3cd7c710a] sql/sql_select.cc:2550(JOIN::optimize_inner())[0x55b3cd7c0e13] sql/sql_select.cc:1863(JOIN::optimize())[0x55b3cd7b9b20] sql/sql_select.cc:5056(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*))[0x55b3cd7db574] sql/sql_select.cc:581(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55b3cd7ab587] sql/sql_parse.cc:6261(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55b3cd6cf49c] sql/sql_parse.cc:3945(mysql_execute_command(THD*, bool))[0x55b3cd6bdecb] sql/sql_parse.cc:8035(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x55b3cd6da699] sql/sql_parse.cc:1896(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x55b3cd6b0773] sql/sql_parse.cc:1407(do_command(THD*, bool))[0x55b3cd6ad4f9] sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x55b3cdb67130] sql/sql_connect.cc:1314(handle_one_connection)[0x55b3cdb669bc] perfschema/pfs.cc:2203(pfs_spawn_thread)[0x55b3ce79742a] ??:0(start_thread)[0x7f4f43515609] ??:0(clone)[0x7f4f430e6133] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x6290000e64e8): select subq_0.c0 as c0 from (select ref_0.c_s7edob as c0 from t_dmvax as ref_0 where ref_0.c_s7edob not in ( select ref_1.c_wwyiz as c0 from t_dmvax as ref_1) ) as subq_0 where subq_0.c0 = ( select ref_3.c_wwyiz as c0 from (t_dmvax as ref_2 cross join t_dmvax as ref_3) union select ref_4.c_wwyiz as c0 from t_dmvax as ref_4) Connection ID (thread ID): 4 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 /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 unlimited unlimited processes Max open files 1048576 1048576 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 514337 514337 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 Kernel version: Linux version 5.4.0-96-generic (buildd@lgw01-amd64-051) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 Aborted