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

dberr_t trx_undo_report_row_operation(que_thr_t*, dict_index_t*, const dtuple_t*, const upd_t*, ulint, const rec_t*, const rec_offs*, roll_ptr_t*): Assertion `trx->bulk_insert' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug build:-

      origin/10.11 2f5bad2f2bbe1c43bf796edb67b93fc64d3c3157

      # 2025-10-14T17:20:04 [476769] | mariadbd: /data/Server/10.11E/storage/innobase/trx/trx0rec.cc:1875: dberr_t trx_undo_report_row_operation(que_thr_t*, dict_index_t*, const dtuple_t*, const upd_t*, ulint, const rec_t*, const rec_offs*, roll_ptr_t*): Assertion `trx->bulk_insert' failed.
      

      # 2025-10-14T17:21:20 [476769] Thread 1 (Thread 0x7f376c3ff6c0 (LWP 486003)):
      # 2025-10-14T17:21:20 [476769] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-10-14T17:21:20 [476769] #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-10-14T17:21:20 [476769] #2  __GI___pthread_kill (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-10-14T17:21:20 [476769] #3  0x00005d7fe0a5ab01 in my_write_core (sig=6) at /data/Server/10.11E/mysys/stacktrace.c:424
      # 2025-10-14T17:21:20 [476769] #4  0x00005d7fe04f1190 in handle_fatal_signal (sig=6) at /data/Server/10.11E/sql/signal_handler.cc:298
      # 2025-10-14T17:21:20 [476769] #5  <signal handler called>
      # 2025-10-14T17:21:20 [476769] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-10-14T17:21:20 [476769] #7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-10-14T17:21:20 [476769] #8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-10-14T17:21:20 [476769] #9  0x00007f376fe4526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-10-14T17:21:20 [476769] #10 0x00007f376fe288ff in __GI_abort () at ./stdlib/abort.c:79
      # 2025-10-14T17:21:20 [476769] #11 0x00007f376fe2881b in __assert_fail_base (fmt=0x7f376ffd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5d7fe0cd7235 "trx->bulk_insert", file=file@entry=0x5d7fe0c40ae8 "/data/Server/10.11E/storage/innobase/trx/trx0rec.cc", line=line@entry=1875, function=function@entry=0x5d7fe0c41800 "dberr_t trx_undo_report_row_operation(que_thr_t*, dict_index_t*, const dtuple_t*, const upd_t*, ulint, const rec_t*, const rec_offs*, roll_ptr_t*)") at ./assert/assert.c:94
      # 2025-10-14T17:21:20 [476769] #12 0x00007f376fe3b507 in __assert_fail (assertion=0x5d7fe0cd7235 "trx->bulk_insert", file=0x5d7fe0c40ae8 "/data/Server/10.11E/storage/innobase/trx/trx0rec.cc", line=1875, function=0x5d7fe0c41800 "dberr_t trx_undo_report_row_operation(que_thr_t*, dict_index_t*, const dtuple_t*, const upd_t*, ulint, const rec_t*, const rec_offs*, roll_ptr_t*)") at ./assert/assert.c:103
      # 2025-10-14T17:21:20 [476769] #13 0x00005d7fe08d9091 in trx_undo_report_row_operation (thr=thr@entry=0x7f36a002d6f8, index=index@entry=0x7f37041129c0, clust_entry=clust_entry@entry=0x7f36a0037ce0, update=update@entry=0x0, cmpl_info=cmpl_info@entry=0, rec=rec@entry=0x0, offsets=0x0, roll_ptr=0x7f376c3fca30) at /data/Server/10.11E/storage/innobase/trx/trx0rec.cc:1875
      # 2025-10-14T17:21:20 [476769] #14 0x00005d7fe0914c75 in btr_cur_ins_lock_and_undo (flags=flags@entry=0, cursor=cursor@entry=0x7f376c3fcf20, entry=entry@entry=0x7f36a0037ce0, thr=thr@entry=0x7f36a002d6f8, mtr=mtr@entry=0x7f376c3fd250, inherit=inherit@entry=0x7f376c3fcb0f) at /data/Server/10.11E/storage/innobase/btr/btr0cur.cc:2352
      # 2025-10-14T17:21:20 [476769] #15 0x00005d7fe0919dfc in btr_cur_optimistic_insert (flags=flags@entry=0, cursor=cursor@entry=0x7f376c3fcf20, offsets=offsets@entry=0x7f376c3fcee8, heap=heap@entry=0x7f376c3fcee0, entry=entry@entry=0x7f36a0037ce0, rec=rec@entry=0x7f376c3fcef0, big_rec=0x7f376c3fced8, n_ext=<optimized out>, thr=0x7f36a002d6f8, mtr=0x7f376c3fd250) at /data/Server/10.11E/storage/innobase/btr/btr0cur.cc:2579
      # 2025-10-14T17:21:20 [476769] #16 0x00005d7fe085830f in row_ins_clust_index_entry_low (flags=flags@entry=0, mode=mode@entry=BTR_MODIFY_LEAF, index=index@entry=0x7f37041129c0, n_uniq=n_uniq@entry=1, entry=entry@entry=0x7f36a0037ce0, n_ext=n_ext@entry=0, thr=0x7f36a002d6f8) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:2948
      # 2025-10-14T17:21:20 [476769] #17 0x00005d7fe08587b0 in row_ins_clust_index_entry (index=index@entry=0x7f37041129c0, entry=entry@entry=0x7f36a0037ce0, thr=thr@entry=0x7f36a002d6f8, n_ext=n_ext@entry=0) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:3351
      # 2025-10-14T17:21:20 [476769] #18 0x00005d7fe0858aa2 in row_ins_index_entry (index=0x7f37041129c0, entry=0x7f36a0037ce0, thr=thr@entry=0x7f36a002d6f8) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:3496
      # 2025-10-14T17:21:20 [476769] #19 0x00005d7fe0858b53 in row_ins_index_entry_step (node=node@entry=0x7f36a002d1a8, thr=thr@entry=0x7f36a002d6f8) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:3662
      # 2025-10-14T17:21:20 [476769] #20 0x00005d7fe0858d74 in row_ins (node=node@entry=0x7f36a002d1a8, thr=thr@entry=0x7f36a002d6f8) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:3787
      # 2025-10-14T17:21:20 [476769] #21 0x00005d7fe0859044 in row_ins_step (thr=thr@entry=0x7f36a002d6f8) at /data/Server/10.11E/storage/innobase/row/row0ins.cc:3916
      # 2025-10-14T17:21:20 [476769] #22 0x00005d7fe0871614 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x7f36a0029338 "\350r\001", prebuilt=0x7f36a002cb80, ins_mode=<optimized out>) at /data/Server/10.11E/storage/innobase/row/row0mysql.cc:1301
      # 2025-10-14T17:21:20 [476769] #23 0x00005d7fe07305b9 in ha_innobase::write_row (this=0x7f36a0028b38, record=0x7f36a0029338 "\350r\001") at /data/Server/10.11E/storage/innobase/handler/ha_innodb.cc:7792
      # 2025-10-14T17:21:20 [476769] #24 0x00005d7fe04ff01d in handler::ha_write_row (this=0x7f36a0028b38, buf=0x7f36a0029338 "\350r\001") at /data/Server/10.11E/sql/handler.cc:7765
      # 2025-10-14T17:21:20 [476769] #25 0x00005d7fe0250dcb in Write_record::single_insert (this=this@entry=0x7f376c3fdcb0, inserted=inserted@entry=0x7f376c3fdb30) at /data/Server/10.11E/sql/sql_insert.cc:2320
      # 2025-10-14T17:21:20 [476769] #26 0x00005d7fe02513e4 in Write_record::write_record (this=this@entry=0x7f376c3fdcb0) at /data/Server/10.11E/sql/sql_insert.cc:2362
      # 2025-10-14T17:21:20 [476769] #27 0x00005d7fe025760a in mysql_insert (thd=thd@entry=0x7f36a0000d58, table_list=<optimized out>, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /data/Server/10.11E/sql/sql_insert.cc:1216
      # 2025-10-14T17:21:20 [476769] #28 0x00005d7fe02886d6 in mysql_execute_command (thd=thd@entry=0x7f36a0000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11E/sql/sql_parse.cc:4628
      # 2025-10-14T17:21:20 [476769] #29 0x00005d7fe028d506 in mysql_parse (thd=thd@entry=0x7f36a0000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f376c3fe400) at /data/Server/10.11E/sql/sql_parse.cc:8184
      # 2025-10-14T17:21:20 [476769] #30 0x00005d7fe028eb72 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f36a0000d58, packet=packet@entry=0x7f36a000afa9 " INSERT INTO t2 (col1,col2, col_int, col_string, col_text) VALUES ( 370, 370, 370, REPEAT(SUBSTR(CAST( 370 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 370 AS CHAR),1,1), @fill_amount) ) /* E_R Thread14 QNO 16 CON_ID 31 */ ", packet_length=packet_length@entry=218, blocking=blocking@entry=true) at /data/Server/10.11E/sql/sql_parse.cc:1906
      # 2025-10-14T17:21:20 [476769] #31 0x00005d7fe0290010 in do_command (thd=thd@entry=0x7f36a0000d58, blocking=blocking@entry=true) at /data/Server/10.11E/sql/sql_parse.cc:1419
      # 2025-10-14T17:21:20 [476769] #32 0x00005d7fe03b30e3 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5d7fe3d7f9d8, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11E/sql/sql_connect.cc:1475
      # 2025-10-14T17:21:20 [476769] #33 0x00005d7fe03b32f4 in handle_one_connection (arg=0x5d7fe3d7f9d8) at /data/Server/10.11E/sql/sql_connect.cc:1387
      # 2025-10-14T17:21:20 [476769] #34 0x00007f376fe9ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      # 2025-10-14T17:21:20 [476769] #35 0x00007f376ff29c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Core dump is present on SDP:-
      /data/results/1760480250/TBR-939

      Attachments

        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.