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

Assertion `!ext || index->is_primary()' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion was found while testing MDEV-37306

      origin/MDEV-37306 cea7feb6242b9114b543007348d8f8de0935853d

      # 2025-10-26T14:05:31 [1349849] | mariadbd: /data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc:451: void rec_init_offsets_comp_ordinary(const rec_t*, const dict_index_t*, rec_offs*, ulint, const dict_col_t::def_t*, rec_leaf_format) [with bool mblob = false; bool redundant_temp = false; rec_t = unsigned char; rec_offs = short unsigned int; ulint = long unsigned int]: Assertion `!ext || index->is_primary()' failed.
      

      Stacktrace

       2025-10-26T14:07:13 [1349849] Thread 1 (Thread 0x788b584856c0 (LWP 1358429)):
      # 2025-10-26T14:07:13 [1349849] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-10-26T14:07:13 [1349849] #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-10-26T14:07:13 [1349849] #2  __GI___pthread_kill (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-10-26T14:07:13 [1349849] #3  0x00005dec31dfad6d in my_write_core (sig=6) at /data/Server/MDEV-37306/mysys/stacktrace.c:424
      # 2025-10-26T14:07:13 [1349849] #4  0x00005dec3187a9c6 in handle_fatal_signal (sig=6) at /data/Server/MDEV-37306/sql/signal_handler.cc:298
      # 2025-10-26T14:07:13 [1349849] #5  <signal handler called>
      # 2025-10-26T14:07:13 [1349849] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-10-26T14:07:13 [1349849] #7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-10-26T14:07:13 [1349849] #8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-10-26T14:07:13 [1349849] #9  0x0000788b58c4526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-10-26T14:07:13 [1349849] #10 0x0000788b58c288ff in __GI_abort () at ./stdlib/abort.c:79
      # 2025-10-26T14:07:13 [1349849] #11 0x0000788b58c2881b in __assert_fail_base (fmt=0x788b58dd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5dec32054e9c "!ext || index->is_primary()", file=file@entry=0x5dec31f9ce80 "/data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc", line=line@entry=451, function=function@entry=0x5dec31f9db78 "void rec_init_offsets_comp_ordinary(const rec_t*, const dict_index_t*, rec_offs*, ulint, const dict_col_t::def_t*, rec_leaf_format) [with bool mblob = false; bool redundant_temp = false; rec_t = unsigned char; rec_offs = short unsigned int; ulint = long unsigned int]") at ./assert/assert.c:94
      # 2025-10-26T14:07:13 [1349849] #12 0x0000788b58c3b507 in __assert_fail (assertion=0x5dec32054e9c "!ext || index->is_primary()", file=0x5dec31f9ce80 "/data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc", line=451, function=0x5dec31f9db78 "void rec_init_offsets_comp_ordinary(const rec_t*, const dict_index_t*, rec_offs*, ulint, const dict_col_t::def_t*, rec_leaf_format) [with bool mblob = false; bool redundant_temp = false; rec_t = unsigned char; rec_offs = short unsigned int; ulint = long unsigned int]") at ./assert/assert.c:103
      # 2025-10-26T14:07:13 [1349849] #13 0x00005dec31bd405d in rec_init_offsets_comp_ordinary<>(const rec_t *, const dict_index_t *, rec_offs *, ulint, const dict_col_t::def_t *, rec_leaf_format) (rec=<optimized out>, index=<optimized out>, offsets=offsets@entry=0x788b58481b10, n_core=n_core@entry=2, def_val=def_val@entry=0x0, format=format@entry=REC_LEAF_ORDINARY) at /data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc:451
      # 2025-10-26T14:07:13 [1349849] #14 0x00005dec31bd414f in rec_init_offsets (rec=<optimized out>, index=<optimized out>, n_core=n_core@entry=2, offsets=offsets@entry=0x788b58481b10) at /data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc:657
      # 2025-10-26T14:07:13 [1349849] #15 0x00005dec31bd7641 in rec_get_offsets_func (rec=<optimized out>, rec@entry=0x788b4ac58090 "\200", index=<optimized out>, index@entry=0x788aec0fab20, offsets=0x788b58481b10, n_core=n_core@entry=2, n_fields=n_fields@entry=18446744073709551615, file=file@entry=0x5dec31f939a0 "/data/Server/MDEV-37306/storage/innobase/page/page0page.cc", line=2128, heap=0x788b58481ae0) at /data/Server/MDEV-37306/storage/innobase/rem/rem0rec.cc:938
      # 2025-10-26T14:07:13 [1349849] #16 0x00005dec31bae95e in page_validate (page=0x788b4ac58000 "\0347i7", index=0x788aec0fab20) at /data/Server/MDEV-37306/storage/innobase/page/page0page.cc:2128
      # 2025-10-26T14:07:13 [1349849] #17 0x00005dec31b3ec77 in ibuf_merge_or_delete_for_page (block=block@entry=0x788b4ac00c30, page_id=..., zip_size=8192) at /data/Server/MDEV-37306/storage/innobase/ibuf/ibuf0ibuf.cc:4256
      # 2025-10-26T14:07:13 [1349849] #18 0x00005dec31cdde5b in buf_page_ibuf_merge_try (block=block@entry=0x788b4ac00c30, rw_latch=rw_latch@entry=2, err=err@entry=0x788b5848280c) at /data/Server/MDEV-37306/storage/innobase/include/buf0buf.h:651
      # 2025-10-26T14:07:13 [1349849] #19 0x00005dec31cde25f in buf_pool_t::page_fix (this=0x5dec327e2b40 <buf_pool>, id=..., id@entry=..., err=err@entry=0x788b5848280c, c=c@entry=buf_pool_t::FIX_WAIT_READ) at /data/Server/MDEV-37306/storage/innobase/buf/buf0buf.cc:2639
      # 2025-10-26T14:07:13 [1349849] #20 0x00005dec31cc0be7 in btr_latch_prev (rw_latch=rw_latch@entry=RW_X_LATCH, page_id=..., page_id@entry=..., err=err@entry=0x788b5848280c, mtr=mtr@entry=0x788b584832f0) at /data/Server/MDEV-37306/storage/innobase/btr/btr0cur.cc:1019
      # 2025-10-26T14:07:13 [1349849] #21 0x00005dec31cc1430 in btr_cur_t::pessimistic_search_leaf (this=this@entry=0x788b584830a0, tuple=tuple@entry=0x788aec1132c0, mode=mode@entry=PAGE_CUR_LE, mtr=mtr@entry=0x788b584832f0) at /data/Server/MDEV-37306/storage/innobase/btr/btr0cur.cc:1842
      # 2025-10-26T14:07:13 [1349849] #22 0x00005dec31cc34c2 in btr_cur_t::search_leaf (this=this@entry=0x788b584830a0, tuple=tuple@entry=0x788aec1132c0, mode=mode@entry=PAGE_CUR_LE, latch_mode=<optimized out>, latch_mode@entry=BTR_PURGE_TREE_ALREADY_LATCHED, mtr=mtr@entry=0x788b584832f0) at /data/Server/MDEV-37306/storage/innobase/btr/btr0cur.cc:1573
      # 2025-10-26T14:07:13 [1349849] #23 0x00005dec31c2b1a4 in btr_pcur_open (mtr=0x788b584832f0, cursor=0x788b584830a0, latch_mode=BTR_PURGE_TREE_ALREADY_LATCHED, mode=PAGE_CUR_LE, tuple=0x788aec1132c0) at /data/Server/MDEV-37306/storage/innobase/include/btr0pcur.h:430
      # 2025-10-26T14:07:13 [1349849] #24 row_search_index_entry (entry=entry@entry=0x788aec1132c0, mode=BTR_PURGE_TREE_ALREADY_LATCHED, pcur=pcur@entry=0x788b584830a0, mtr=mtr@entry=0x788b584832f0) at /data/Server/MDEV-37306/storage/innobase/row/row0row.cc:1289
      # 2025-10-26T14:07:13 [1349849] #25 0x00005dec31d92098 in row_undo_ins_remove_sec_low (mode=<optimized out>, mode@entry=BTR_PURGE_TREE, index=index@entry=0x788ad408d360, entry=entry@entry=0x788aec1132c0, thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0uins.cc:304
      # 2025-10-26T14:07:13 [1349849] #26 0x00005dec31d921ef in row_undo_ins_remove_sec (index=index@entry=0x788ad408d360, entry=0x788aec1132c0, thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0uins.cc:362
      # 2025-10-26T14:07:13 [1349849] #27 0x00005dec31d922a3 in row_undo_ins_remove_sec_rec (node=node@entry=0x788aec0d4570, thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0uins.cc:547
      # 2025-10-26T14:07:13 [1349849] #28 0x00005dec31d9249c in row_undo_ins (node=node@entry=0x788aec0d4570, thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0uins.cc:599
      # 2025-10-26T14:07:13 [1349849] #29 0x00005dec31c44511 in row_undo (node=node@entry=0x788aec0d4570, thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0undo.cc:401
      # 2025-10-26T14:07:13 [1349849] #30 0x00005dec31c45074 in row_undo_step (thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/row/row0undo.cc:442
      # 2025-10-26T14:07:13 [1349849] #31 0x00005dec31bc5485 in que_thr_step (thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/que/que0que.cc:551
      # 2025-10-26T14:07:13 [1349849] #32 0x00005dec31bc5676 in que_run_threads_low (thr=thr@entry=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/que/que0que.cc:609
      # 2025-10-26T14:07:13 [1349849] #33 0x00005dec31bc5737 in que_run_threads (thr=0x788abc0c2df0) at /data/Server/MDEV-37306/storage/innobase/que/que0que.cc:629
      # 2025-10-26T14:07:13 [1349849] #34 0x00005dec31c7a4f0 in trx_t::rollback_low (this=this@entry=0x788b58605c80, savept=savept@entry=0x0) at /data/Server/MDEV-37306/storage/innobase/trx/trx0roll.cc:117
      # 2025-10-26T14:07:13 [1349849] #35 0x00005dec31c7ad1c in trx_rollback_for_mysql (trx=trx@entry=0x788b58605c80) at /data/Server/MDEV-37306/storage/innobase/trx/trx0roll.cc:211
      # 2025-10-26T14:07:13 [1349849] #36 0x00005dec31adc40d in innobase_rollback (thd=<optimized out>, rollback_trx=true) at /data/Server/MDEV-37306/storage/innobase/handler/ha_innodb.cc:4768
      # 2025-10-26T14:07:13 [1349849] #37 0x00005dec3187fa91 in ha_rollback_trans (thd=thd@entry=0x788aec000d58, all=all@entry=true) at /data/Server/MDEV-37306/sql/handler.cc:2315
      # 2025-10-26T14:07:13 [1349849] #38 0x00005dec31759b55 in trans_rollback (thd=thd@entry=0x788aec000d58) at /data/Server/MDEV-37306/sql/transaction.cc:391
      # 2025-10-26T14:07:13 [1349849] #39 0x00005dec31636043 in mysql_execute_command (thd=thd@entry=0x788aec000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-37306/sql/sql_parse.cc:5827
      # 2025-10-26T14:07:13 [1349849] #40 0x00005dec316378dc in mysql_parse (thd=thd@entry=0x788aec000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x788b58484410) at /data/Server/MDEV-37306/sql/sql_parse.cc:8200
      # 2025-10-26T14:07:13 [1349849] #41 0x00005dec31638f48 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x788aec000d58, packet=packet@entry=0x788aec00af69 " ROLLBACK  /* E_R Thread5 QNO 1631 CON_ID 84 */ ", packet_length=packet_length@entry=48, blocking=blocking@entry=true) at /data/Server/MDEV-37306/sql/sql_parse.cc:1908
      # 2025-10-26T14:07:13 [1349849] #42 0x00005dec3163a3e6 in do_command (thd=thd@entry=0x788aec000d58, blocking=blocking@entry=true) at /data/Server/MDEV-37306/sql/sql_parse.cc:1421
      # 2025-10-26T14:07:13 [1349849] #43 0x00005dec31748859 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5dec347fbe78, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-37306/sql/sql_connect.cc:1386
      # 2025-10-26T14:07:13 [1349849] #44 0x00005dec31748a6a in handle_one_connection (arg=0x5dec347fbe78) at /data/Server/MDEV-37306/sql/sql_connect.cc:1298
      # 2025-10-26T14:07:13 [1349849] #45 0x0000788b58c9ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      # 2025-10-26T14:07:13 [1349849] #46 0x0000788b58d29c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Core dump is present on SDP:-
      /data/results/1761508324/TBR-2182

      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: