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

DDL: crash after uninitialized read in row_merge_buf_add

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Linux x64, Win x64

      Description

      Version: '10.0.1-MariaDB' Source distribution
      Conditional jump or move depends on uninitialised value(s)
      at: row_merge_buf_add (row0merge.cc:398)
      by: row_merge_read_clustered_index (row0merge.cc:269)
      by: row_merge_build_indexes (row0merge.cc:2994)
      by: ha_innobase::add_index (handler0alter.cc:1303)
      by: mysql_alter_table (sql_table.cc:6958)
      by: Alter_table_statement::execute (sql_alter.cc:106)
      by: mysql_execute_command (sql_parse.cc:4834)
      by: mysql_parse (sql_parse.cc:6124)
      by: dispatch_command (sql_parse.cc:1266)
      by: do_handle_one_connection (sql_connect.cc:1267)
      by: handle_one_connection (sql_connect.cc:1181)
      by: start_thread (pthread_create.c:309)
      
      
      --source include/have_innodb.inc
      --disable_abort_on_error
      
      drop table if exists `i` ;
      create table `i`(`t` char (3))engine=innodb row_format=compact default charset=latin1;
      insert `i` values ('a') ;
      alter table `i` add column `l` int,add column `j` int not null  ;
      alter table `i` add fulltext index (`t`) ,add fulltext index (`t`) ;
      alter table `i` add unique (`j`);
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              elenst Elena Stepanova added a comment -

              Assertion failure on a debug build:

              InnoDB: Assertion failure in thread 139798702454528 in file row0merge.cc line 1325
              InnoDB: Failing assertion: n_cols == dict_table_get_n_cols(new_table)

              Also reproducible on MySQL 5.6.5 (InnoDB from which MariaDB 10.0.1 includes), but not on 5.6.10, so hopefully it will be fixed automatically by the merge, along with other 5.6.5-InnoDB-specific bugs

              Show
              elenst Elena Stepanova added a comment - Assertion failure on a debug build: InnoDB: Assertion failure in thread 139798702454528 in file row0merge.cc line 1325 InnoDB: Failing assertion: n_cols == dict_table_get_n_cols(new_table) Also reproducible on MySQL 5.6.5 (InnoDB from which MariaDB 10.0.1 includes), but not on 5.6.10, so hopefully it will be fixed automatically by the merge, along with other 5.6.5-InnoDB-specific bugs
              Hide
              elenst Elena Stepanova added a comment -

              Since the upstream bug has apparently been fixed, and the fix is expected to make it to 10.0 with a merge, I'm reducing the priority.

              Show
              elenst Elena Stepanova added a comment - Since the upstream bug has apparently been fixed, and the fix is expected to make it to 10.0 with a merge, I'm reducing the priority.
              Hide
              serg Sergei Golubchik added a comment -

              Could you please test whether it was fixed?

              Show
              serg Sergei Golubchik added a comment - Could you please test whether it was fixed?
              Hide
              elenst Elena Stepanova added a comment -

              Fixed in 10.0.4

              Show
              elenst Elena Stepanova added a comment - Fixed in 10.0.4

                People

                • Assignee:
                  elenst Elena Stepanova
                  Reporter:
                  sbester1 sbester1
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: