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

btr_search_update_hash_on_delete(btr_cur_t*): Assertion `s != btr_sea::partition::ERASE_RETRY' failed

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Assertion found on debug build while testing MDEV-37482

      origin/MDEV-37482 a55b2f73a012e65b9c4b0d0ac89808bd5dd75a15

      # 2025-09-20T05:19:21 [3433533] | mariadbd: /data/Server/MDEV-37482/storage/innobase/btr/btr0sea.cc:1770: void btr_search_update_hash_on_delete(btr_cur_t*): Assertion `s != btr_sea::partition::ERASE_RETRY' failed.
      

      StackTrace

      # 2025-09-20T05:22:03 [3433533] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140398378870336) at ./nptl/pthread_kill.c:44
      # 2025-09-20T05:22:03 [3433533] #1  __pthread_kill_internal (signo=6, threadid=140398378870336) at ./nptl/pthread_kill.c:78
      # 2025-09-20T05:22:03 [3433533] #2  __GI___pthread_kill (threadid=140398378870336, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-09-20T05:22:03 [3433533] #3  0x000055c61eea3518 in my_write_core (sig=6) at /data/Server/MDEV-37482/mysys/stacktrace.c:424
      # 2025-09-20T05:22:03 [3433533] #4  0x000055c61e65c2a4 in handle_fatal_signal (sig=6) at /data/Server/MDEV-37482/sql/signal_handler.cc:298
      # 2025-09-20T05:22:03 [3433533] #5  <signal handler called>
      # 2025-09-20T05:22:03 [3433533] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140398378870336) at ./nptl/pthread_kill.c:44
      # 2025-09-20T05:22:03 [3433533] #7  __pthread_kill_internal (signo=6, threadid=140398378870336) at ./nptl/pthread_kill.c:78
      # 2025-09-20T05:22:03 [3433533] #8  __GI___pthread_kill (threadid=140398378870336, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-09-20T05:22:03 [3433533] #9  0x00007fb1472a2476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-09-20T05:22:03 [3433533] #10 0x00007fb1472887f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2025-09-20T05:22:03 [3433533] #11 0x00007fb14728871b in __assert_fail_base (fmt=0x7fb14743d130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c61f3b5fd0 "s != btr_sea::partition::ERASE_RETRY", file=0x55c61f3b54f0 "/data/Server/MDEV-37482/storage/innobase/btr/btr0sea.cc", line=1770, function=<optimized out>) at ./assert/assert.c:92
      # 2025-09-20T05:22:03 [3433533] #12 0x00007fb147299e96 in __GI___assert_fail (assertion=0x55c61f3b5fd0 "s != btr_sea::partition::ERASE_RETRY", file=0x55c61f3b54f0 "/data/Server/MDEV-37482/storage/innobase/btr/btr0sea.cc", line=1770, function=0x55c61f3b5f70 "void btr_search_update_hash_on_delete(btr_cur_t*)") at ./assert/assert.c:101
      # 2025-09-20T05:22:03 [3433533] #13 0x000055c61ecdc702 in btr_search_update_hash_on_delete (cursor=cursor@entry=0x55c621071490) at /data/Server/MDEV-37482/storage/innobase/btr/btr0sea.cc:1770
      # 2025-09-20T05:22:03 [3433533] #14 0x000055c61ecc570c in btr_cur_optimistic_delete (cursor=cursor@entry=0x55c621071490, flags=flags@entry=0, mtr=mtr@entry=0x7fb10b7fd100) at /data/Server/MDEV-37482/storage/innobase/btr/btr0cur.cc:4448
      # 2025-09-20T05:22:03 [3433533] #15 0x000055c61ebd7db1 in row_purge_remove_clust_if_poss_low (node=node@entry=0x55c621071408, mode=mode@entry=BTR_MODIFY_LEAF) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:226
      # 2025-09-20T05:22:03 [3433533] #16 0x000055c61ebd7ef1 in row_purge_remove_clust_if_poss (node=node@entry=0x55c621071408) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:264
      # 2025-09-20T05:22:03 [3433533] #17 0x000055c61ebd91cd in row_purge_del_mark (node=node@entry=0x55c621071408) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:1022
      # 2025-09-20T05:22:03 [3433533] #18 0x000055c61ebdb6da in row_purge_record_func (node=node@entry=0x55c621071408, undo_rec=undo_rec@entry=0x7fb136200740 "\ah\016", thr=thr@entry=0x55c621071238, updated_extern=<optimized out>) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:1517
      # 2025-09-20T05:22:03 [3433533] #19 0x000055c61ebdbc4c in row_purge (node=node@entry=0x55c621071408, undo_rec=undo_rec@entry=0x7fb136200740 "\ah\016", thr=thr@entry=0x55c621071238) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:1578
      # 2025-09-20T05:22:03 [3433533] #20 0x000055c61ebdbe13 in row_purge_step (thr=thr@entry=0x55c621071238) at /data/Server/MDEV-37482/storage/innobase/row/row0purge.cc:1641
      # 2025-09-20T05:22:03 [3433533] #21 0x000055c61eb397ff in que_thr_step (thr=thr@entry=0x55c621071238) at /data/Server/MDEV-37482/storage/innobase/que/que0que.cc:553
      # 2025-09-20T05:22:03 [3433533] #22 0x000055c61eb39ab9 in que_run_threads_low (thr=thr@entry=0x55c621071238) at /data/Server/MDEV-37482/storage/innobase/que/que0que.cc:609
      # 2025-09-20T05:22:03 [3433533] #23 0x000055c61eb39b80 in que_run_threads (thr=thr@entry=0x55c621071238) at /data/Server/MDEV-37482/storage/innobase/que/que0que.cc:629
      # 2025-09-20T05:22:03 [3433533] #24 0x000055c61ec299c1 in srv_task_execute () at /data/Server/MDEV-37482/storage/innobase/srv/srv0srv.cc:1357
      # 2025-09-20T05:22:03 [3433533] #25 0x000055c61ec29b4f in srv_purge_worker_task_low () at /data/Server/MDEV-37482/storage/innobase/srv/srv0srv.cc:1488
      # 2025-09-20T05:22:03 [3433533] #26 0x000055c61ec414ec in trx_purge (n_tasks=<optimized out>, n_tasks@entry=4, history_size=<optimized out>) at /data/Server/MDEV-37482/storage/innobase/trx/trx0purge.cc:1443
      # 2025-09-20T05:22:03 [3433533] #27 0x000055c61ec2a7cc in purge_coordinator_state::do_purge (this=this@entry=0x55c6204b43a0 <purge_state>) at /data/Server/MDEV-37482/storage/innobase/srv/srv0srv.cc:1423
      # 2025-09-20T05:22:03 [3433533] #28 0x000055c61ec29e6a in purge_coordinator_callback () at /data/Server/MDEV-37482/storage/innobase/srv/srv0srv.cc:1507
      # 2025-09-20T05:22:03 [3433533] #29 0x000055c61ee382fe in tpool::task_group::execute (this=0x55c6204b41c0 <purge_coordinator_task_group>, t=t@entry=0x55c6204b4120 <purge_coordinator_task>) at /data/Server/MDEV-37482/tpool/task_group.cc:73
      # 2025-09-20T05:22:03 [3433533] #30 0x000055c61ee386d1 in tpool::task::execute (this=0x55c6204b4120 <purge_coordinator_task>) at /data/Server/MDEV-37482/tpool/task.cc:32
      # 2025-09-20T05:22:03 [3433533] #31 0x000055c61ee34c03 in tpool::thread_pool_generic::worker_main (this=0x55c620e72590, thread_var=0x55c620e72be0) at /data/Server/MDEV-37482/tpool/tpool_generic.cc:529
      # 2025-09-20T05:22:03 [3433533] #32 0x000055c61ee34e5b in std::__invoke_impl<void, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__t=<optimized out>, __f=<optimized out>) at /usr/include/c++/11/bits/invoke.h:74
      # 2025-09-20T05:22:03 [3433533] #33 std::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__fn=<optimized out>) at /usr/include/c++/11/bits/invoke.h:96
      # 2025-09-20T05:22:03 [3433533] #34 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=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:259
      # 2025-09-20T05:22:03 [3433533] #35 std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::operator() (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:266
      # 2025-09-20T05:22:03 [3433533] #36 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_run (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:211
      # 2025-09-20T05:22:03 [3433533] #37 0x00007fb14766e253 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      # 2025-09-20T05:22:03 [3433533] #38 0x00007fb1472f4ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      # 2025-09-20T05:22:03 [3433533] #39 0x00007fb147386850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto:-
      /data/results/1758322073/008428

      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:
                Resolved:

                Git Integration

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