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

Assertion `!maria_assert_if_crashed_table' failed in _ma_read_block_record

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL)
    • 10.5, 10.6, 10.11
    • Storage Engine - Aria
    • None

    Description

      # mysqld options required for replay:  --debug-assert-if-crashed-table=1
      SET SESSION default_storage_engine=Aria;
      CREATE TABLE t (a INT);
      INSERT INTO t VALUES (0x1EA);
      DELETE d1,d2 FROM t AS d1,t AS d2;
      

      Leads to:

      11.2.0 e81fa345020ec6a067583db6a7019d6404b26f93 (Debug)

      mariadbd: /test/11.2_dbg/storage/maria/ma_blockrec.c:5214: _ma_read_block_record: Assertion `!maria_assert_if_crashed_table' failed.
      

      11.2.0 e81fa345020ec6a067583db6a7019d6404b26f93 (Debug)

      Core was generated by `/test/MD270723-mariadb-11.2.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --inn'.
      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 0x14892e97f700 (LWP 3037820))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000150965e01859 in __GI_abort () at abort.c:79
      #2  0x0000150965e01729 in __assert_fail_base (fmt=0x150965f97588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5606b397da48 "!maria_assert_if_crashed_table", file=0x5606b398ac10 "/test/11.2_dbg/storage/maria/ma_blockrec.c", line=5214, function=<optimized out>) at assert.c:92
      #3  0x0000150965e12fd6 in __GI___assert_fail (assertion=assertion@entry=0x5606b397da48 "!maria_assert_if_crashed_table", file=file@entry=0x5606b398ac10 "/test/11.2_dbg/storage/maria/ma_blockrec.c", line=line@entry=5214, function=function@entry=0x5606b398c3b0 <__PRETTY_FUNCTION__.23100> "_ma_read_block_record") at assert.c:101
      #4  0x00005606b31140ad in _ma_read_block_record (info=0x1509300738d8, record=0x150930072c98 "\377", record_pos=256) at /test/11.2_dbg/storage/maria/ma_blockrec.c:5214
      #5  0x00005606b310b7fa in maria_rrnd (info=0x1509300738d8, buf=buf@entry=0x150930072c98 "\377", filepos=256) at /test/11.2_dbg/storage/maria/ma_rrnd.c:44
      #6  0x00005606b30d04b2 in ha_maria::rnd_pos (this=0x1509300730b0, buf=0x150930072c98 "\377", pos=0x150930008308 "") at /test/11.2_dbg/storage/maria/ha_maria.cc:2684
      #7  0x00005606b2ebf13d in handler::ha_rnd_pos (this=0x1509300730b0, buf=0x150930072c98 "\377", pos=0x150930008308 "") at /test/11.2_dbg/sql/handler.cc:3640
      #8  0x00005606b2acffec in rr_from_pointers (info=0x15094686b750) at /test/11.2_dbg/sql/records.h:82
      #9  0x00005606b2b63849 in READ_RECORD::read_record (this=0x15094686b750) at /test/11.2_dbg/sql/records.h:81
      #10 multi_delete::do_table_deletes (this=this@entry=0x150930015110, table=table@entry=0x150930072898, sort_info=<optimized out>, ignore=false) at /test/11.2_dbg/sql/sql_delete.cc:1346
      #11 0x00005606b2b63b17 in multi_delete::do_deletes (this=this@entry=0x150930015110) at /test/11.2_dbg/sql/sql_delete.cc:1302
      #12 0x00005606b2b63b9e in multi_delete::send_eof (this=0x150930015110) at /test/11.2_dbg/sql/sql_delete.cc:1410
      #13 0x00005606b2c498ec in do_select (procedure=<optimized out>, join=0x1509300151c0) at /test/11.2_dbg/sql/sql_select.cc:23010
      #14 JOIN::exec_inner (this=this@entry=0x1509300151c0) at /test/11.2_dbg/sql/sql_select.cc:4935
      #15 0x00005606b2c49cb2 in JOIN::exec (this=this@entry=0x1509300151c0) at /test/11.2_dbg/sql/sql_select.cc:4712
      #16 0x00005606b2c49e6a in Sql_cmd_dml::execute_inner (this=this@entry=0x1509300141d0, thd=thd@entry=0x150930000d48) at /test/11.2_dbg/sql/sql_select.cc:33419
      #17 0x00005606b2b635bd in Sql_cmd_delete::execute_inner (this=0x1509300141d0, thd=0x150930000d48) at /test/11.2_dbg/sql/sql_class.h:6076
      #18 0x00005606b2bf606e in Sql_cmd_dml::execute (this=0x1509300141d0, thd=0x150930000d48) at /test/11.2_dbg/sql/sql_select.cc:33356
      #19 0x00005606b2bba6b7 in mysql_execute_command (thd=thd@entry=0x150930000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.2_dbg/sql/sql_parse.cc:4393
      #20 0x00005606b2ba773b in mysql_parse (thd=thd@entry=0x150930000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15094686c2c0) at /test/11.2_dbg/sql/sql_parse.cc:7800
      #21 0x00005606b2bb4c00 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150930000d48, packet=packet@entry=0x15093000af49 "DELETE d1,d2 FROM t AS d1,t AS d2", packet_length=packet_length@entry=33, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_class.h:1374
      #22 0x00005606b2bb70b8 in do_command (thd=0x150930000d48, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_parse.cc:1405
      #23 0x00005606b2d1c717 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5606b4e5a848, put_in_cache=put_in_cache@entry=true) at /test/11.2_dbg/sql/sql_connect.cc:1445
      #24 0x00005606b2d1cbe6 in handle_one_connection (arg=0x5606b4e5a848) at /test/11.2_dbg/sql/sql_connect.cc:1347
      #25 0x0000150966312609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #26 0x0000150965efe133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.31 (dbg), 10.5.22 (dbg), 10.6.15 (dbg), 10.9.8 (dbg), 10.10.6 (dbg), 10.11.5 (dbg), 11.0.2 (dbg), 11.0.3 (dbg), 11.1.2 (dbg), 11.2.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.31 (opt), 10.5.22 (opt), 10.6.15 (opt), 10.9.8 (opt), 10.10.6 (opt), 10.11.5 (opt), 11.0.3 (opt), 11.1.2 (opt), 11.2.0 (opt)

      Attachments

        Activity

          People

            monty Michael Widenius
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.