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

MySQL#74504 - Assertion `map->bitmap && map2->bitmap && map->n_bits==map2->n_bits' failed in bitmap_union

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.0
    • None
    • OTHER

    Description

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

      CREATE TABLE t1(a int)PARTITION BY KEY (a) (PARTITION x0,PARTITION x1);
      lock tables t1 write,t1 as t0 write,t1 as t2 read;
      ALTER TABLE t1 MODIFY a CHAR(1)CHARACTER SET ucs2 COLLATE ucs2_czech_ci;
      ALTER TABLE t1 COALESCE PARTITION 1;

      10.0/mysys/my_bitmap.c:560: bitmap_union: Assertion `map->bitmap && map2->bitmap && map->n_bits==map2->n_bits' failed.
      141108 17:54:58 [ERROR] mysqld got signal 6 ;

      #6  0x00007fc1aa22c6f1 in *__GI___assert_fail (assertion=0x113ef10 "map->bitmap && map2->bitmap && map->n_bits==map2->n_bits", file=<optimized out>, line=560, function=0x113f039 "bitmap_union") at assert.c:81
      #7  0x0000000000e390a8 in bitmap_union (map=0x7fc196c7eef8, map2=0x7fc196e4b5d0) at 10.0/mysys/my_bitmap.c:559
      #8  0x0000000000e11310 in ha_partition::external_lock (this=0x7fc196c7e888, thd=0x7fc1a3f0b070, lock_type=1) at 10.0/sql/ha_partition.cc:3783
      #9  0x000000000087467c in handler::ha_external_lock (this=0x7fc196c7e888, thd=0x7fc1a3f0b070, lock_type=1) at 10.0/sql/handler.cc:5890
      #10 0x000000000094a78c in lock_external (thd=0x7fc1a3f0b070, tables=0x7fc196ce2d58, count=1) at 10.0/sql/lock.cc:359
      #11 0x000000000094a4e0 in mysql_lock_tables (thd=0x7fc1a3f0b070, sql_lock=0x7fc196ce2d30, flags=2155) at 10.0/sql/lock.cc:309
      #12 0x000000000094a3f1 in mysql_lock_tables (thd=0x7fc1a3f0b070, tables=0x7fc196f20258, count=1, flags=2155) at 10.0/sql/lock.cc:276
      #13 0x000000000061c24f in Locked_tables_list::reopen_tables (this=0x7fc1a3f0ebe8, thd=0x7fc1a3f0b070) at 10.0/sql/sql_base.cc:2964
      #14 0x00000000009d9de9 in handle_alter_part_error (lpt=0x7fc1ac1adaa0, action_completed=true, drop_partition=false, frm_install=false, close_table=false) at 10.0/sql/sql_partition.cc:6770
      #15 0x00000000009db000 in fast_alter_partition_table (thd=0x7fc1a3f0b070, table=0x7fc196c9fc70, alter_info=0x7fc1ac1af390, create_info=0x7fc1ac1af420, table_list=0x7fc196e1d180, db=0x7fc196e1d758 "test", table_name=0x7fc196e1d148 "t1") at 10.0/sql/sql_partition.cc:7181
      #16 0x0000000000730735 in mysql_alter_table (thd=0x7fc1a3f0b070, new_db=0x7fc196e1d758 "test", new_name=0x0, create_info=0x7fc1ac1af420, table_list=0x7fc196e1d180, alter_info=0x7fc1ac1af390, order_num=0, order=0x0, ignore=false) at 10.0/sql/sql_table.cc:8518
      #17 0x0000000000798d74 in Sql_cmd_alter_table::execute (this=0x7fc196e1d768, thd=0x7fc1a3f0b070) at 10.0/sql/sql_alter.cc:312
      #18 0x00000000006827c8 in mysql_execute_command (thd=0x7fc1a3f0b070) at 10.0/sql/sql_parse.cc:5078
      #19 0x000000000068586f in mysql_parse (thd=0x7fc1a3f0b070, rawbuf=0x7fc196e1d088 "ALTER TABLE t1 COALESCE PARTITION 1", length=35, parser_state=0x7fc1ac1b0630) at 10.0/sql/sql_parse.cc:6407
      #20 0x0000000000678652 in dispatch_command (command=COM_QUERY, thd=0x7fc1a3f0b070, packet=0x7fc198ff2071 "ALTER TABLE t1 COALESCE PARTITION 1", packet_length=35) at 10.0/sql/sql_parse.cc:1299
      #21 0x00000000006779f7 in do_command (thd=0x7fc1a3f0b070) at 10.0/sql/sql_parse.cc:996
      #22 0x00000000007944aa in do_handle_one_connection (thd_arg=0x7fc1a3f0b070) at 10.0/sql/sql_connect.cc:1379
      #23 0x00000000007941fd in handle_one_connection (arg=0x7fc1a3f0b070) at 10.0/sql/sql_connect.cc:1293
      #24 0x0000000000ccb4a6 in pfs_spawn_thread (arg=0x7fc1a3fd9df0) at 10.0/storage/perfschema/pfs.cc:1860
      #25 0x00007fc1abde5b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #26 0x00007fc1aa2dd20d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      bzr version-info
      revision-id: sergii@pisem.net-20141103164737-457hfby1eg82zol9
      date: 2014-11-03 17:47:37 +0100
      build-date: 2014-11-08 18:03:42 +0400
      revno: 4471
      branch-nick: 10.0

      Attachments

        1. mysql.err
          7 kB
        2. mysqld.log
          101 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.