(gdb) c Continuing. [New Thread 0x7fe254069700 (LWP 5186)] Thread 13 "mariadbd" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fe254069700 (LWP 5186)] 0x000055b72ac9a3c3 in Item_func_n--Type for more, q to quit, c to continue without paging-- ot::fix_fields ( this=0x7fe21c0148d0, thd= 0x7fe21c000c58, ref=0x0) at /home/mariadb/sql/item_cmpfunc.cc:6634 6634 rc= (*ref= new_item)->fix_fields(thd, ref); (gdb) bt #0 0x000055b72ac9a3c3 in Item_func_not::fix_fields ( this=0x7fe21c0148d0, thd=0x7fe21c000c58, ref=0x0) at /home/mariadb/sql/item_cmpfunc.cc:6634 #1 0x000055b72a35b587 in st_select_lex::pushdown_from_having_into_where (this=0x7fe21c013768, --Type for more, q to quit, c to continue without paging-- 0x7fe21c000c58, having=0x0) at /home/mariadb/sql/sql_lex.cc:11274 #2 0x000055b72a5652c6 in JOIN::optimize_inner (this=0x7fe21c0165b8) at /home/mariadb/sql/sql_select.cc:2380 #3 0x000055b72a5721fa in JOIN::optimize (this=0x7fe21c0165b8) at /home/mariadb/sql/sql_select.cc:1944 #4 0x000055b72a6893e5 in st_select_lex_unit::optimize ( this=this@entry=0x7fe21c004f10) at /home/mariadb/sql/sql_union.cc:2262 #5 0x000055b72a689798 in st_select_lex_unit::exec_inner ( this=0x7fe21c004f10) at /home/mariadb/sql/sql_union.cc:2309 --Type for more, q to quit, c to continue without paging-- #6 0x000055b72a694a78 in mysql_union (thd=thd@entry=0x7fe21c000c58, lex=lex@entry=0x7fe21c004e30, result=result@entry=0x7fe21c0164a0, unit=unit@entry=0x7fe21c004f10, setup_tables_done_option=) at /home/mariadb/sql/sql_union.cc:45 #7 0x000055b72a5734bd in handle_select (thd=thd@entry=0x7fe21c000c58, lex=lex@entry=0x7fe21c004e30, result=result@entry=0x7fe21c0164a0, setup_tables_done_option=setup_tables_done_option@entry=0) at /home/mariadb/sql/sql_select.cc:618 --Type for more, q to quit, c to continue without paging-- #8 0x000055b72a399ac5 in execute_sqlcom_select (thd=0x7fe21c000c58, all_tables=0x7fe21c013d98) at /home/mariadb/sql/sql_parse.cc:6029 #9 0x000055b72a3c709f in mysql_execute_command (thd=0x7fe21c000c58, is_called_from_prepared_stmt=) at /home/mariadb/sql/sql_parse.cc:3924 #10 0x000055b72a38acce in mysql_parse (thd=0x7fe21c000c58, rawbuf=, length=, parser_state=) at /home/mariadb/sql/sql_parse.cc:7748 #11 0x000055b72a3ac755 in dispatch_command (command=COM_QUERY, --Type for more, q to quit, c to continue without paging-- thd=0x7fe21c000c58, packet=, packet_length=, blocking=) at /home/mariadb/sql/sql_class.h:1551 #12 0x000055b72a3b41ad in do_command (thd=0x7fe21c000c58, blocking=blocking@entry=true) at /home/mariadb/sql/sql_parse.cc:1406 #13 0x000055b72a7b4732 in do_handle_one_connection ( connect=, put_in_cache=true) at /home/mariadb/sql/sql_connect.cc:1418 #14 0x000055b72a7b543d in handle_one_connection ( --Type for more, q to quit, c to continue without paging-- arg=arg@entry=0x55b72f0bd9b8) at /home/mariadb/sql/sql_connect.cc:1320 #15 0x000055b72b379c88 in pfs_spawn_thread (arg=0x55b72f0e5448) at /home/mariadb/storage/perfschema/pfs.cc:2201 #16 0x00007fe26b067609 in start_thread (arg=) at pthread_create.c:477 #17 0x00007fe26ac38353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95