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

Server crashes in in st_join_table::fix_splitting

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3(EOL)
    • 10.3.5
    • Optimizer
    • None

    Description

      CREATE TABLE t1 (a INT) ENGINE=MyISAM;
       
      CREATE TABLE t2 (pk INT, b INT, PRIMARY KEY (pk)) ENGINE=MyISAM;
      INSERT INTO t2 VALUES (1,2),(3,4);
       
      CREATE ALGORITHM = MERGE VIEW v2 AS SELECT pk, MIN(b) FROM t2 GROUP BY pk;
      SELECT * FROM t1 LEFT JOIN v2 ON (a = pk);
      

      10.3 ec32c050726

      #3  <signal handler called>
      #4  0x000055dc892569b3 in st_join_table::fix_splitting (this=0x7eff1003acb0, spl_plan=0xa5a5a5a5a5a5a5a5, remaining_tables=2) at /data/src/10.3/sql/opt_split.cc:1082
      #5  0x000055dc89256ae2 in JOIN::fix_all_splittings_in_plan (this=0x7eff100191b8) at /data/src/10.3/sql/opt_split.cc:1128
      #6  0x000055dc890a99e1 in JOIN::get_best_combination (this=0x7eff100191b8) at /data/src/10.3/sql/sql_select.cc:9472
      #7  0x000055dc890939cf in JOIN::optimize_stage2 (this=0x7eff100191b8) at /data/src/10.3/sql/sql_select.cc:1993
      #8  0x000055dc890938e1 in JOIN::optimize_inner (this=0x7eff100191b8) at /data/src/10.3/sql/sql_select.cc:1972
      #9  0x000055dc890920e1 in JOIN::optimize (this=0x7eff100191b8) at /data/src/10.3/sql/sql_select.cc:1544
      #10 0x000055dc8909b89c in mysql_select (thd=0x7eff10000b00, tables=0x7eff10014e50, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7eff10019198, unit=0x7eff10004890, select_lex=0x7eff10004fe8) at /data/src/10.3/sql/sql_select.cc:4236
      #11 0x000055dc8908d88a in handle_select (thd=0x7eff10000b00, lex=0x7eff100047c8, result=0x7eff10019198, setup_tables_done_option=0) at /data/src/10.3/sql/sql_select.cc:379
      #12 0x000055dc89058956 in execute_sqlcom_select (thd=0x7eff10000b00, all_tables=0x7eff10014e50) at /data/src/10.3/sql/sql_parse.cc:6524
      #13 0x000055dc8904f040 in mysql_execute_command (thd=0x7eff10000b00) at /data/src/10.3/sql/sql_parse.cc:3745
      #14 0x000055dc8905c2aa in mysql_parse (thd=0x7eff10000b00, rawbuf=0x7eff10014c38 "SELECT * FROM t1 LEFT JOIN v2 ON (a = pk)", length=41, parser_state=0x7eff205525f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7981
      #15 0x000055dc89049aef in dispatch_command (command=COM_QUERY, thd=0x7eff10000b00, packet=0x7eff1000b141 "SELECT * FROM t1 LEFT JOIN v2 ON (a = pk)", packet_length=41, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1826
      #16 0x000055dc89048523 in do_command (thd=0x7eff10000b00) at /data/src/10.3/sql/sql_parse.cc:1370
      #17 0x000055dc891af768 in do_handle_one_connection (connect=0x55dc8cb76ec0) at /data/src/10.3/sql/sql_connect.cc:1401
      #18 0x000055dc891af4f5 in handle_one_connection (arg=0x55dc8cb76ec0) at /data/src/10.3/sql/sql_connect.cc:1307
      #19 0x000055dc8964d0b8 in pfs_spawn_thread (arg=0x55dc8cb926a0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #20 0x00007eff27fba494 in start_thread (arg=0x7eff20553700) at pthread_create.c:333
      #21 0x00007eff263a093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Issue Links

          Activity

            People

              igor Igor Babaev
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.