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

Server crashes in in TABLE::mark_default_fields_for_write

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (
        a CHAR(8) CHARACTER SET utf8,
        b TEXT CHARACTER SET utf8 DEFAULT ''
      );
       
      --error ER_KEY_COLUMN_DOES_NOT_EXITS
      ALTER TABLE t1 ADD KEY(non_existing_col);
       
      INSERT INTO t1 (a) VALUES ('foo');
       
      # Cleanup
      DROP TABLE t1;
      

      10.2 a3476a5de2ee87

      #3  <signal handler called>
      #4  0x00005593ee38919f in TABLE::mark_default_fields_for_write (this=0x7fcbdc00a2c0, is_insert=true) at /data/src/10.2/sql/table.cc:6692
      #5  0x00005593ee38871f in TABLE::mark_columns_needed_for_insert (this=0x7fcbdc00a2c0) at /data/src/10.2/sql/table.cc:6412
      #6  0x00005593ee2591ee in mysql_insert (thd=0x7fcbdc000b00, table_list=0x7fcbdc0125d8, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /data/src/10.2/sql/sql_insert.cc:904
      #7  0x00005593ee280f4f in mysql_execute_command (thd=0x7fcbdc000b00) at /data/src/10.2/sql/sql_parse.cc:4414
      #8  0x00005593ee28bea2 in mysql_parse (thd=0x7fcbdc000b00, rawbuf=0x7fcbdc0124e8 "INSERT INTO t1 (a) VALUES ('foo')", length=33, parser_state=0x7fcbecde3200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7896
      #9  0x00005593ee279dd4 in dispatch_command (command=COM_QUERY, thd=0x7fcbdc000b00, packet=0x7fcbdc170451 "INSERT INTO t1 (a) VALUES ('foo')", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1805
      #10 0x00005593ee278732 in do_command (thd=0x7fcbdc000b00) at /data/src/10.2/sql/sql_parse.cc:1360
      #11 0x00005593ee3c6351 in do_handle_one_connection (connect=0x5593f0dd4110) at /data/src/10.2/sql/sql_connect.cc:1354
      #12 0x00005593ee3c60de in handle_one_connection (arg=0x5593f0dd4110) at /data/src/10.2/sql/sql_connect.cc:1260
      #13 0x00005593ee7e4a76 in pfs_spawn_thread (arg=0x5593f0d33000) at /data/src/10.2/storage/perfschema/pfs.cc:1863
      #14 0x00007fcbf47de494 in start_thread (arg=0x7fcbecde4700) at pthread_create.c:333
      #15 0x00007fcbf2bc493f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Reproducible with MyISAM, Aria, InnoDB.
      Not reproducible on 10.1.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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.