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

MySQL#74664 - InnoDB: Failing assertion: len <= col->len || col->mtype == 5 || (col->len == 0 && col->mtype == 1) in file rem0rec.cc line 845

    XMLWordPrintable

Details

    • 5.5.47-1

    Description

      Initially reported by Ramesh Sivaraman as http://bugs.mysql.com/bug.php?id=74664, refiling to make it searchable in Jira and to preserve the test case.

      DROP DATABASE test;CREATE DATABASE test;USE test;
      set character_set_connection=ucs2;
      create TABLE t1 select if(0=0,'Y','N');
      insert INTO t1 values(date_format('2001-01-01','%W'));

      InnoDB: Assertion failure in thread 140670201579264 in file rem0rec.cc line 845
      InnoDB: Failing assertion: len <= col->len || col->mtype == 5 || (col->len == 0 && col->mtype == 1)
      InnoDB: We intentionally generate a memory trap.

      #5  0x00007ff0536d97c0 in *__GI_abort () at abort.c:92
      #6  0x0000000000ac9361 in rec_get_converted_size_comp_prefix_low (index=0x7ff040014ff8, fields=0x7ff0400148b0, n_fields=4, extra=0x0, temp=false) at 10.0/storage/xtradb/rem/rem0rec.cc:844
      #7  0x0000000000ac9791 in rec_get_converted_size_comp (index=0x7ff040014ff8, status=0, fields=0x7ff0400148b0, n_fields=4, extra=0x0) at 10.0/storage/xtradb/rem/rem0rec.cc:956
      #8  0x0000000000bad59f in rec_get_converted_size (index=0x7ff040014ff8, dtuple=0x7ff040014878, n_ext=0) at 10.0/storage/xtradb/include/rem0rec.ic:1606
      #9  0x0000000000bb298b in btr_cur_optimistic_insert (flags=0, cursor=0x7ff055651f70, offsets=0x7ff0556524e0, heap=0x7ff0556524d0, entry=0x7ff040014878, rec=0x7ff0556524c8, big_rec=0x7ff0556524d8, n_ext=0, thr=0x7ff0400bf738, mtr=0x7ff055651ff0) at 10.0/storage/xtradb/btr/btr0cur.cc:1392
      #10 0x0000000000ae7918 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ff040014ff8, n_uniq=0, entry=0x7ff040014878, n_ext=0, thr=0x7ff0400bf738) at 10.0/storage/xtradb/row/row0ins.cc:2503
      #11 0x0000000000ae8813 in row_ins_clust_index_entry (index=0x7ff040014ff8, entry=0x7ff040014878, thr=0x7ff0400bf738, n_ext=0) at 10.0/storage/xtradb/row/row0ins.cc:2909
      #12 0x0000000000ae8b24 in row_ins_index_entry (index=0x7ff040014ff8, entry=0x7ff040014878, thr=0x7ff0400bf738) at 10.0/storage/xtradb/row/row0ins.cc:3007
      #13 0x0000000000ae8de7 in row_ins_index_entry_step (node=0x7ff0400bf518, thr=0x7ff0400bf738) at 10.0/storage/xtradb/row/row0ins.cc:3084
      #14 0x0000000000ae90fb in row_ins (node=0x7ff0400bf518, thr=0x7ff0400bf738) at 10.0/storage/xtradb/row/row0ins.cc:3224
      #15 0x0000000000ae9460 in row_ins_step (thr=0x7ff0400bf738) at 10.0/storage/xtradb/row/row0ins.cc:3349
      #16 0x0000000000affa54 in row_insert_for_mysql (mysql_rec=0x7ff040028e88 "\004", prebuilt=0x7ff0400bf078) at 10.0/storage/xtradb/row/row0mysql.cc:1314
      #17 0x0000000000a09bbe in ha_innobase::write_row (this=0x7ff040229088, record=0x7ff040028e88 "\004") at 10.0/storage/xtradb/handler/ha_innodb.cc:7577
      #18 0x0000000000874a2e in handler::ha_write_row (this=0x7ff040229088, buf=0x7ff040028e88 "\004") at 10.0/sql/handler.cc:5961
      #19 0x000000000065fdf6 in write_record (thd=0x7ff04d30b070, table=0x7ff04009e470, info=0x7ff0556529c0) at 10.0/sql/sql_insert.cc:1835
      #20 0x000000000065daad in mysql_insert (thd=0x7ff04d30b070, table_list=0x7ff04021d1a0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 10.0/sql/sql_insert.cc:960
      #21 0x000000000067d61e in mysql_execute_command (thd=0x7ff04d30b070) at 10.0/sql/sql_parse.cc:3432
      #22 0x000000000068586f in mysql_parse (thd=0x7ff04d30b070, rawbuf=0x7ff04021d088 "insert INTO t1 values(date_format('2001-01-01','%W'))", length=53, parser_state=0x7ff055653630) at 10.0/sql/sql_parse.cc:6407
      #23 0x0000000000678652 in dispatch_command (command=COM_QUERY, thd=0x7ff04d30b070, packet=0x7ff0423f2071 "insert INTO t1 values(date_format('2001-01-01','%W'))", packet_length=53) at 10.0/sql/sql_parse.cc:1299
      #24 0x00000000006779f7 in do_command (thd=0x7ff04d30b070) at 10.0/sql/sql_parse.cc:996
      #25 0x00000000007944aa in do_handle_one_connection (thd_arg=0x7ff04d30b070) at 10.0/sql/sql_connect.cc:1379
      #26 0x00000000007941fd in handle_one_connection (arg=0x7ff04d30b070) at 10.0/sql/sql_connect.cc:1293
      #27 0x0000000000ccb4a6 in pfs_spawn_thread (arg=0x7ff04d3d9df0) at 10.0/storage/perfschema/pfs.cc:1860
      #28 0x00007ff055288b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #29 0x00007ff05378020d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Stack trace from

      revision-id: sergii@pisem.net-20141103164737-457hfby1eg82zol9
      date: 2014-11-03 17:47:37 +0100
      build-date: 2014-11-09 04:23:26 +0400
      revno: 4471
      branch-nick: 10.0

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.