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

Assertion `len < recv_sys.MTR_SIZE_MAX' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found during testing 10.11

      origin/10.11 080d92a6217a757300b629360cacf625f3c7ea60

      # 2025-12-22T03:32:17 [1628162] | mariadbd: /data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc:1221: static std::pair<long unsigned int, long unsigned int> mtr_t::finish_writer(mtr_t*, size_t) [with bool mmap = t
      t]: Assertion `len < recv_sys.MTR_SIZE_MAX' failed.
      

      StackTrace

      # 2025-12-22T03:48:31 [1628162] | #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-12-22T03:48:31 [1628162] | #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-12-22T03:48:31 [1628162] | #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-12-22T03:48:31 [1628162] | #3  0x0000440f090e626e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-12-22T03:48:31 [1628162] | #4  0x0000440f090c98ff in __GI_abort () at ./stdlib/abort.c:79
      # 2025-12-22T03:48:31 [1628162] | #5  0x0000440f090c981b in __assert_fail_base (fmt=0x440f092711e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5dafd4c79835 "len < recv_sys.MTR_SIZE_MAX
      b50 "/data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc", line=line@entry=1221, function=function@entry=0x5dafd4baf920 "static std::pair<long unsigned int, long unsigned int> mtr_t::finish_writer(mtr_t*, size_t) 
       = long unsigned int]") at ./assert/assert.c:94
      # 2025-12-22T03:48:31 [1628162] | #6  0x0000440f090dc507 in __assert_fail (assertion=0x5dafd4c79835 "len < recv_sys.MTR_SIZE_MAX", file=0x5dafd4badb50 "/data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc", line=12
      tatic std::pair<long unsigned int, long unsigned int> mtr_t::finish_writer(mtr_t*, size_t) [with bool mmap = true; size_t = long unsigned int]") at ./assert/assert.c:103
      # 2025-12-22T03:48:31 [1628162] | #7  0x00005dafd478cd57 in mtr_t::finish_writer<true> (mtr=0x554063ffe8e0, len=1297518) at /data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc:1221
      # 2025-12-22T03:48:31 [1628162] | #8  0x00005dafd4786107 in mtr_t::finish_write (len=1297518, this=0x554063ffe8e0) at /data/Server/10.11G/storage/innobase/include/mtr0mtr.h:719
      # 2025-12-22T03:48:31 [1628162] | #9  mtr_t::do_write (this=this@entry=0x554063ffe8e0) at /data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc:1108
      # 2025-12-22T03:48:31 [1628162] | #10 0x00005dafd47893a9 in mtr_t::commit (this=this@entry=0x554063ffe8e0) at /data/Server/10.11G/storage/innobase/mtr/mtr0mtr.cc:489
      # 2025-12-22T03:48:31 [1628162] | #11 0x00005dafd48cfde3 in btr_defragment_chunk () at /data/Server/10.11G/storage/innobase/btr/btr0defragment.cc:786
      # 2025-12-22T03:48:31 [1628162] | #12 0x00005dafd49970eb in tpool::task_group::execute (this=0x5dafd5e14dc0 <task_group>, t=t@entry=0x5dafd5e14da0 <btr_defragment_task>) at /data/Server/10.11G/tpool/task_group.cc:
      # 2025-12-22T03:48:31 [1628162] | #13 0x00005dafd4997191 in tpool::task::execute (this=0x5dafd5e14da0 <btr_defragment_task>) at /data/Server/10.11G/tpool/task.cc:32
      # 2025-12-22T03:48:31 [1628162] | #14 0x00005dafd49948a9 in tpool::thread_pool_generic::worker_main (this=0x5dafd6dbdc80, thread_var=0x5dafd6dd12f0) at /data/Server/10.11G/tpool/tpool_generic.cc:568
      # 2025-12-22T03:48:31 [1628162] | #15 0x00005dafd4996e17 in std::__invoke_impl<void, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__f=<optimized out
      r/include/c++/13/bits/invoke.h:74
      # 2025-12-22T03:48:31 [1628162] | #16 0x00005dafd4996e35 in std::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__fn=<optimized out>) at /usr
      90
      # 2025-12-22T03:48:31 [1628162] | #17 std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::_M_invoke<0ul, 1ul, 2ul> (this
      ude/c++/13/bits/std_thread.h:292
      # 2025-12-22T03:48:31 [1628162] | #18 std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::operator() (this=<optimized ou
      s/std_thread.h:299
      # 2025-12-22T03:48:31 [1628162] | #19 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> > >::_M_
      /usr/include/c++/13/bits/std_thread.h:244
      # 2025-12-22T03:48:31 [1628162] | #20 0x0000393c0d7d8bb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      # 2025-12-22T03:48:31 [1628162] | #21 0x0000440f0913da94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      # 2025-12-22T03:48:31 [1628162] | #22 0x0000440f091caa34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

      ## Values (from rr)
      - len = 1297518 (1.24 MB)
      - recv_sys.MTR_SIZE_MAX = 1048576 (1 MB)
      - Table: test/blob_test (ROW_FORMAT=DYNAMIC with LONGBLOB columns)
      

      ## Key Settings
      - innodb_page_size=64K
      - innodb_defragment=ON
      

      RR trace is present on SDP:-
      /data/results/1766386826/TBR-2355

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              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.