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

Assertion `(bitmap->map + (bitmap->full_head_size/6*6)) <= full_head_end' failed in _ma_check_bitmap

    XMLWordPrintable

Details

    Description

      The test case is attached as mdev18457.test. It consists of only a few statements,

      • CREATE DATABASE ...
      • CREATE PROCEDURE ...
      • CREATE PROCEDURE ...
      • CREATE PROCEDURE ...
      • SHOW PROCEDURE STATUS <= fails
      • cleanup

      but the bodies of the procedures contain long strings, which make JIRA unhappy, thus the attachment.

      10.4 625aa232

      mysqld: /data/src/10.4/storage/maria/ma_bitmap.c:3008: _ma_check_bitmap: Assertion `(bitmap->map + (bitmap->full_head_size/6*6)) <= full_head_end' failed.
      190323 21:35:27 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fe822ed5ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000056269365d50a in _ma_check_bitmap (bitmap=0x7fe80c139d98) at /data/src/10.4/storage/maria/ma_bitmap.c:3008
      #9  0x000056269365be5f in set_page_bits (info=0x7fe80c12d150, bitmap=0x7fe80c139d98, page=17, fill_pattern=2) at /data/src/10.4/storage/maria/ma_bitmap.c:2355
      #10 0x000056269365cb67 in _ma_bitmap_release_unused (info=0x7fe80c12d150, blocks=0x7fe80c12d1c0) at /data/src/10.4/storage/maria/ma_bitmap.c:2742
      #11 0x000056269364cafe in write_block_record (info=0x7fe80c12d150, old_record=0x0, record=0x7fe80c05f3f8 "\377\376\003sp3", row=0x7fe80c12d1c0, bitmap_blocks=0x7fe80c12d1c0, head_block_is_read=1 '\001', row_pos=0x7fe81d04bc00, undo_lsn=1, old_record_checksum=0) at /data/src/10.4/storage/maria/ma_blockrec.c:3428
      #12 0x000056269364d0bc in allocate_and_write_block_record (info=0x7fe80c12d150, record=0x7fe80c05f3f8 "\377\376\003sp3", row=0x7fe80c12d1c0, undo_lsn=1) at /data/src/10.4/storage/maria/ma_blockrec.c:3564
      #13 0x000056269364d1ca in _ma_write_init_block_record (info=0x7fe80c12d150, record=0x7fe80c05f3f8 "\377\376\003sp3") at /data/src/10.4/storage/maria/ma_blockrec.c:3604
      #14 0x000056269365f1fb in maria_write (info=0x7fe80c12d150, record=0x7fe80c05f3f8 "\377\376\003sp3") at /data/src/10.4/storage/maria/ma_write.c:157
      #15 0x00005626935e260b in ha_maria::write_row (this=0x7fe80c00c1d8, buf=0x7fe80c05f3f8 "\377\376\003sp3") at /data/src/10.4/storage/maria/ha_maria.cc:1326
      #16 0x0000562693108db0 in handler::ha_write_tmp_row (this=0x7fe80c00c1d8, buf=0x7fe80c05f3f8 "\377\376\003sp3") at /data/src/10.4/sql/sql_class.h:6622
      #17 0x000056269311af8d in schema_table_store_record (thd=0x7fe80c000b00, table=0x7fe80c126258) at /data/src/10.4/sql/sql_show.cc:3903
      #18 0x0000562693125063 in store_schema_proc (thd=0x7fe80c000b00, table=0x7fe80c126258, proc_table=0x7fe80c02c7f0, wild=0x0, full_access=true, sp_user=0x7fe81d04d570 "root@localhost") at /data/src/10.4/sql/sql_show.cc:6512
      #19 0x0000562693125462 in fill_schema_proc (thd=0x7fe80c000b00, tables=0x7fe80c0163d0, cond=0x0) at /data/src/10.4/sql/sql_show.cc:6573
      #20 0x000056269312f87e in get_schema_tables_result (join=0x7fe80c019048, executed_place=PROCESSED_BY_JOIN_EXEC) at /data/src/10.4/sql/sql_show.cc:8878
      #21 0x00005626930c409c in JOIN::exec_inner (this=0x7fe80c019048) at /data/src/10.4/sql/sql_select.cc:4328
      #22 0x00005626930c3522 in JOIN::exec (this=0x7fe80c019048) at /data/src/10.4/sql/sql_select.cc:4153
      #23 0x00005626930c4bd4 in mysql_select (thd=0x7fe80c000b00, tables=0x7fe80c0163d0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7fe80c019020, unit=0x7fe80c004a20, select_lex=0x7fe80c0051f8) at /data/src/10.4/sql/sql_select.cc:4585
      #24 0x00005626930b514c in handle_select (thd=0x7fe80c000b00, lex=0x7fe80c004958, result=0x7fe80c019020, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:424
      #25 0x000056269307e575 in execute_sqlcom_select (thd=0x7fe80c000b00, all_tables=0x7fe80c0163d0) at /data/src/10.4/sql/sql_parse.cc:6601
      #26 0x0000562693073a47 in mysql_execute_command (thd=0x7fe80c000b00) at /data/src/10.4/sql/sql_parse.cc:3889
      #27 0x00005626930824b5 in mysql_parse (thd=0x7fe80c000b00, rawbuf=0x7fe80c0155d8 "SHOW PROCEDURE STATUS", length=21, parser_state=0x7fe81d04f180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8154
      #28 0x000056269306dc2a in dispatch_command (command=COM_QUERY, thd=0x7fe80c000b00, packet=0x7fe80c043351 "SHOW PROCEDURE STATUS", packet_length=21, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1832
      #29 0x000056269306c410 in do_command (thd=0x7fe80c000b00) at /data/src/10.4/sql/sql_parse.cc:1365
      #30 0x00005626931e64eb in do_handle_one_connection (connect=0x5626958c24e0) at /data/src/10.4/sql/sql_connect.cc:1398
      #31 0x00005626931e625c in handle_one_connection (arg=0x5626958c24e0) at /data/src/10.4/sql/sql_connect.cc:1301
      #32 0x00005626936dc0c9 in pfs_spawn_thread (arg=0x5626959b48d0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
      #33 0x00007fe824dc4494 in start_thread (arg=0x7fe81d050700) at pthread_create.c:333
      #34 0x00007fe822f9293f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible with this test case on 10.1.

      Attachments

        Activity

          People

            monty Michael Widenius
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.