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

Assertion in ha_myisammrg::attach_children()

    XMLWordPrintable

Details

    Description

      Assertion `this->table->pos_in_table_list->next_global == this->children_l' failed in ha_myisammrg::attach_children()

      --source include/have_partition.inc
       
      CREATE OR REPLACE TABLE t1 (f1 INT) ENGINE=MyISAM WITH SYSTEM VERSIONING 
        PARTITION BY system_time INTERVAL 1 MONTH (PARTITION p1 HISTORY, PARTITION pn CURRENT);
      CREATE OR REPLACE TABLE t2 (f1 INT) ENGINE=MyISAM;
      CREATE OR REPLACE TABLE t3 (f1 INT) ENGINE=MERGE UNION=(t2);
       
      CREATE OR REPLACE TABLE t4 (f1 INT) ENGINE=MyISAM;
      CREATE OR REPLACE TABLE t5 (f1 INT) ENGINE=MyISAM;
       
      CREATE TRIGGER tr AFTER INSERT ON t4 FOR EACH ROW INSERT INTO t5 
        ( SELECT f1 FROM t3 ) UNION ( SELECT f1 FROM t1 );
      INSERT INTO t4 VALUES (1);
       
      # Cleanup
      DROP TABLE t1, t2, t3, t4, t5;
      

      bb-10.3-temporal ea49441c41634

      mysqld: /data/src/bb-10.3-temporal/storage/myisammrg/ha_myisammrg.cc:836: int ha_myisammrg::attach_children(): Assertion `this->table->pos_in_table_list->next_global == this->children_l' failed.
      171223  0:49:06 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f7269b45ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x0000560d97ddf666 in ha_myisammrg::attach_children (this=0x7f7248073268) at /data/src/bb-10.3-temporal/storage/myisammrg/ha_myisammrg.cc:836
      #9  0x0000560d97de0d30 in ha_myisammrg::extra (this=0x7f7248073268, operation=HA_EXTRA_ATTACH_CHILDREN) at /data/src/bb-10.3-temporal/storage/myisammrg/ha_myisammrg.cc:1336
      #10 0x0000560d973620ee in open_tables (thd=0x7f7248000b00, options=..., start=0x7f72645b4128, counter=0x7f72645b4144, flags=0, prelocking_strategy=0x7f72645b41c0) at /data/src/bb-10.3-temporal/sql/sql_base.cc:4122
      #11 0x0000560d973635d8 in open_and_lock_tables (thd=0x7f7248000b00, options=..., tables=0x7f7248014d28, derived=true, flags=0, prelocking_strategy=0x7f72645b41c0) at /data/src/bb-10.3-temporal/sql/sql_base.cc:4742
      #12 0x0000560d97356137 in open_and_lock_tables (thd=0x7f7248000b00, tables=0x7f7248014d28, derived=true, flags=0) at /data/src/bb-10.3-temporal/sql/sql_base.h:496
      #13 0x0000560d973aed9b in mysql_insert (thd=0x7f7248000b00, table_list=0x7f7248014d28, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:777
      #14 0x0000560d973e5bfe in mysql_execute_command (thd=0x7f7248000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4706
      #15 0x0000560d973f0358 in mysql_parse (thd=0x7f7248000b00, rawbuf=0x7f7248014c48 "INSERT INTO t4 VALUES (1)", length=25, parser_state=0x7f72645b55f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
      #16 0x0000560d973ddaf9 in dispatch_command (command=COM_QUERY, thd=0x7f7248000b00, packet=0x7f724811ef11 "INSERT INTO t4 VALUES (1)", packet_length=25, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
      #17 0x0000560d973dc52d in do_command (thd=0x7f7248000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
      #18 0x0000560d9754421e in do_handle_one_connection (connect=0x560d9b6aec30) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #19 0x0000560d97543fab in handle_one_connection (arg=0x560d9b6aec30) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #20 0x0000560d979debfe in pfs_spawn_thread (arg=0x560d9b6b6ca0) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #21 0x00007f726b81c494 in start_thread (arg=0x7f72645b6700) at pthread_create.c:333
      #22 0x00007f7269c0293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Activity

          People

            midenok Aleksey Midenkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.