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

Assertion `inited==NONE' failed in handler::ha_index_read_idx_map upon REPLACE DELAYED

    Details

      Description

      CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=MEMORY;
      INSERT INTO t1 VALUES (1),(2);
       
      flush status; # not needed for the test case, only for cleanup
      REPLACE DELAYED INTO t1 VALUES (1);
       
      # Cleanup
      let $show_statement= SHOW STATUS LIKE 'Delayed_writes';
      let $field= Value;
      let $condition= = 1;
      --source include/wait_show_condition.inc
      DROP TABLE t1;
      

      10.2 b90918da

      mysqld: /data/src/10.2/sql/handler.cc:2701: int handler::ha_index_read_idx_map(uchar*, uint, const uchar*, key_part_map, ha_rkey_function): Assertion `inited==NONE' failed.
      190525 21:09:05 [ERROR] mysqld got signal 6 ;
       
      #6  0x00007f6accc86e67 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x55f22c481e65 "inited==NONE", file=file@entry=0x55f22c4822d1 "/data/src/10.2/sql/handler.cc", line=line@entry=2701, function=function@entry=0x55f22c4849e0 <handler::ha_index_read_idx_map(unsigned char*, unsigned int, unsigned char const*, unsigned long, ha_rkey_function)::__PRETTY_FUNCTION__> "int handler::ha_index_read_idx_map(uchar*, uint, const uchar*, key_part_map, ha_rkey_function)") at assert.c:92
      #7  0x00007f6accc86f12 in __GI___assert_fail (assertion=0x55f22c481e65 "inited==NONE", file=0x55f22c4822d1 "/data/src/10.2/sql/handler.cc", line=2701, function=0x55f22c4849e0 <handler::ha_index_read_idx_map(unsigned char*, unsigned int, unsigned char const*, unsigned long, ha_rkey_function)::__PRETTY_FUNCTION__> "int handler::ha_index_read_idx_map(uchar*, uint, const uchar*, key_part_map, ha_rkey_function)") at assert.c:101
      #8  0x000055f22bbae18e in handler::ha_index_read_idx_map (this=0x7f6aac00bea8, buf=0x7f6aac0310a8 "\245\245\245\245\245\245\245\245\300\020\003\254j\177", index=0, key=0x7f6ac2f41cf0 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at /data/src/10.2/sql/handler.cc:2701
      #9  0x000055f22b909978 in write_record (thd=0x7f6aac07be50, table=0x7f6aac0695d0, info=0x7f6aac081710) at /data/src/10.2/sql/sql_insert.cc:1742
      #10 0x000055f22b90d6d7 in Delayed_insert::handle_inserts (this=0x7f6aac07be30) at /data/src/10.2/sql/sql_insert.cc:3296
      #11 0x000055f22b90cb67 in handle_delayed_insert (arg=0x7f6aac07be30) at /data/src/10.2/sql/sql_insert.cc:3041
      #12 0x000055f22c2a6008 in pfs_spawn_thread (arg=0x7f6aac054d80) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #13 0x00007f6ace7fb4a4 in start_thread (arg=0x7f6ac2f42700) at pthread_create.c:456
      #14 0x00007f6accd43d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
      

      Not reproducible with 10.1.

        Attachments

          Activity

            People

            • Assignee:
              sanja Oleksandr Byelkin
              Reporter:
              elenst Elena Stepanova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: