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

bool buf_zip_decompress(buf_block_t*, bool): Assertion `mach_read_from_4(frame + 4U) == block->page.id().page_no()' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug build
      Leads to :

      GIT_SHOW: HEAD -> 10.11, origin/bb-10.11-MDEV-26115, origin/10.11 852e4510fa662c571a42f550278d4abd09e3c5cf 2025-07-23T09:34:47+07:00

      # 2025-07-23T16:59:37 [3695243] | mariadbd: /data/Server/10.11_new/storage/innobase/buf/buf0buf.cc:2497: bool buf_zip_decompress(buf_block_t*, bool): Assertion `mach_read_from_4(frame + 4U) == block->page.id().page_no()' failed.
      

      Stacktrace

      # 2025-07-23T17:00:36 [3695243] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140674499102912) at ./nptl/pthread_kill.c:44
      # 2025-07-23T17:00:36 [3695243] #1  __pthread_kill_internal (signo=6, threadid=140674499102912) at ./nptl/pthread_kill.c:78
      # 2025-07-23T17:00:36 [3695243] #2  __GI___pthread_kill (threadid=140674499102912, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-07-23T17:00:36 [3695243] #3  0x0000559cddeb4958 in my_write_core (sig=6) at /data/Server/10.11_new/mysys/stacktrace.c:424
      # 2025-07-23T17:00:36 [3695243] #4  0x0000559cdd670b9e in handle_fatal_signal (sig=6) at /data/Server/10.11_new/sql/signal_handler.cc:298
      # 2025-07-23T17:00:36 [3695243] #5  <signal handler called>
      # 2025-07-23T17:00:36 [3695243] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140674499102912) at ./nptl/pthread_kill.c:44
      # 2025-07-23T17:00:36 [3695243] #7  __pthread_kill_internal (signo=6, threadid=140674499102912) at ./nptl/pthread_kill.c:78
      # 2025-07-23T17:00:36 [3695243] #8  __GI___pthread_kill (threadid=140674499102912, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-07-23T17:00:36 [3695243] #9  0x00007ff15590b476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-07-23T17:00:36 [3695243] #10 0x00007ff1558f17f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2025-07-23T17:00:36 [3695243] #11 0x00007ff1558f171b in __assert_fail_base (fmt=0x7ff155aa6130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x559cde38ad48 "mach_read_from_4(frame + 4U) == block->page.id().page_no()", file=0x559cde38a100 "/data/Server/10.11_new/storage/innobase/buf/buf0buf.cc", line=2497, function=<optimized out>) at ./assert/assert.c:92
      # 2025-07-23T17:00:36 [3695243] #12 0x00007ff155902e96 in __GI___assert_fail (assertion=0x559cde38ad48 "mach_read_from_4(frame + 4U) == block->page.id().page_no()", file=0x559cde38a100 "/data/Server/10.11_new/storage/innobase/buf/buf0buf.cc", line=2497, function=0x559cde38ad18 "bool buf_zip_decompress(buf_block_t*, bool)") at ./assert/assert.c:101
      # 2025-07-23T17:00:36 [3695243] #13 0x0000559cddd00367 in buf_zip_decompress (block=block@entry=0x7ff147801ba0, check=check@entry=false) at /data/Server/10.11_new/storage/innobase/buf/buf0buf.cc:2497
      # 2025-07-23T17:00:36 [3695243] #14 0x0000559cddd0117b in buf_page_t::read_complete (this=this@entry=0x7ff147801ba0, node=...) at /data/Server/10.11_new/storage/innobase/buf/buf0buf.cc:3903
      # 2025-07-23T17:00:36 [3695243] #15 0x0000559cddd3154b in buf_read_page_low (space=0x7ff1085374a0, sync=sync@entry=true, mode=mode@entry=132, page_id=page_id@entry=..., zip_size=<optimized out>, unzip=<optimized out>) at /data/Server/10.11_new/storage/innobase/buf/buf0rea.cc:334
      # 2025-07-23T17:00:36 [3695243] #16 0x0000559cddd320cf in buf_read_page (page_id=page_id@entry=..., unzip=unzip@entry=true) at /data/Server/10.11_new/storage/innobase/buf/buf0rea.cc:464
      # 2025-07-23T17:00:36 [3695243] #17 0x0000559cddd080a4 in buf_page_get_low (page_id=..., page_id@entry=..., zip_size=zip_size@entry=4096, rw_latch=rw_latch@entry=RW_X_LATCH, guess=guess@entry=0x0, mode=mode@entry=16, mtr=mtr@entry=0x7ffc6100d7e0, err=0x7ffc6100d7dc, allow_ibuf_merge=true) at /data/Server/10.11_new/storage/innobase/buf/buf0buf.cc:2988
      # 2025-07-23T17:00:36 [3695243] #18 0x0000559cddd093c0 in buf_page_get_gen (page_id=..., zip_size=zip_size@entry=4096, rw_latch=rw_latch@entry=RW_X_LATCH, guess=guess@entry=0x0, mode=mode@entry=16, mtr=mtr@entry=0x7ffc6100d7e0, err=0x7ffc6100d7dc, allow_ibuf_merge=true) at /data/Server/10.11_new/storage/innobase/buf/buf0buf.cc:3247
      # 2025-07-23T17:00:36 [3695243] #19 0x0000559cdda6c4b3 in ibuf_read_merge_pages (space_ids=space_ids@entry=0x7ffc6100dbe8, page_nos=page_nos@entry=0x7ffc6100dbc8, n_stored=1, slow_shutdown_cleanup=slow_shutdown_cleanup@entry=true) at /data/Server/10.11_new/storage/innobase/ibuf/ibuf0ibuf.cc:2349
      # 2025-07-23T17:00:36 [3695243] #20 0x0000559cdda6c8b2 in ibuf_contract () at /data/Server/10.11_new/storage/innobase/ibuf/ibuf0ibuf.cc:2439
      # 2025-07-23T17:00:36 [3695243] #21 0x0000559cddc354ae in srv_shutdown (ibuf_merge=true) at /data/Server/10.11_new/storage/innobase/srv/srv0srv.cc:1361
      # 2025-07-23T17:00:36 [3695243] #22 0x0000559cddaa2af5 in logs_empty_and_mark_files_at_shutdown () at /data/Server/10.11_new/storage/innobase/log/log0log.cc:1377
      # 2025-07-23T17:00:36 [3695243] #23 0x0000559cddc39748 in innodb_shutdown () at /data/Server/10.11_new/storage/innobase/srv/srv0start.cc:1974
      # 2025-07-23T17:00:36 [3695243] #24 0x0000559cdd9bdcf1 in innobase_end () at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:4310
      # 2025-07-23T17:00:36 [3695243] #25 0x0000559cdd6749c8 in ha_finalize_handlerton (plugin_=0x559cdfa764a0) at /data/Server/10.11_new/sql/handler.cc:596
      # 2025-07-23T17:00:36 [3695243] #26 0x0000559cdd376acb in plugin_deinitialize (plugin=0x559cdfa764a0, ref_check=ref_check@entry=false) at /data/Server/10.11_new/sql/sql_plugin.cc:1274
      # 2025-07-23T17:00:36 [3695243] #27 0x0000559cdd37ae03 in plugin_shutdown () at /data/Server/10.11_new/sql/sql_plugin.cc:2145
      # 2025-07-23T17:00:36 [3695243] #28 0x0000559cdd2046b7 in clean_up (print_message=print_message@entry=true) at /data/Server/10.11_new/sql/mysqld.cc:1989
      # 2025-07-23T17:00:36 [3695243] #29 0x0000559cdd211285 in mysqld_main (argc=<optimized out>, argv=<optimized out>) at /data/Server/10.11_new/sql/mysqld.cc:6061
      # 2025-07-23T17:00:36 [3695243] #30 0x0000559cdd203e66 in main (argc=<optimized out>, argv=<optimized out>) at /data/Server/10.11_new/sql/main.cc:34
      

      Core dump is foud on pluto:-
      /data/results/1753268478/TBR-2309

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              saahil Saahil Alam
              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.