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

Assertion `(*(map2)->last_word_ptr & (map2)->last_bit_mask) == 0' failed in bitmap_copy

    XMLWordPrintable

Details

    Description

      --source include/master-slave.inc
       
      CREATE TABLE t1(a INT KEY);
      SET binlog_row_image=NOBLOB;
      BINLOG 'AMqaOw8BAAAAdAAAAHgAAAAAAAQANS42LjM0LTc5LjEtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAYVx w2w=';
      binlog 'bBf2ZBMBAAAANAAAAHUkAAAAAHEAAAAAAAEABHRlc3QAAnQxAAQDDw8IBP0C4h0AaTGFIg==bBf2ZBgBAAAASAAAAL0kAAAAAHEAAAAAAAEABP//8I+kAAABAGIBAGWuv1VNCQAAAPBuWwAAAQBiAQBlrr9VTQkAAADxS9Lu';
      

      Leads to:

      10.6.19 f6fcfc1a6a058fd7cac6bf53216ea73f3a04b22d (Debug)

      mariadbd: /test/10.6_dbg/mysys/my_bitmap.c:603: bitmap_copy: Assertion `(*(map2)->last_word_ptr & (map2)->last_bit_mask) == 0' failed.
      

      10.6.19 f6fcfc1a6a058fd7cac6bf53216ea73f3a04b22d (Debug)

      Core was generated by `/test/MD030724-mariadb-10.6.19-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x14e858b08700 (LWP 2400910))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014e86eaa0859 in __GI_abort () at abort.c:79
      #2  0x000014e86eaa0729 in __assert_fail_base (fmt=0x14e86ec36588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55aa89d61208 "(*(map2)->last_word_ptr & (map2)->last_bit_mask) == 0", file=0x55aa89d60ed0 "/test/10.6_dbg/mysys/my_bitmap.c", line=603, function=<optimized out>) at assert.c:92
      #3  0x000014e86eab1fd6 in __GI___assert_fail (assertion=assertion@entry=0x55aa89d61208 "(*(map2)->last_word_ptr & (map2)->last_bit_mask) == 0", file=file@entry=0x55aa89d60ed0 "/test/10.6_dbg/mysys/my_bitmap.c", line=line@entry=603, function=function@entry=0x55aa89d614a8 <__PRETTY_FUNCTION__.19644> "bitmap_copy") at assert.c:101
      #4  0x000055aa89873e10 in bitmap_copy (map1=map1@entry=0x14e82802e4f0, map2=0x14e82802e4a0) at /test/10.6_dbg/mysys/my_bitmap.c:603
      #5  0x000055aa88eb85f4 in TABLE::mark_columns_per_binlog_row_image (this=0x14e82802e348) at /test/10.6_dbg/sql/table.cc:7914
      #6  0x000055aa8920bec0 in Update_rows_log_event::do_exec_row (this=0x14e82802b098, rgi=0x14e828026e00) at /test/10.6_dbg/sql/log_event_server.cc:8540
      #7  0x000055aa891fc068 in Rows_log_event::do_apply_event (this=0x14e82802b098, rgi=0x14e828026e00) at /test/10.6_dbg/sql/log_event_server.cc:5842
      #8  0x000055aa88ed6b07 in Log_event::apply_event (rgi=0x14e828026e00, this=0x14e82802b098) at /test/10.6_dbg/sql/log_event.h:1509
      #9  mysql_client_binlog_statement (thd=thd@entry=0x14e828000d48) at /test/10.6_dbg/sql/sql_binlog.cc:376
      #10 0x000055aa88daadf9 in mysql_execute_command (thd=thd@entry=0x14e828000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:6039
      #11 0x000055aa88d926c7 in mysql_parse (thd=thd@entry=0x14e828000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14e858b07300) at /test/10.6_dbg/sql/sql_parse.cc:8163
      #12 0x000055aa88da0ab2 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14e828000d48, packet=packet@entry=0x14e82800b059 "binlog 'bBf2ZBMBAAAANAAAAHUkAAAAAHEAAAAAAAEABHRlc3QAAnQxAAQDDw8IBP0C4h0AaTGFIg==bBf2ZBgBAAAASAAAAL0kAAAAAHEAAAAAAAEABP//8I+kAAABAGIBAGWuv1VNCQAAAPBuWwAAAQBiAQBlrr9VTQkAAADxS9Lu'", packet_length=packet_length@entry=177, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1417
      #13 0x000055aa88da3438 in do_command (thd=0x14e828000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1410
      #14 0x000055aa88efd753 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55aa8ccb83c8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1417
      #15 0x000055aa88efdd08 in handle_one_connection (arg=arg@entry=0x55aa8ccb83c8) at /test/10.6_dbg/sql/sql_connect.cc:1319
      #16 0x000055aa89379cd2 in pfs_spawn_thread (arg=0x55aa8ccbaf68) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
      #17 0x000014e86efb1609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #18 0x000014e86eb9d133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.6.19 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.26 (dbg), 10.5.26 (opt), 10.6.19 (opt), 10.11.9 (dbg), 10.11.9 (opt), 11.1.6 (dbg), 11.1.6 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.2 (dbg), 11.5.2 (opt)

      Attachments

        Activity

          People

            Elkin Andrei Elkin
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.