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

Assertion `is_added()' failed in dict_col_t::instant_value

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 (a INT, b INT) ENGINE=InnoDB;
      INSERT IGNORE INTO t1 VALUES (1,1);
      ALTER TABLE t1 ADD COLUMN f INT AFTER a;
      ALTER TABLE t1 DROP b, DROP f;
       
      # Cleanup
      DROP TABLE t1;
      

      10.4 4edb29380

      mysqld: /data/src/10.4/storage/innobase/include/dict0mem.h:673: const byte* dict_col_t::instant_value(ulint*) const: Assertion `is_added()' failed.
      190121  1:26:46 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f4fb399cee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055d94db0059b in dict_col_t::instant_value (this=0x7f4f581566e8, len=0x7f4faccc0238) at /data/src/10.4/storage/innobase/include/dict0mem.h:673
      #9  0x000055d94db00cb4 in dict_index_t::instant_field_value (this=0x7f4f5815aa28, n=5, len=0x7f4faccc0238) at /data/src/10.4/storage/innobase/include/dict0mem.h:1172
      #10 0x000055d94dbd3466 in rec_init_offsets_comp_ordinary<false> (rec=0x7f4fad49c07e "", index=0x7f4f5815aa28, offsets=0x7f4faccc05e0, n_core=5, def_val=0x0, format=REC_LEAF_ORDINARY) at /data/src/10.4/storage/innobase/rem/rem0rec.cc:394
      #11 0x000055d94dbcd677 in rec_init_offsets (rec=0x7f4fad49c07e "", index=0x7f4f5815aa28, leaf=true, offsets=0x7f4faccc05e0) at /data/src/10.4/storage/innobase/rem/rem0rec.cc:653
      #12 0x000055d94dbce474 in rec_get_offsets_func (rec=0x7f4fad49c07e "", index=0x7f4f5815aa28, offsets=0x7f4faccc05e0, leaf=true, n_fields=18446744073709551615, file=0x55d94e26fcf0 "/data/src/10.4/storage/innobase/page/page0page.cc", line=589, heap=0x7f4faccc0418) at /data/src/10.4/storage/innobase/rem/rem0rec.cc:927
      #13 0x000055d94db9f82d in page_copy_rec_list_end_no_locks (new_block=0x7f4facf8b4b8, block=0x7f4facf8bc20, rec=0x7f4fad49c063 "", index=0x7f4f5815aa28, mtr=0x7f4faccc0f00) at /data/src/10.4/storage/innobase/page/page0page.cc:589
      #14 0x000055d94dcea3bf in btr_page_reorganize_low (recovery=false, z_level=6, cursor=0x7f4faccc0de8, index=0x7f4f5815aa28, mtr=0x7f4faccc0f00) at /data/src/10.4/storage/innobase/btr/btr0btr.cc:1598
      #15 0x000055d94dceb147 in btr_page_reorganize (cursor=0x7f4faccc0de8, index=0x7f4f5815aa28, mtr=0x7f4faccc0f00) at /data/src/10.4/storage/innobase/btr/btr0btr.cc:1825
      #16 0x000055d94dd17317 in btr_cur_pessimistic_update (flags=10, cursor=0x7f4faccc0de0, offsets=0x7f4faccc0d00, offsets_heap=0x7f4faccc0d08, entry_heap=0x7f4f5806f460, big_rec=0x7f4faccc0d10, update=0x7f4f58083ee0, cmpl_info=1, thr=0x7f4f58083e28, trx_id=44, mtr=0x7f4faccc0f00) at /data/src/10.4/storage/innobase/btr/btr0cur.cc:5047
      #17 0x000055d94daf0016 in innobase_instant_try (ha_alter_info=0x7f4faccc2bc0, ctx=0x7f4f58016320, altered_table=0x7f4f5815cca0, table=0x7f4f5818d060, trx=0x7f4fad7ad258) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:5737
      #18 0x000055d94db0bb73 in commit_try_norebuild (ha_alter_info=0x7f4faccc2bc0, ctx=0x7f4f58016320, altered_table=0x7f4f5815cca0, old_table=0x7f4f5818d060, trx=0x7f4fad7ad258, table_name=0x7f4f58070dad "t1") at /data/src/10.4/storage/innobase/handler/handler0alter.cc:10160
      #19 0x000055d94dafd8e6 in ha_innobase::commit_inplace_alter_table (this=0x7f4f5818dc98, altered_table=0x7f4f5815cca0, ha_alter_info=0x7f4faccc2bc0, commit=true) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:10793
      #20 0x000055d94d78df82 in handler::ha_commit_inplace_alter_table (this=0x7f4f5818dc98, altered_table=0x7f4f5815cca0, ha_alter_info=0x7f4faccc2bc0, commit=true) at /data/src/10.4/sql/handler.cc:4492
      #21 0x000055d94d54d570 in mysql_inplace_alter_table (thd=0x7f4f58000b00, table_list=0x7f4f580150a0, table=0x7f4f5818d060, altered_table=0x7f4f5815cca0, ha_alter_info=0x7f4faccc2bc0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7f4faccc2cf0, alter_ctx=0x7f4faccc38e0) at /data/src/10.4/sql/sql_table.cc:7590
      #22 0x000055d94d5533d1 in mysql_alter_table (thd=0x7f4f58000b00, new_db=0x7f4f580051e0, new_name=0x7f4f580055b0, create_info=0x7f4faccc44d0, table_list=0x7f4f580150a0, alter_info=0x7f4faccc4410, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:9690
      #23 0x000055d94d5dda4f in Sql_cmd_alter_table::execute (this=0x7f4f58015730, thd=0x7f4f58000b00) at /data/src/10.4/sql/sql_alter.cc:497
      #24 0x000055d94d47aceb in mysql_execute_command (thd=0x7f4f58000b00) at /data/src/10.4/sql/sql_parse.cc:6314
      #25 0x000055d94d47fc16 in mysql_parse (thd=0x7f4f58000b00, rawbuf=0x7f4f58014fb8 "ALTER TABLE t1 DROP b, DROP f", length=29, parser_state=0x7f4faccc5600, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8116
      #26 0x000055d94d46cdb3 in dispatch_command (command=COM_QUERY, thd=0x7f4f58000b00, packet=0x7f4f5800b441 "ALTER TABLE t1 DROP b, DROP f", packet_length=29, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1852
      #27 0x000055d94d46b7d7 in do_command (thd=0x7f4f58000b00) at /data/src/10.4/sql/sql_parse.cc:1397
      #28 0x000055d94d5d7a92 in do_handle_one_connection (connect=0x55d9515459d0) at /data/src/10.4/sql/sql_connect.cc:1402
      #29 0x000055d94d5d7816 in handle_one_connection (arg=0x55d9515459d0) at /data/src/10.4/sql/sql_connect.cc:1308
      #30 0x000055d94da96dec in pfs_spawn_thread (arg=0x55d951540950) at /data/src/10.4/storage/perfschema/pfs.cc:1862
      #31 0x00007f4fb5673494 in start_thread (arg=0x7f4faccc6700) at pthread_create.c:333
      #32 0x00007f4fb3a5993f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible on 10.3.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              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.