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

Assertion `success' failed in btr_compress; assertion: btr_page_get_next(latch_leaves.blocks[0]->frame) == page_get_page_no(page)

    XMLWordPrintable

Details

    Description

      please find the test attached.
      It is repeatable on 10.4, but might be sporadic
      I had no luck repeating it on 10.5+, but I maybe that is a specific of the test.

      Version: '10.4.34-MariaDB-debug-log'  
      mysqld: /10.4/src/storage/innobase/btr/btr0btr.cc:3828: ulint btr_compress(btr_cur_t*, ulint, mtr_t*): Assertion `success' failed.
      240216 14:32:49 [ERROR] mysqld got signal 6 ;
       
      Server version: 10.4.34-MariaDB-debug-log source revision: ae709b64e29f503245fb5004574d85cb9c85a499
       
      /lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f9b2cfabfd6]
      btr/btr0btr.cc:3835(btr_compress(btr_cur_t*, unsigned long, mtr_t*))[0x5564c1caec1d]
      btr/btr0cur.cc:5774(btr_cur_compress_if_useful(btr_cur_t*, unsigned long, mtr_t*))[0x5564c1d028dc]
      btr/btr0cur.cc:6213(btr_cur_pessimistic_delete(dberr_t*, unsigned long, btr_cur_t*, unsigned long, bool, mtr_t*))[0x5564c1d05815]
      row/row0uins.cc:312(row_undo_ins_remove_sec_low(unsigned long, dict_index_t*, dtuple_t*, que_thr_t*))[0x5564c1fc558a]
      row/row0uins.cc:345(row_undo_ins_remove_sec(dict_index_t*, dtuple_t*, que_thr_t*))[0x5564c1fc57fa]
      row/row0uins.cc:523(row_undo_ins_remove_sec_rec(undo_node_t*, que_thr_t*))[0x5564c1fc6ca0]
      row/row0uins.cc:575(row_undo_ins(undo_node_t*, que_thr_t*))[0x5564c1fc70fd]
      row/row0undo.cc:427(row_undo(undo_node_t*, que_thr_t*))[0x5564c1b6e813]
      row/row0undo.cc:489(row_undo_step(que_thr_t*))[0x5564c1b6ed71]
      que/que0que.cc:964(que_thr_step(que_thr_t*))[0x5564c19ef16f]
      que/que0que.cc:1028(que_run_threads_low(que_thr_t*))[0x5564c19ef5f7]
      que/que0que.cc:1070(que_run_threads(que_thr_t*))[0x5564c19efa56]
      trx/trx0roll.cc:140(trx_rollback_to_savepoint_low(trx_t*, trx_savept_t*))[0x5564c1c3dfbe]
      trx/trx0roll.cc:212(trx_rollback_for_mysql_low(trx_t*))[0x5564c1c3e933]
      trx/trx0roll.cc:241(trx_rollback_for_mysql(trx_t*))[0x5564c1c3efaa]
      handler/ha_innodb.cc:4832(innobase_rollback(handlerton*, THD*, bool))[0x5564c173d21b]
      sql/handler.cc:1958(ha_rollback_trans(THD*, bool))[0x5564c0d7337e]
      sql/transaction.cc:342(trans_rollback(THD*))[0x5564c09e067b]
      sql/sql_parse.cc:5841(mysql_execute_command(THD*))[0x5564c05ab9f1]
      sql/sql_parse.cc:8088(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5564c05ba605]
      sql/sql_parse.cc:1860(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x5564c0590377]
      sql/sql_parse.cc:1378(do_command(THD*))[0x5564c058cea2]
      sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x5564c09a286a]
      sql/sql_connect.cc:1324(handle_one_connection)[0x5564c09a210e]
      perfschema/pfs.cc:1871(pfs_spawn_thread)[0x5564c16419e6]
      nptl/pthread_create.c:478(start_thread)[0x7f9b2d4c6609]
       
      Query (0x62b0000a1290): rollback
      

      on non-debug:

      Version: '10.4.33-MariaDB' 
      2024-02-16 14:48:06 0x7f652860c700  InnoDB: Assertion failure in file /home/buildbot/buildbot/build/storage/innobase/btr/btr0cur.cc line 314
      InnoDB: Failing assertion: btr_page_get_next(latch_leaves.blocks[0]->frame) == page_get_page_no(page)
      InnoDB: We intentionally generate a memory trap.
      InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
      InnoDB: If you get repeated assertion failures or crashes, even
      InnoDB: immediately after the mysqld startup, there may be
      InnoDB: corruption in the InnoDB tablespace. Please refer to
      InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
      InnoDB: about forcing recovery.
      240216 14:48:06 [ERROR] mysqld got signal 6 ;
      Sorry, we probably made a mistake, and this is a bug.
       
      Server version: 10.4.33-MariaDB source revision: 46e3a7658b774942e9320a1acb234373bb44e874
       
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f652bbbd00b]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f652bb9c859]
      ut/ut0rbt.cc:218(rbt_tree_add_child(ib_rbt_t const*, ib_rbt_bound_t*, ib_rbt_node_t*) [clone .isra.4] [clone .part.5])[0x55ff62a04594]
      btr/btr0cur.cc:311(btr_cur_latch_leaves(buf_block_t*, page_id_t, unsigned long, unsigned long, btr_cur_t*, mtr_t*))[0x55ff6313eb34]
      gis/gis0sea.cc:440(rtr_pcur_getnext_from_path(dtuple_t const*, page_cur_mode_t, btr_cur_t*, unsigned long, unsigned long, bool, mtr_t*))[0x55ff63225fc5]
      row/row0row.cc:1302(row_search_index_entry(dict_index_t*, dtuple_t const*, unsigned long, btr_pcur_t*, mtr_t*))[0x55ff630bfcef]
      row/row0uins.cc:278(row_undo_ins_remove_sec_low(unsigned long, dict_index_t*, dtuple_t*, que_thr_t*))[0x55ff63235473]
      row/row0uins.cc:353(row_undo_ins(undo_node_t*, que_thr_t*))[0x55ff63235c29]
      row/row0undo.cc:438(row_undo_step(que_thr_t*))[0x55ff630ca0f0]
      que/que0que.cc:964(que_run_threads(que_thr_t*))[0x55ff63073035]
      trx/trx0roll.cc:140(trx_rollback_to_savepoint_low(trx_t*, trx_savept_t*) [clone .constprop.98])[0x55ff6310a0ec]
      trx/trx0roll.cc:212(trx_rollback_for_mysql(trx_t*))[0x55ff6310a64a]
      handler/ha_innodb.cc:2845(innobase_rollback(handlerton*, THD*, bool))[0x55ff62fcc085]
      sql/handler.cc:1955(ha_rollback_trans(THD*, bool))[0x55ff62d093db]
      sql/transaction.cc:344(trans_rollback(THD*))[0x55ff62c0bb47]
      sql/sql_class.h:4732(THD::release_transactional_locks())[0x55ff62b0d847]
      sql/sql_parse.cc:8062(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55ff62b126a2]
      sql/sql_parse.cc:1921(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55ff62b14b53]
      sql/sql_parse.cc:1379(do_command(THD*))[0x55ff62b1631f]
      sql/sql_connect.cc:1419(do_handle_one_connection(CONNECT*))[0x55ff62bfd372]
      sql/sql_connect.cc:1325(handle_one_connection)[0x55ff62bfd45d]
      nptl/pthread_create.c:478(start_thread)[0x7f652c0ad609]
       
      Query (0x7f64c0010300): rollback
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              alice Alice Sherepa
              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.