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

Assertion `!strcmp(index->table->name.m_name, "SYS_FOREIGN") || !strcmp(index->table->name.m_name, "SYS_FOREIGN_COLS")' failed in btr_node_ptr_max_size

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 (f BINARY(0), KEY (f)) ENGINE=InnoDB;
      INSERT IGNORE INTO t1 (f) VALUES ('a');
       
      # Cleanup
      DROP TABLE t1;
      

      10.2 1d30b7b1

      mysqld: /data/src/10.2/storage/innobase/btr/btr0cur.cc:794: ulint btr_node_ptr_max_size(const dict_index_t*): Assertion `!strcmp(index->table->name.m_name, "SYS_FOREIGN") || !strcmp(index->table->name.m_name, "SYS_FOREIGN_COLS")' failed.
      190408 16:47:28 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f43d9401ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x0000558742ed0720 in btr_node_ptr_max_size (index=0x7f4388070168) at /data/src/10.2/storage/innobase/btr/btr0cur.cc:791
      #9  0x0000558742ed154a in btr_cur_search_to_nth_level (index=0x7f4388070168, level=0, tuple=0x7f438809ad00, mode=PAGE_CUR_LE, latch_mode=2, cursor=0x7f43d40c27f0, has_search_latch=0, file=0x5587433490b8 "/data/src/10.2/storage/innobase/row/row0ins.cc", line=2925, mtr=0x7f43d40c3300, autoinc=0) at /data/src/10.2/storage/innobase/btr/btr0cur.cc:1165
      #10 0x0000558742dbd404 in row_ins_sec_index_entry_low (flags=0, mode=2, index=0x7f4388070168, offsets_heap=0x7f438800c410, heap=0x7f4388074780, entry=0x7f438809ad00, trx_id=0, thr=0x7f4388072750, dup_chk_only=false) at /data/src/10.2/storage/innobase/row/row0ins.cc:2925
      #11 0x0000558742dbe2c4 in row_ins_sec_index_entry (index=0x7f4388070168, entry=0x7f438809ad00, thr=0x7f4388072750, dup_chk_only=false) at /data/src/10.2/storage/innobase/row/row0ins.cc:3270
      #12 0x0000558742dbe431 in row_ins_index_entry (index=0x7f4388070168, entry=0x7f438809ad00, thr=0x7f4388072750) at /data/src/10.2/storage/innobase/row/row0ins.cc:3316
      #13 0x0000558742dbe91e in row_ins_index_entry_step (node=0x7f43880724f0, thr=0x7f4388072750) at /data/src/10.2/storage/innobase/row/row0ins.cc:3464
      #14 0x0000558742dbed11 in row_ins (node=0x7f43880724f0, thr=0x7f4388072750) at /data/src/10.2/storage/innobase/row/row0ins.cc:3607
      #15 0x0000558742dbf2ea in row_ins_step (thr=0x7f4388072750) at /data/src/10.2/storage/innobase/row/row0ins.cc:3833
      #16 0x0000558742ddbf6b in row_insert_for_mysql (mysql_rec=0x7f438817e9e0 "\375", '\245' <repeats 15 times>, prebuilt=0x7f4388071fd8) at /data/src/10.2/storage/innobase/row/row0mysql.cc:1414
      #17 0x0000558742ca33f4 in ha_innobase::write_row (this=0x7f438800a158, record=0x7f438817e9e0 "\375", '\245' <repeats 15 times>) at /data/src/10.2/storage/innobase/handler/ha_innodb.cc:8255
      #18 0x0000558742999155 in handler::ha_write_row (this=0x7f438800a158, buf=0x7f438817e9e0 "\375", '\245' <repeats 15 times>) at /data/src/10.2/sql/handler.cc:6043
      #19 0x00005587426ebbc1 in write_record (thd=0x7f4388000b00, table=0x7f43880713d0, info=0x7f43d40c44b0) at /data/src/10.2/sql/sql_insert.cc:1927
      #20 0x00005587426e96cb in mysql_insert (thd=0x7f4388000b00, table_list=0x7f4388012550, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=true) at /data/src/10.2/sql/sql_insert.cc:1057
      #21 0x0000558742710fba in mysql_execute_command (thd=0x7f4388000b00) at /data/src/10.2/sql/sql_parse.cc:4438
      #22 0x000055874271c475 in mysql_parse (thd=0x7f4388000b00, rawbuf=0x7f4388012458 "INSERT IGNORE INTO t1 (f) VALUES ('a')", length=38, parser_state=0x7f43d40c5200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8013
      #23 0x0000558742709f72 in dispatch_command (command=COM_QUERY, thd=0x7f4388000b00, packet=0x7f43880968b1 "INSERT IGNORE INTO t1 (f) VALUES ('a')", packet_length=38, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1832
      #24 0x000055874270888f in do_command (thd=0x7f4388000b00) at /data/src/10.2/sql/sql_parse.cc:1386
      #25 0x000055874285bf79 in do_handle_one_connection (connect=0x5587453cfdf0) at /data/src/10.2/sql/sql_connect.cc:1335
      #26 0x000055874285bd06 in handle_one_connection (arg=0x5587453cfdf0) at /data/src/10.2/sql/sql_connect.cc:1241
      #27 0x0000558742c8400a in pfs_spawn_thread (arg=0x5587453d5c00) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #28 0x00007f43db2f0494 in start_thread (arg=0x7f43d40c6700) at pthread_create.c:333
      #29 0x00007f43d94be93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible on 10.1.
      No obvious problem on a non-debug build.

      Attachments

        1. default.node.tld_thread-0.sql
          79 kB
          Roel Van de Paar
        2. MDEV-19216_trace.sql
          79 kB
          Roel Van de Paar

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.