Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-14827

Server crashes in Item_default_value::eq upon CREATE .. SELECT DISTINCT

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
      CREATE OR REPLACE TABLE t1 (i INT) WITH SYSTEM VERSIONING ENGINE=InnoDB;
      CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT DISTINCT i FROM t1;
       
      # Cleanup
      DROP TABLE t1, t2;
      

      bb-10.3-temporal a3a15126f260e26b715ae9a790135df1822b74d8

      #3  <signal handler called>
      #4  0x000055ca99a85ee0 in Item_default_value::eq (this=0x7f2930016cc0, item=0x7f2930016de0, binary_cmp=true) at /data/src/bb-10.3-temporal/sql/item.cc:9204
      #5  0x000055ca99a6d8c5 in Item_field::collect_item_field_processor (this=0x7f2930016de0, arg=0x7f298424af60) at /data/src/bb-10.3-temporal/sql/item.cc:871
      #6  0x000055ca99a8f1ef in Item_default_value::walk (this=0x7f2930016de0, processor=&virtual Item::collect_item_field_processor(void*), walk_subquery=false, args=0x7f298424af60) at /data/src/bb-10.3-temporal/sql/item.h:5660
      #7  0x000055ca997c3a77 in add_group_and_distinct_keys (join=0x7f2930015e40, join_tab=0x7f2930017af8) at /data/src/bb-10.3-temporal/sql/sql_select.cc:6580
      #8  0x000055ca997bed54 in make_join_statistics (join=0x7f2930015e40, tables_list=..., keyuse_array=0x7f2930016130) at /data/src/bb-10.3-temporal/sql/sql_select.cc:4886
      #9  0x000055ca997b47ed in JOIN::optimize_inner (this=0x7f2930015e40) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1971
      #10 0x000055ca997b30b8 in JOIN::optimize (this=0x7f2930015e40) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1556
      #11 0x000055ca997bc814 in mysql_select (thd=0x7f2930000b00, tables=0x7f2930015520, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2416184065, result=0x7f2930015d48, unit=0x7f2930004898, select_lex=0x7f2930004ff0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:4244
      #12 0x000055ca997ae93e in handle_select (thd=0x7f2930000b00, lex=0x7f29300047d0, result=0x7f2930015d48, setup_tables_done_option=0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:382
      #13 0x000055ca99771408 in mysql_execute_command (thd=0x7f2930000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4220
      #14 0x000055ca9977d3f6 in mysql_parse (thd=0x7f2930000b00, rawbuf=0x7f2930014c48 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT DISTINCT i FROM t1", length=75, parser_state=0x7f298424c5f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
      #15 0x000055ca9976ab97 in dispatch_command (command=COM_QUERY, thd=0x7f2930000b00, packet=0x7f2930120201 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT DISTINCT i FROM t1", packet_length=75, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
      #16 0x000055ca997695cb in do_command (thd=0x7f2930000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
      #17 0x000055ca998d1354 in do_handle_one_connection (connect=0x55ca9c8203a0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #18 0x000055ca998d10e1 in handle_one_connection (arg=0x55ca9c8203a0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #19 0x000055ca99d6bc5a in pfs_spawn_thread (arg=0x55ca9c866be0) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #20 0x00007f298db1c494 in start_thread (arg=0x7f298424d700) at pthread_create.c:333
      #21 0x00007f298bf0293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Also reproducible on tempesta-tech/mariadb 6d2583f59553.

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.