Thread 14 "mariadbd" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fc4a010d700 (LWP 11197)] 0x0000564e1b2db4ff in update_depend_map_for_order (join=0x7fc4480b33e0, join=0x7fc4480b33e0, order=0x7fc448027118) at /home/mariadb/sql/sql_select.cc:16641 16641 order->depend_map|=(*tab)->ref.depend_map; (gdb) bt #0 0x0000564e1b2db4ff in update_depend_map_for_order ( join=0x7fc4480b33e0, join=0x7fc4480b33e0, order=0x7fc448027118) at /home/mariadb/sql/sql_select.cc:16641 #1 remove_const (join=0x7fc4480b33e0, first_order=, cond=0x0, change_list=true, simple_order=0x7fc4480b3724) at /home/mariadb/sql/sql_select.cc:16754 #2 0x0000564e1b354ff9 in JOIN::optimize_stage2 (this=) at /home/mariadb/sql/sql_select.cc:3108 #3 0x0000564e1b3623a0 in JOIN::optimize_inner (this=0x7fc4480b33e0) at /home/mariadb/sql/sql_select.cc:2652 #4 0x0000564e1b36a1fa in JOIN::optimize ( --Type for more, q to quit, c to continue without paging-- this=this@entry=0x7fc4480b33e0) at /home/mariadb/sql/sql_select.cc:1944 #5 0x0000564e1b1291bc in st_select_lex::optimize_unflattened_subqueries (this=0x7fc448023620, const_only=const_only@entry=false) at /home/mariadb/sql/sql_lex.cc:4889 #6 0x0000564e1b6970ea in JOIN::optimize_unflattened_subqueries ( this=this@entry=0x7fc4480b2dd0) at /home/mariadb/sql/opt_subselect.cc:5865 #7 0x0000564e1b353db0 in JOIN::optimize_stage2 (this=) at /home/mariadb/sql/sql_select.cc:3233 #8 0x0000564e1b3623a0 in JOIN::optimize_inner (this=0x7fc4480b2dd0) --Type for more, q to quit, c to continue without paging-- at /home/mariadb/sql/sql_select.cc:2652 #9 0x0000564e1b36a1fa in JOIN::optimize ( this=this@entry=0x7fc4480b2dd0) at /home/mariadb/sql/sql_select.cc:1944 #10 0x0000564e1b1291bc in st_select_lex::optimize_unflattened_subqueries (this=0x7fc4480462d0, const_only=const_only@entry=false) at /home/mariadb/sql/sql_lex.cc:4889 #11 0x0000564e1b0f4c79 in mysql_insert (thd=thd@entry=0x7fc448000c58, table_list=, fields=..., values_list=..., update_fields=..., update_values=..., duplic=, ignore=, result=) --Type for more, q to quit, c to continue without paging-- at /home/mariadb/sql/sql_lex.h:985 #12 0x0000564e1b1b562a in mysql_execute_command (thd=0x7fc448000c58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /home/mariadb/sql/sql_parse.cc:4429 #13 0x0000564e1b75dd53 in sp_instr_stmt::exec_core ( this=0x7fc448029360, thd=, nextp=0x7fc4a010b174) at /home/mariadb/sql/sp_instr.cc:956 #14 0x0000564e1b762d47 in sp_lex_keeper::reset_lex_and_exec_core ( this=0x7fc448029398, thd=0x7fc448000c58, nextp=, open_tables=, instr=0x7fc448029360, rerun_the_same_instr=) --Type for more, q to quit, c to continue without paging-- at /home/mariadb/sql/sp_instr.cc:296 #15 0x0000564e1b7650d5 in sp_lex_keeper::validate_lex_and_exec_core ( this=this@entry=0x7fc448029398, thd=thd@entry=0x7fc448000c58, nextp=nextp@entry=0x7fc4a010b174, open_tables=open_tables@entry=false, instr=instr@entry=0x7fc448029360) at /home/mariadb/sql/sp_instr.cc:475 #16 0x0000564e1b766648 in sp_instr_stmt::execute (this=0x7fc448029360, thd=0x7fc448000c58, nextp=0x7fc4a010b174) at /home/mariadb/sql/sp_instr.cc:862 #17 0x0000564e1af7f077 in sp_head::execute (this=0x7fc448044870, --Type for more, q to quit, c to continue without paging-- thd=0x7fc448000c58, merge_da_on_success=) at /home/mariadb/sql/sp_head.cc:1284 #18 0x0000564e1af820ca in sp_head::execute_trigger ( this=0x7fc448044870, thd=thd@entry=0x7fc448000c58, db_name=, table_name=, grant_info=grant_info@entry=0x7fc448044310) at /home/mariadb/sql/sp_head.cc:1794 #19 0x0000564e1b466e03 in Table_triggers_list::process_triggers ( this=0x7fc448044450, thd=thd@entry=0x7fc448000c58, event=event@entry=TRG_EVENT_INSERT, time_type=time_type@entry=TRG_ACTION_BEFORE, --Type for more, q to quit, c to continue without paging-- old_row_is_record1=old_row_is_record1@entry=true) at /home/mariadb/sql/sql_trigger.cc:2524 #20 0x0000564e1b04b126 in fill_record_n_invoke_before_triggers ( thd=thd@entry=0x7fc448000c58, table=table@entry=0x7fc448019698, fields=..., values=..., ignore_errors=ignore_errors@entry=false, event=event@entry=TRG_EVENT_INSERT) at /home/mariadb/sql/sql_base.cc:9224 #21 0x0000564e1b0f7867 in mysql_insert (thd=thd@entry=0x7fc448000c58, table_list=, fields=..., values_list=..., update_fields=..., update_values=..., duplic=, ignore=, result=) --Type for more, q to quit, c to continue without paging-- at /home/mariadb/sql/sql_insert.cc:1053 #22 0x0000564e1b1b562a in mysql_execute_command (thd=0x7fc448000c58, is_called_from_prepared_stmt=) at /home/mariadb/sql/sql_parse.cc:4429 #23 0x0000564e1b182cce in mysql_parse (thd=0x7fc448000c58, rawbuf=, length=, parser_state=) at /home/mariadb/sql/sql_parse.cc:7748 #24 0x0000564e1b1a4755 in dispatch_command (command=COM_QUERY, thd=0x7fc448000c58, packet=, packet_length=, blocking=) at /home/mariadb/sql/sql_class.h:1551 --Type for more, q to quit, c to continue without paging-- #25 0x0000564e1b1ac1ad in do_command (thd=0x7fc448000c58, blocking=blocking@entry=true) at /home/mariadb/sql/sql_parse.cc:1406 #26 0x0000564e1b5ac732 in do_handle_one_connection ( connect=, put_in_cache=true) at /home/mariadb/sql/sql_connect.cc:1418 #27 0x0000564e1b5ad43d in handle_one_connection ( arg=arg@entry=0x564e202fdf28) at /home/mariadb/sql/sql_connect.cc:1320 #28 0x0000564e1c171c88 in pfs_spawn_thread (arg=0x564e202990e8) at /home/mariadb/storage/perfschema/pfs.cc:2201 #29 0x00007fc4a1ac6609 in start_thread (arg=) --Type for more, q to quit, c to continue without paging-- at pthread_create.c:477 #30 0x00007fc4a1697353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95