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

Assertion `bitmap_is_set_all(&table->s->all_set)' failed in handler::ha_reset upon SELECT under READ UNCOMMITTED from table with index on virtual column

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
       
      CREATE TABLE t1 ( 
        a INT,
        b INT,
        c INT,
        v INT AS (a) VIRTUAL,
        INDEX(c,v)
      ) ENGINE=InnoDB;
      SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
      INSERT INTO t1 (c) VALUES (9);
      SELECT * FROM t1 WHERE c BETWEEN 1 AND 6 ORDER BY b;
       
      # Cleanup
      DROP TABLE t1;
      

      10.2 53440e2dda8b3

      mysqld: /data/src/10.2/sql/handler.cc:5931: int handler::ha_reset(): Assertion `bitmap_is_set_all(&table->s->all_set)' failed.
      181209 22:22:53 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007ffa1c4ddee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x0000555ceacfbeaa in handler::ha_reset (this=0x7ff9c4009d28) at /data/src/10.2/sql/handler.cc:5931
      #9  0x0000555cea9ffdb1 in close_thread_table (thd=0x7ff9c4000b00, table_ptr=0x7ff9c4000be0) at /data/src/10.2/sql/sql_base.cc:894
      #10 0x0000555cea9ffb2f in close_thread_tables (thd=0x7ff9c4000b00) at /data/src/10.2/sql/sql_base.cc:851
      #11 0x0000555ceaa7db98 in mysql_execute_command (thd=0x7ff9c4000b00) at /data/src/10.2/sql/sql_parse.cc:6305
      #12 0x0000555ceaa82725 in mysql_parse (thd=0x7ff9c4000b00, rawbuf=0x7ff9c4012448 "SELECT * FROM t1 WHERE c BETWEEN 1 AND 6 ORDER BY b", length=51, parser_state=0x7ffa14148200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8013
      #13 0x0000555ceaa7005d in dispatch_command (command=COM_QUERY, thd=0x7ff9c4000b00, packet=0x7ff9c40960c1 "", packet_length=51, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1824
      #14 0x0000555ceaa6e9c0 in do_command (thd=0x7ff9c4000b00) at /data/src/10.2/sql/sql_parse.cc:1378
      #15 0x0000555ceabc1131 in do_handle_one_connection (connect=0x555cee91ee20) at /data/src/10.2/sql/sql_connect.cc:1335
      #16 0x0000555ceabc0ebe in handle_one_connection (arg=0x555cee91ee20) at /data/src/10.2/sql/sql_connect.cc:1241
      #17 0x0000555ceafe6b88 in pfs_spawn_thread (arg=0x555cee86a2d0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #18 0x00007ffa1df99494 in start_thread (arg=0x7ffa14149700) at pthread_create.c:333
      #19 0x00007ffa1c59a93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      No visible effect on a non-debug build.

      Attachments

        Activity

          People

            nikitamalyavin Nikita Malyavin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            7 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.