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

Assertion `len <= col->len || ((col->mtype) == 5 || (col->mtype) == 14)' failed in row_merge_buf_add

    XMLWordPrintable

Details

    Description

      Note: The test case seems to be very similar to MDEV-14649, probably the issues are related or even have the same cause; but the assertion failure and stack trace are different, so I'm filing it separately just in case.

      --source include/have_innodb.inc
      --source include/have_partition.inc
       
      CREATE TABLE t1 (i INT) ENGINE=InnoDB PARTITION BY KEY(i) PARTITIONS 2;
      INSERT INTO t1 VALUES (1);
      ALTER TABLE t1 ADD SYSTEM VERSIONING;
        
      # Cleanup
      DROP TABLE t1;
      

      bb-10.3-temporal 8e8363bb754

      mysqld: /data/src/bb-10.3-temporal/storage/innobase/row/row0merge.cc:761: ulint row_merge_buf_add(row_merge_buf_t*, dict_index_t*, const dict_table_t*, const dict_table_t*, fts_psort_t*, const dtuple_t*, const row_ext_t*, doc_id_t*, mem_heap_t*, dberr_t*, mem_heap_t**, TABLE*, trx_t*): Assertion `len <= col->len || ((col->mtype) == 5 || (col->mtype) == 14)' failed.
      171214 16:55:02 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f118d88bee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055be6c7c0a6e in row_merge_buf_add (buf=0x7f112c041398, fts_index=0x0, old_table=0x7f112c00ebf8, new_table=0x7f112c03e618, psort_info=0x0, row=0x7f112c043f10, ext=0x0, doc_id=0x7f11880f17b0, conv_heap=0x0, err=0x7f11880f178c, v_heap=0x7f11880f17a8, my_table=0x7f112c08ccb0, trx=0x7f11833ff0d8) at /data/src/bb-10.3-temporal/storage/innobase/row/row0merge.cc:760
      #9  0x000055be6c7c6692 in row_merge_read_clustered_index (trx=0x7f11833ff0d8, table=0x7f112c08ccb0, old_table=0x7f112c00ebf8, new_table=0x7f112c03e618, online=false, index=0x7f112c03e178, fts_sort_idx=0x0, psort_info=0x0, files=0x7f112c09abb0, key_numbers=0x7f112c03e180, n_index=1, add_cols=0x7f112c03e230, add_v=0x0, col_map=0x7f112c03e308, add_autoinc=18446744073709551615, sequence=..., block=0x7f1180095000 <error: Cannot access memory at address 0x7f1180095000>, skip_pk_sort=true, tmpfd=0x7f11880f2308, stage=0x7f112c18dbc0, pct_cost=50, crypt_block=0x0, eval_table=0x7f112c08ccb0, drop_historical=false) at /data/src/bb-10.3-temporal/storage/innobase/row/row0merge.cc:2385
      #10 0x000055be6c7cd107 in row_merge_build_indexes (trx=0x7f11833ff0d8, old_table=0x7f112c00ebf8, new_table=0x7f112c03e618, online=false, indexes=0x7f112c03e178, key_numbers=0x7f112c03e180, n_indexes=1, table=0x7f112c08ccb0, add_cols=0x7f112c03e230, col_map=0x7f112c03e308, add_autoinc=18446744073709551615, sequence=..., skip_pk_sort=true, stage=0x7f112c18dbc0, add_v=0x0, eval_table=0x7f112c08ccb0, drop_historical=false) at /data/src/bb-10.3-temporal/storage/innobase/row/row0merge.cc:4786
      #11 0x000055be6c6b9de6 in ha_innobase::inplace_alter_table (this=0x7f112c06ca18, altered_table=0x7f112c08ccb0, ha_alter_info=0x7f11880f3260) at /data/src/bb-10.3-temporal/storage/innobase/handler/handler0alter.cc:7091
      #12 0x000055be6c144537 in handler::ha_inplace_alter_table (this=0x7f112c06ca18, altered_table=0x7f112c08ccb0, ha_alter_info=0x7f11880f3260) at /data/src/bb-10.3-temporal/sql/handler.h:4108
      #13 0x000055be6caef56f in ha_partition::inplace_alter_table (this=0x7f112c00d708, altered_table=0x7f112c08ccb0, ha_alter_info=0x7f11880f3260) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:9872
      #14 0x000055be6c144537 in handler::ha_inplace_alter_table (this=0x7f112c00d708, altered_table=0x7f112c08ccb0, ha_alter_info=0x7f11880f3260) at /data/src/bb-10.3-temporal/sql/handler.h:4108
      #15 0x000055be6c13a7ef in mysql_inplace_alter_table (thd=0x7f112c000b00, table_list=0x7f112c014d30, table=0x7f112c00cac0, altered_table=0x7f112c08ccb0, ha_alter_info=0x7f11880f3260, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7f11880f33d0, alter_ctx=0x7f11880f4070) at /data/src/bb-10.3-temporal/sql/sql_table.cc:7416
      #16 0x000055be6c1402fb in mysql_alter_table (thd=0x7f112c000b00, new_db=0x7f112c015368 "test", new_name=0x0, create_info=0x7f11880f4c90, table_list=0x7f112c014d30, alter_info=0x7f11880f4be0, order_num=0, order=0x0, ignore=false) at /data/src/bb-10.3-temporal/sql/sql_table.cc:9509
      #17 0x000055be6c1c8ad3 in Sql_cmd_alter_table::execute (this=0x7f112c015370, thd=0x7f112c000b00) at /data/src/bb-10.3-temporal/sql/sql_alter.cc:331
      #18 0x000055be6c06c936 in mysql_execute_command (thd=0x7f112c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:6255
      #19 0x000055be6c071468 in mysql_parse (thd=0x7f112c000b00, rawbuf=0x7f112c014c38 "ALTER TABLE t1 ADD SYSTEM VERSIONING", length=36, parser_state=0x7f11880f65f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7984
      #20 0x000055be6c05ebd4 in dispatch_command (command=COM_QUERY, thd=0x7f112c000b00, packet=0x7f112c160011 "ALTER TABLE t1 ADD SYSTEM VERSIONING", packet_length=36, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1829
      #21 0x000055be6c05d5f5 in do_command (thd=0x7f112c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1371
      #22 0x000055be6c1c364c in do_handle_one_connection (connect=0x55be6f1497b0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #23 0x000055be6c1c33d9 in handle_one_connection (arg=0x55be6f1497b0) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #24 0x000055be6c659456 in pfs_spawn_thread (arg=0x55be6f1f3030) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #25 0x00007f118f562494 in start_thread (arg=0x7f11880f7700) at pthread_create.c:333
      #26 0x00007f118d94893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Issue Links

          Activity

            People

              kevg Eugene Kosov (Inactive)
              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.