Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.1(EOL), 11.2(EOL), 11.4, 11.5(EOL), 11.6(EOL)
Description
--source include/have_innodb.inc |
CREATE TABLE t1(c1 INT) ENGINE=INNODB; |
SET @@unique_checks=0; |
CREATE TABLE t2(c1 INT) ENGINE=INNODB; |
CREATE TRIGGER t2_trg BEFORE INSERT ON t2 FOR EACH ROW UPDATE t1 SET c1=c1+1; |
SET @@foreign_key_checks=0; |
INSERT INTO t2 VALUES (1),(2); |
Leads to
10.6.18 c1f3eff53f07654d84ff868f906ecda5d1fdf311 (Debug) |
mariadbd: /test/10.6_dbg/storage/innobase/trx/trx0rec.cc:1862: 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.
|
10.6.18 c1f3eff53f07654d84ff868f906ecda5d1fdf311 (Debug) |
Core was generated by `/test/MD300424-mariadb-10.6.18-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14b2fc0fc700 (LWP 2572380))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014b310a08859 in __GI_abort () at abort.c:79
|
#2 0x000014b310a08729 in __assert_fail_base (fmt=0x14b310b9e588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555eae889264 "trx->bulk_insert", file=0x555eae889388 "/test/10.6_dbg/storage/innobase/trx/trx0rec.cc", line=1862, function=<optimized out>) at assert.c:92
|
#3 0x000014b310a19fd6 in __GI___assert_fail (assertion=assertion@entry=0x555eae889264 "trx->bulk_insert", file=file@entry=0x555eae889388 "/test/10.6_dbg/storage/innobase/trx/trx0rec.cc", line=line@entry=1862, function=function@entry=0x555eae889c80 "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.c:101
|
#4 0x0000555eae1c000d in trx_undo_report_row_operation (thr=thr@entry=0x14b2cc028f30, index=index@entry=0x14b2cc0257b8, clust_entry=clust_entry@entry=0x14b2cc01e7e8, update=update@entry=0x0, cmpl_info=cmpl_info@entry=0, rec=rec@entry=0x0, offsets=0x0, roll_ptr=0x14b2fc0f9310) at /test/10.6_dbg/storage/innobase/trx/trx0rec.cc:1862
|
#5 0x0000555eae21afc4 in btr_cur_ins_lock_and_undo (flags=flags@entry=0, cursor=cursor@entry=0x14b2fc0f9800, entry=entry@entry=0x14b2cc01e7e8, thr=thr@entry=0x14b2cc028f30, mtr=mtr@entry=0x14b2fc0f9d90, inherit=inherit@entry=0x14b2fc0f93f6) at /test/10.6_dbg/storage/innobase/btr/btr0cur.cc:2287
|
#6 0x0000555eae222244 in btr_cur_optimistic_insert (flags=flags@entry=0, cursor=cursor@entry=0x14b2fc0f9800, offsets=offsets@entry=0x14b2fc0f97e8, heap=heap@entry=0x14b2fc0f97e0, entry=entry@entry=0x14b2cc01e7e8, rec=rec@entry=0x14b2fc0f97f8, big_rec=0x14b2fc0f97d8, n_ext=<optimized out>, thr=0x14b2cc028f30, mtr=0x14b2fc0f9d90) at /test/10.6_dbg/storage/innobase/btr/btr0cur.cc:2514
|
#7 0x0000555eae103377 in row_ins_clust_index_entry_low (flags=flags@entry=0, mode=<optimized out>, mode@entry=BTR_MODIFY_LEAF, index=index@entry=0x14b2cc0257b8, n_uniq=n_uniq@entry=0, entry=entry@entry=0x14b2cc01e7e8, n_ext=n_ext@entry=0, thr=<optimized out>) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:2837
|
#8 0x0000555eae104cf2 in row_ins_clust_index_entry (index=index@entry=0x14b2cc0257b8, entry=entry@entry=0x14b2cc01e7e8, thr=thr@entry=0x14b2cc028f30, n_ext=n_ext@entry=0) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:3238
|
#9 0x0000555eae106750 in row_ins_index_entry (thr=0x14b2cc028f30, entry=0x14b2cc01e7e8, index=0x14b2cc0257b8) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:3364
|
#10 row_ins_index_entry_step (thr=0x14b2cc028f30, node=<optimized out>) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:3532
|
#11 row_ins (thr=0x14b2cc028f30, node=<optimized out>) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:3657
|
#12 row_ins_step (thr=thr@entry=0x14b2cc028f30) at /test/10.6_dbg/storage/innobase/row/row0ins.cc:3786
|
#13 0x0000555eae12833d in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x14b2cc038858 "\375\002", prebuilt=0x14b2cc028868, ins_mode=ROW_INS_NORMAL) at /test/10.6_dbg/storage/innobase/row/row0mysql.cc:1316
|
#14 0x0000555eadfaccf4 in ha_innobase::write_row (this=0x14b2cc027fd0, record=0x14b2cc038858 "\375\002") at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:7878
|
#15 0x0000555eadbf3f04 in handler::ha_write_row (this=0x14b2cc027fd0, buf=0x14b2cc038858 "\375\002") at /test/10.6_dbg/sql/handler.cc:7719
|
#16 0x0000555ead8c25cc in write_record (thd=thd@entry=0x14b2cc000d48, table=table@entry=0x14b2cc030f98, info=info@entry=0x14b2fc0fab70, sink=sink@entry=0x0) at /test/10.6_dbg/sql/sql_insert.cc:2187
|
#17 0x0000555ead8cd113 in mysql_insert (thd=thd@entry=0x14b2cc000d48, table_list=<optimized out>, fields=@0x14b2cc006038: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555eaef42030 <end_of_list>, last = 0x14b2cc006038, elements = 0}, <No data fields>}, values_list=@0x14b2cc006080: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14b2cc0140c0, last = 0x14b2cc014178, elements = 2}, <No data fields>}, update_fields=@0x14b2cc006068: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555eaef42030 <end_of_list>, last = 0x14b2cc006068, elements = 0}, <No data fields>}, update_values=@0x14b2cc006050: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x555eaef42030 <end_of_list>, last = 0x14b2cc006050, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false, result=0x0) at /test/10.6_dbg/sql/sql_insert.cc:1133
|
#18 0x0000555ead90f5f8 in mysql_execute_command (thd=thd@entry=0x14b2cc000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:4608
|
#19 0x0000555ead8fb071 in mysql_parse (thd=thd@entry=0x14b2cc000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14b2fc0fb2c0) at /test/10.6_dbg/sql/sql_parse.cc:8146
|
#20 0x0000555ead908f64 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14b2cc000d48, packet=packet@entry=0x14b2cc00afb9 "INSERT INTO t2 VALUES (1),(2)", packet_length=packet_length@entry=29, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1416
|
#21 0x0000555ead90b8ea in do_command (thd=0x14b2cc000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
|
#22 0x0000555eada64dd5 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x555eb137d4e8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1415
|
#23 0x0000555eada6538a in handle_one_connection (arg=arg@entry=0x555eb137d4e8) at /test/10.6_dbg/sql/sql_connect.cc:1317
|
#24 0x0000555eadee0624 in pfs_spawn_thread (arg=0x555eb136b3f8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#25 0x000014b310f19609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x000014b310b05133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.6.18 (dbg), 10.11.8 (dbg)