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

Assertion `maria_in_recovery || !maria_assert_if_crashed_table' failed in void read_block(PAGECACHE *, PAGECACHE_BLOCK_LINK *, my_bool)

    XMLWordPrintable

Details

    Description

      -- source filekeys_plugin_exists.inc
       
      --let $restart_parameters=--aria_encrypt_tables=ON --plugin_load_add=file_key_management --file_key_management_filename=/home/ramesh/mariadb-qa/pquery/galera_encryption.key --debug-assert-if-crashed-table=1
      --source include/restart_mysqld.inc
       
      CREATE TABLE t ENGINE=Aria SELECT 1;
      REPAIR TABLE t USE_FRM;
      
      

      Leads to:

      CS 10.11.14 55e0c34f4f00ca70ad8d6f0522efa94bb81f74fb (Debug, Clang) Build 21/07/2025

      mariadbd: /test/10.11_dbg/storage/maria/ma_pagecache.c:3103: void read_block(PAGECACHE *, PAGECACHE_BLOCK_LINK *, my_bool): Assertion `maria_in_recovery || !maria_assert_if_crashed_table' failed.
      

      CS 10.11.14 55e0c34f4f00ca70ad8d6f0522efa94bb81f74fb (Debug, Clang) Build 21/07/2025

      Core was generated by `/test/MD210725-mariadb-10.11.14-linux-x86_64-dbg/bin/mariadbd --no-defaults --m'.
      Program terminated with signal SIGABRT, Aborted.
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
       
      [Current thread is 1 (LWP 3674812)]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
      #3  0x00007faeebc4527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x00007faeebc288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x00007faeebc2881b in __assert_fail_base (fmt=0x7faeebdd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55f28d707147 "maria_in_recovery || !maria_assert_if_crashed_table", file=file@entry=0x55f28d705467 "/test/10.11_dbg/storage/maria/ma_pagecache.c", line=line@entry=3103, function=function@entry=0x55f28d70717b "void read_block(PAGECACHE *, PAGECACHE_BLOCK_LINK *, my_bool)") at ./assert/assert.c:96
      #6  0x00007faeebc3b517 in __assert_fail (assertion=0x55f28d707147 "maria_in_recovery || !maria_assert_if_crashed_table", file=0x55f28d705467 "/test/10.11_dbg/storage/maria/ma_pagecache.c", line=3103, function=0x55f28d70717b "void read_block(PAGECACHE *, PAGECACHE_BLOCK_LINK *, my_bool)") at ./assert/assert.c:105
      #7  0x000055f28cd30919 in read_block (pagecache=0x55f28e1deea8 <maria_pagecache_var>, block=0x7faee07fb7a8, primary=1 '\001') at /test/10.11_dbg/storage/maria/ma_pagecache.c:3103
      #8  0x000055f28cd3003d in pagecache_read (pagecache=0x55f28e1deea8 <maria_pagecache_var>, file=0x7f9b8402b048, pageno=1, level=0, buff=0x7f9b84070638 '\245' <repeats 200 times>..., type=PAGECACHE_READ_UNKNOWN_PAGE, lock=PAGECACHE_LOCK_LEFT_UNLOCKED, page_link=0x7faee05c2c08)at /test/10.11_dbg/storage/maria/ma_pagecache.c:3786
      #9  0x000055f28cda6ac4 in _ma_safe_scan_block_record (sort_info=0x7faee05c3868, info=0x7f9b8402abb8, record=0x7f9b84034ee8 '\245' <repeats 24 times>, "\217\217\217\217\217\217\217\217E") at /test/10.11_dbg/storage/maria/ma_check.c:6880
      #10 0x000055f28cd99cb9 in sort_get_next_record (sort_param=0x7faee05c3080)at /test/10.11_dbg/storage/maria/ma_check.c:5003
      #11 0x000055f28cd98316 in maria_repair (param=0x7f9b84041670, info=0x7f9b8402abb8, name=0x7faee05c4b00 "./test/t", rep_quick=0 '\000')at /test/10.11_dbg/storage/maria/ma_check.c:2814
      #12 0x000055f28cd07b45 in ha_maria::repair (this=0x7f9b8402fc28, thd=0x7f9b84000d58, param=0x7f9b84041670, do_optimize=false)at /test/10.11_dbg/storage/maria/ha_maria.cc:1719
      #13 0x000055f28cd06e5c in ha_maria::repair (this=0x7f9b8402fc28, thd=0x7f9b84000d58, check_opt=0x7f9b84006348)at /test/10.11_dbg/storage/maria/ha_maria.cc:1489
      #14 0x000055f28ca7b7b6 in handler::ha_repair (this=0x7f9b8402fc28, thd=0x7f9b84000d58, check_opt=0x7f9b84006348)at /test/10.11_dbg/sql/handler.cc:5200
      #15 0x000055f28c87e7a1 in mysql_admin_table (thd=0x7f9b84000d58, tables=0x7f9b84013598, check_opt=0x7f9b84006348, operator_name=0x55f28de1eb88 <msg_repair>, lock_type=TL_WRITE, org_open_for_modify=true, repair_table_use_frm=true, extra_open_options=32, prepare_func=0x55f28c881760 <prepare_for_repair(THD*, TABLE_LIST*, st_ha_check_opt*)>, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x55f28ca7b780 <handler::ha_repair(THD*, st_ha_check_opt*)>, view_operator_func=0x55f28c7fd5a0 <view_repair(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=true) at /test/10.11_dbg/sql/sql_admin.cc:915
      #16 0x000055f28c881719 in Sql_cmd_repair_table::execute (this=0x7f9b84013cb0, thd=0x7f9b84000d58) at /test/10.11_dbg/sql/sql_admin.cc:1645
      #17 0x000055f28c69e550 in mysql_execute_command (thd=0x7f9b84000d58, is_called_from_prepared_stmt=false)at /test/10.11_dbg/sql/sql_parse.cc:6163
      #18 0x000055f28c68c2c4 in mysql_parse (thd=0x7f9b84000d58, rawbuf=0x7f9b840134d0 "REPAIR TABLE t USE_FRM", length=22, parser_state=0x7faee05c7a30) at /test/10.11_dbg/sql/sql_parse.cc:8178
      #19 0x000055f28c689784 in dispatch_command (command=COM_QUERY, thd=0x7f9b84000d58, packet=0x7f9b8400af59 "", packet_length=22, blocking=true) at /test/10.11_dbg/sql/sql_parse.cc:1906
      #20 0x000055f28c68ce73 in do_command (thd=0x7f9b84000d58, blocking=true)at /test/10.11_dbg/sql/sql_parse.cc:1419
      #21 0x000055f28c868269 in do_handle_one_connection (connect=0x55f2a42a6198, put_in_cache=true) at /test/10.11_dbg/sql/sql_connect.cc:1386
      #22 0x000055f28c868002 in handle_one_connection (arg=0x55f2a436a988)at /test/10.11_dbg/sql/sql_connect.cc:1298
      #23 0x00007faeebc9caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #24 0x00007faeebd29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug Detection Matrix

          Rel    o/d  Build   Commit                                    UniqueID observed             
      CS  10.6   dbg  100725  c27d78beb59b49bee7697a489743b4abe17bebe5  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  10.6   opt  100725  c27d78beb59b49bee7697a489743b4abe17bebe5  No bug found                  
      CS  10.11  dbg  210725  55e0c34f4f00ca70ad8d6f0522efa94bb81f74fb  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  10.11  opt  210725  55e0c34f4f00ca70ad8d6f0522efa94bb81f74fb  No bug found                  
      CS  11.4   dbg  300625  c742cc94baee27074100aa90eff96468bdd9943e  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  11.4   opt  300625  c742cc94baee27074100aa90eff96468bdd9943e  No bug found                  
      CS  11.8   dbg  300625  311b4445c59caa36ed031f5499eae79d07b68c0c  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  11.8   opt  300625  311b4445c59caa36ed031f5499eae79d07b68c0c  No bug found
      CS  12.0   dbg  140725  107291bf980822fcc3c02bd4e01ecbc4db7fd192  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  12.0   opt  140725  107291bf980822fcc3c02bd4e01ecbc4db7fd192  No bug found      
      CS  12.1   dbg  210725  7215fe789480c228a91f50ff4f047ea89c16f041  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      CS  12.1   opt  210725  7215fe789480c228a91f50ff4f047ea89c16f041  No bug found                  
      ES  10.5   dbg  050525  0d368ec0042a81d9549fc939fb742f82350b20ab  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      ES  10.5   opt  050525  0d368ec0042a81d9549fc939fb742f82350b20ab  No bug found                  
      ES  10.6   dbg  050525  6111fbaf7bdcb6f1170f556ffd05d6e1a4159f62  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      ES  10.6   opt  050525  6111fbaf7bdcb6f1170f556ffd05d6e1a4159f62  No bug found                  
      ES  11.4   dbg  050525  9cd12544ebfd0d52d2158af66b5aced58121cf1f  maria_in_recovery || !maria_assert_if_crashed_table|SIGABRT|read_block|pagecache_read|_ma_safe_scan_block_record|sort_get_next_record
      ES  11.4   opt  050525  9cd12544ebfd0d52d2158af66b5aced58121cf1f  No bug found                  
      

      Attachments

        Activity

          People

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