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

Assertion `bit < (map)->n_bits' failed in bitmap_is_set

    XMLWordPrintable

Details

    Description

      Notes:

      • the test case has seemingly nothing to do with versioning, but it only fails on bb-10.3-temporal (and on tempesta-tech/mariadb), so I suppose it's related to some new code introduced in the tree (hence the regression label);
      • recently there the same assertion failure MDEV-13719 fixed for replication scenario. The fix naturally does not help for this case, but maybe it give the idea.

      --source include/have_innodb.inc
      --source include/have_partition.inc
       
      CREATE OR REPLACE TABLE t1 (pk int) ENGINE=InnoDB PARTITION BY RANGE(pk) (PARTITION p1 VALUES LESS THAN (1), PARTITION p2 VALUES LESS THAN (3));
      LOCK TABLE t1 WRITE;
      --error ER_SAME_NAME_PARTITION
      SET STATEMENT lock_wait_timeout=5 FOR ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (1));
      SELECT * FROM t1;
       
      # Cleanup
      DROP TABLE t1;
      

      bb-10.3-temporal a3a15126f26

      mysqld: /data/src/bb-10.3-temporal/include/my_bitmap.h:133: uint bitmap_is_set(const MY_BITMAP*, uint): Assertion `bit < (map)->n_bits' failed.
      180101 17:38:41 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fb070d29ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055e0b0bc1d77 in bitmap_is_set (map=0x7fb01c071f00, bit=2) at /data/src/bb-10.3-temporal/include/my_bitmap.h:133
      #9  0x000055e0b0bd1732 in make_used_partitions_str (alloc=0x7fb01c005ee8, part_info=0x7fb01c071dd8, parts_str=0x7fb01c0173f8, used_partitions_list=...) at /data/src/bb-10.3-temporal/sql/sql_partition.cc:7310
      #10 0x000055e0b079cfd7 in st_join_table::save_explain_data (this=0x7fb01c016620, eta=0x7fb01c0173b8, prefix_tables=0, distinct_arg=false, first_top_tab=0x7fb01c016620) at /data/src/bb-10.3-temporal/sql/sql_select.cc:25234
      #11 0x000055e0b079f0d0 in JOIN::save_explain_data_intern (this=0x7fb01c015528, output=0x7fb01c017140, need_tmp_table_arg=false, need_order_arg=false, distinct_arg=false, message=0x0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:25805
      #12 0x000055e0b0765231 in JOIN::save_explain_data (this=0x7fb01c015528, output=0x7fb01c017140, can_overwrite=false, need_tmp_table=false, need_order=false, distinct=false) at /data/src/bb-10.3-temporal/sql/sql_select.cc:3807
      #13 0x000055e0b075cf24 in JOIN::build_explain (this=0x7fb01c015528) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1517
      #14 0x000055e0b075d0f4 in JOIN::optimize (this=0x7fb01c015528) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1562
      #15 0x000055e0b0766814 in mysql_select (thd=0x7fb01c000b00, tables=0x7fb01c014e30, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2149845760, result=0x7fb01c015508, unit=0x7fb01c004898, select_lex=0x7fb01c004ff0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:4244
      #16 0x000055e0b075893e in handle_select (thd=0x7fb01c000b00, lex=0x7fb01c0047d0, result=0x7fb01c015508, setup_tables_done_option=0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:382
      #17 0x000055e0b0723aa1 in execute_sqlcom_select (thd=0x7fb01c000b00, all_tables=0x7fb01c014e30) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:6535
      #18 0x000055e0b071a0e5 in mysql_execute_command (thd=0x7fb01c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:3749
      #19 0x000055e0b07273f6 in mysql_parse (thd=0x7fb01c000b00, rawbuf=0x7fb01c014c48 "SELECT * FROM t1", length=16, parser_state=0x7fb0641235f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
      #20 0x000055e0b0714b97 in dispatch_command (command=COM_QUERY, thd=0x7fb01c000b00, packet=0x7fb01c120201 "SELECT * FROM t1", packet_length=16, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
      #21 0x000055e0b07135cb in do_command (thd=0x7fb01c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
      #22 0x000055e0b087b354 in do_handle_one_connection (connect=0x55e0b44f2810) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #23 0x000055e0b087b0e1 in handle_one_connection (arg=0x55e0b44f2810) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #24 0x000055e0b0d15c5a in pfs_spawn_thread (arg=0x55e0b4539050) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #25 0x00007fb072a00494 in start_thread (arg=0x7fb064124700) at pthread_create.c:333
      #26 0x00007fb070de693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              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.