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

InnoDB: Failing assertion: !memcmp(FIL_PAGE_TYPE + page, FIL_PAGE_TYPE + page_zip->data, PAGE_HEADER - FIL_PAGE_TYPE)

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug build:-

      origin/10.11 9aca89fa9f3b78074fd360cd229abb349fb6b572

      # 2025-09-17T14:57:31 [3871547] | 2025-09-17 14:57:24 68 [ERROR] InnoDB: Transaction was aborted due to Deadlock
      # 2025-09-17T14:57:31 [3871547] | 2025-09-17 14:57:25 0x7f241e71e640  InnoDB: Assertion failure in file /data/Server/10.11D/storage/innobase/page/page0zip.cc line 3014
      # 2025-09-17T14:57:31 [3871547] | InnoDB: Failing assertion: !memcmp(FIL_PAGE_TYPE + page, FIL_PAGE_TYPE + page_zip->data, PAGE_HEADER - FIL_PAGE_TYPE)
      

      StackTrace

      0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139793106331200) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=139793106331200) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=139793106331200, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  __GI_abort () at ./stdlib/abort.c:79
      #5  ut_dbg_assertion_failed (expr=expr@entry="!memcmp(FIL_PAGE_TYPE + page, FIL_PAGE_TYPE + page_zip->data, PAGE_HEADER - FIL_PAGE_TYPE)", 
          file=file@entry="/data/Server/10.11D/storage/innobase/page/page0zip.cc", line=line@entry=3014) at /data/Server/10.11D/storage/innobase/ut/ut0dbg.cc:60
      #6  page_zip_decompress_low (page_zip=page_zip@entry=, page=page@entry="ס\364", <incomplete sequence \371>, all=all@entry=0)
          at /data/Server/10.11D/storage/innobase/page/page0zip.cc:3014
      #7  page_zip_decompress (page_zip=page_zip@entry=, page=page@entry="ס\364", <incomplete sequence \371>, all=all@entry=0) at /data/Server/10.11D/storage/innobase/page/page0zip.cc:3195
      #8  page_copy_rec_list_start (new_block=, block=block@entry=, rec="supremum\363\201\024\300\n\b", index=index@entry=, mtr=mtr@entry=, err=err@entry=)
          at /data/Server/10.11D/storage/innobase/page/page0page.cc:828
      #9  btr_compress (cursor=cursor@entry=, adjust=adjust@entry=false, mtr=mtr@entry=) at /data/Server/10.11D/storage/innobase/btr/btr0btr.cc:3949
      #10 btr_cur_compress_if_useful (cursor=cursor@entry=, adjust=adjust@entry=false, mtr=mtr@entry=) at /data/Server/10.11D/storage/innobase/btr/btr0cur.cc:4592
      #11 btr_cur_pessimistic_update (flags=flags@entry=10, cursor=cursor@entry=, offsets=offsets@entry=, offsets_heap=offsets_heap@entry=, entry_heap=entry_heap@entry=, 
          big_rec=big_rec@entry=, update=, cmpl_info=1, thr=, trx_id=7581, mtr=) at /data/Server/10.11D/storage/innobase/btr/btr0cur.cc:4295
      #12 row_upd_clust_rec (flags=flags@entry=0, node=node@entry=, index=index@entry=, offsets=<optimized out>, offsets@entry=, offsets_heap=offsets_heap@entry=, thr=thr@entry=, mtr=)
          at /data/Server/10.11D/storage/innobase/row/row0upd.cc:2438
      #13 row_upd_clust_step (node=node@entry=, thr=thr@entry=) at /data/Server/10.11D/storage/innobase/row/row0upd.cc:2673
      #14 row_upd (node=node@entry=, thr=thr@entry=) at /data/Server/10.11D/storage/innobase/row/row0upd.cc:2774
      #15 row_upd_step (thr=thr@entry=) at /data/Server/10.11D/storage/innobase/row/row0upd.cc:2916
      #16 row_update_for_mysql (prebuilt=) at /data/Server/10.11D/storage/innobase/row/row0mysql.cc:1668
      #17 ha_innobase::update_row (this=, old_row="h~\001", new_row="h~\001") at /data/Server/10.11D/storage/innobase/handler/ha_innodb.cc:8585
      #18 handler::ha_update_row (this=, old_data="h~\001", new_data="h~\001") at /data/Server/10.11D/sql/handler.cc:7832
      #19 mysql_update (thd=thd@entry=, table_list=<optimized out>, fields=..., values=..., conds=<optimized out>, order_num=<optimized out>, order=<optimized out>, 
          limit=18446744073709551606, ignore=<optimized out>, found_return=<optimized out>, updated_return=<optimized out>) at /data/Server/10.11D/sql/sql_update.cc:1121
      #20 mysql_execute_command (thd=thd@entry=, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11D/sql/sql_parse.cc:4471
      #21 mysql_parse (thd=thd@entry=, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=) at /data/Server/10.11D/sql/sql_parse.cc:8180
      #22 dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=, packet=packet@entry=" UPDATE test.t3_p SET col2 = 2489  /* E_R Thread30 QNO 627 CON_ID 47 */ ", 
          packet_length=packet_length@entry=72, blocking=blocking@entry=true) at /data/Server/10.11D/sql/sql_parse.cc:1906
      #23 do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/10.11D/sql/sql_parse.cc:1419
      #24 do_handle_one_connection (connect=<optimized out>, connect@entry=, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11D/sql/sql_connect.cc:1475
      #25 handle_one_connection (arg=) at /data/Server/10.11D/sql/sql_connect.cc:1387
      #26 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #27 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

      RR trace is present on pluto:-
      /data/results/1758109426/TBR-2334

      Attachments

        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.