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

ib_uint64_t mach_read_next_much_compressed(const byte **): Assertion `val > 0x7F' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

        --source include/have_innodb.inc
        --source include/have_sequence.inc
        --source include/have_debug.inc
        CREATE TABLE t1 (a INT PRIMARY KEY, b INT, KEY(b)) ENGINE=InnoDB STATS_PERSISTENT=0;
        CREATE TABLE t2 (a INT PRIMARY KEY, c VARBINARY(4000)) ENGINE=InnoDB STATS_PERSISTENT=0;
        INSERT INTO t1 VALUES (1,1),(2,2);
        INSERT INTO t2 SELECT seq, REPEAT(x'803F', 2000) FROM seq_1_to_12;
        UPDATE t1 SET b=b+1;
        --connect con1,localhost,root
        BEGIN;
        UPDATE t1 SET b=b+1;
        --connection default
        SET GLOBAL innodb_max_purge_lag_wait=0;
        UPDATE t2 SET c='x' WHERE a<=4;
        UPDATE t2 SET c='x' WHERE a BETWEEN 5 AND 8;
        UPDATE t2 SET c='x' WHERE a>8;
        --let $shutdown_timeout= 0
        --let $restart_parameters= --innodb-log-recovery-target=18446744073709551615
        --source include/restart_mysqld.inc
        --disconnect con1
        CHECK TABLE t1 EXTENDED;
        --let $shutdown_timeout=
        --let $restart_parameters=
        --source include/restart_mysqld.inc
        DROP TABLE t1, t2;
      

      Leads to:

      INFO: no cores found at data*/core nor at node*/core, and no *SAN or Valgrind report found in the error log

      CS 13.0.2 b2c4e675049e23ce8c7346985f40840fcd4e583f (Debug, Clang 22.1.8-20260621) Build 09/09/2026

      mariadbd: /test/13.0_dbg/storage/innobase/include/mach0data.inl:517: ib_uint64_t mach_read_next_much_compressed(const byte **): Assertion `val > 0x7F' failed.
      

      CS 13.0.2 b2c4e675049e23ce8c7346985f40840fcd4e583f (Debug, Clang 22.1.8-20260621) Build 09/09/2026

      Core was generated by `/test/MD090926-mariadb-13.0.2-linux-x86_64-dbg/bin/mariadbd --defaults-group-su'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
       
      [Current thread is 1 (LWP 1074821)]
      (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  0x000073ec9504527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x000073ec950288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x000073ec9502881b in __assert_fail_base (fmt=0x73ec951d1208 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x581c23d85f31 "val > 0x7F", file=file@entry=0x581c23d57ad6 "/test/13.0_dbg/storage/innobase/include/mach0data.inl", line=line@entry=517, function=function@entry=0x581c23d9487d "ib_uint64_t mach_read_next_much_compressed(const byte **)") at ./assert/assert.c:96
      #6  0x000073ec9503b517 in __assert_fail (assertion=0x581c23d85f31 "val > 0x7F", file=0x581c23d57ad6 "/test/13.0_dbg/storage/innobase/include/mach0data.inl", line=517, function=0x581c23d9487d "ib_uint64_t mach_read_next_much_compressed(const byte **)") at ./assert/assert.c:105
      #7  0x0000581c236688a2 in mach_read_next_much_compressed (b=0x73ec765702a0)at include/mach0data.inl:517
      #8  0x0000581c23668741 in trx_undo_rec_get_pars (undo_rec=0x6bec700ac139 "?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200"..., type=0x73ec76570667 "\017@\aWv\354s", cmpl_info=0x73ec76570666 "\003\017@\aWv\354s", updated_extern=0x73ec76570665, undo_no=0x73ec76570658, table_id=0x73ec76570650)at /test/13.0_dbg/storage/innobase/trx/trx0rec.cc:519
      #9  0x0000581c23670d60 in trx_undo_prev_version (rec=0x6bebac02af0e "\200", index=0x581c62d73a48, offsets=0x6bebac008268, heap=0x6bebac02b240, old_vers=0x73ec76570c28, check=@0x73ec76570740: {latch = purge_sys_t::view_guard::END_VIEW}, v_status=0, v_heap=0x0, vrow=0x0, undo_rec=0x6bec700ac139 "?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200?\200"...)at /test/13.0_dbg/storage/innobase/trx/trx0rec.cc:2221
      #10 0x0000581c23670983 in trx_undo_prev_version_build (rec=0x6bebac02af0e "\200", index=0x581c62d73a48, offsets=0x6bebac008268, heap=0x6bebac02b240, old_vers=0x73ec76570c28, mtr=0x73ec76571468, v_status=0, v_heap=0x0, vrow=0x0)at /test/13.0_dbg/storage/innobase/trx/trx0rec.cc:2198
      #11 0x0000581c23615ebc in row_check_index (prebuilt=0x6bebac0298a8, n_rows=0x73ec765718b8)at /test/13.0_dbg/storage/innobase/row/row0sel.cc:6632
      #12 0x0000581c233eef20 in ha_innobase::check (this=0x6bebac032dd0, thd=0x6bebac000d60, check_opt=0x6bebac006638)at /test/13.0_dbg/storage/innobase/handler/ha_innodb.cc:15573
      #13 0x0000581c2300abf9 in handler::ha_check (this=0x6bebac032dd0, thd=0x6bebac000d60, check_opt=0x6bebac006638)at /test/13.0_dbg/sql/handler.cc:5710
      #14 0x0000581c22ddd18a in mysql_admin_table (thd=0x6bebac000d60, tables=0x6bebac019570, check_opt=0x6bebac006638, operator_name=0x581c244de068 <msg_check>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, no_errors_from_open=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x581c2300aa60 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x581c22d59260 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/13.0_dbg/sql/sql_admin.cc:949
      #15 0x0000581c22ddfc03 in Sql_cmd_check_table::execute (this=0x6bebac019cc0, thd=0x6bebac000d60) at /test/13.0_dbg/sql/sql_admin.cc:1702
      #16 0x0000581c22c01c06 in mysql_execute_command (thd=0x6bebac000d60, is_called_from_prepared_stmt=false) at /test/13.0_dbg/sql/sql_parse.cc:5905
      #17 0x0000581c22bf2d18 in mysql_parse (thd=0x6bebac000d60, rawbuf=0x6bebac019480 "CHECK TABLE t1 EXTENDED", length=23, parser_state=0x73ec765749f0) at /test/13.0_dbg/sql/sql_parse.cc:7943
      #18 0x0000581c22bf046e in dispatch_command (command=COM_QUERY, thd=0x6bebac000d60, packet=0x6bebac00b691 "", packet_length=23, blocking=true) at /test/13.0_dbg/sql/sql_parse.cc:1903
      #19 0x0000581c22bf379a in do_command (thd=0x6bebac000d60, blocking=true)at /test/13.0_dbg/sql/sql_parse.cc:1437
      #20 0x0000581c22dc575e in do_handle_one_connection (connect=0x581c62f1b5f0, put_in_cache=true) at /test/13.0_dbg/sql/sql_connect.cc:1514
      #21 0x0000581c22dc5541 in handle_one_connection (arg=0x581c62f1b5f0)at /test/13.0_dbg/sql/sql_connect.cc:1426
      #22 0x000073ec9509cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #23 0x000073ec95129ecc in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug Detection Matrix

          Rel    o/d  Build   Commit                                    UniqueID observed             
      CS  10.11  dbg  090926  2753b5919a10abd32ba822877c6a1cbf602d3748  No bug found                  
      CS  10.11  opt  090926  2753b5919a10abd32ba822877c6a1cbf602d3748  Assert: no error log(s) found - exiting
      CS  11.4   dbg  090926  42038e1145dd43b3910055c364fb720a8a152d61  No bug found                  
      CS  11.4   opt  090926  42038e1145dd43b3910055c364fb720a8a152d61  Assert: no error log(s) found - exiting
      CS  11.8   dbg  090926  e2e060ce3d8c3ce11b6c7ba28ced0f1a30c50a54  No bug found                  
      CS  11.8   opt  090926  e2e060ce3d8c3ce11b6c7ba28ced0f1a30c50a54  Assert: no error log(s) found - exiting
      CS  12.3   dbg  090926  e9f84a1fdf7093191e55b55dc14b08b9d4ebaa20  No bug found                  
      CS  12.3   opt  090926  e9f84a1fdf7093191e55b55dc14b08b9d4ebaa20  Assert: no error log(s) found - exiting
      CS  13.0   dbg  090926  b2c4e675049e23ce8c7346985f40840fcd4e583f  val > 0x7F|SIGABRT|mach_read_next_much_compressed|trx_undo_rec_get_pars|trx_undo_prev_version|trx_undo_prev_version_build
      CS  13.0   opt  090926  b2c4e675049e23ce8c7346985f40840fcd4e583f  Assert: no error log(s) found - exiting
      CS  13.1   dbg  090926  02c842c30dcb05a962eaac58c69920e6be3369cf  val > 0x7F|SIGABRT|mach_read_next_much_compressed|trx_undo_rec_get_pars|trx_undo_prev_version|trx_undo_prev_version_build
      CS  13.1   opt  090926  02c842c30dcb05a962eaac58c69920e6be3369cf  Assert: no error log(s) found - exiting
      ES  10.6   dbg  090926  aa3fb9800c358182ee2a1f8cca8ffbdd6d0a37eb  No bug found                  
      ES  10.6   opt  090926  aa3fb9800c358182ee2a1f8cca8ffbdd6d0a37eb  Assert: no error log(s) found - exiting
      ES  11.4   dbg  090926  32807340954440071ca8ae8e2de51fb180d134c6  No bug found                  
      ES  11.4   opt  090926  32807340954440071ca8ae8e2de51fb180d134c6  Assert: no error log(s) found - exiting
      ES  11.8   dbg  090926  c4af6f687a2dd983072457429aa2294f11957650  No bug found                  
      ES  11.8   opt  090926  c4af6f687a2dd983072457429aa2294f11957650  Assert: no error log(s) found - exiting
      ES  12.3   dbg  090926  c3bd5108d81f19e33efb93f7b6ae971293732fd0  No bug found                  
      ES  12.3   opt  090926  c3bd5108d81f19e33efb93f7b6ae971293732fd0  Assert: no error log(s) found - exiting
      

      Attachments

        Activity

          People

            thiru Thirunarayanan Balathandayuthapani
            saahil Saahil Alam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.