Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.7(EOL), 10.8(EOL)
Description
This bug seems unrelated to MDEV-27744. Possibly connected with MDEV-26947.
# mysqld options required for replay: --log-bin |
SET unique_checks=0,foreign_key_checks=0,autocommit=0; |
CREATE TABLE t (a INT KEY,b INT,FOREIGN KEY(b) REFERENCES ti1 (b)); |
INSERT INTO t VALUES (0,0),(0,0),(0,0); |
INSERT INTO t VALUES (0,1); |
INSERT INTO t SELECT * FROM t; |
Leads to:
10.8.1 0c5d1342ae6b5ab3256848be7a83e5c3b1f21566 (Optimized) |
2022-02-05 10:18:29 0 [Note] /test/MD290122-mariadb-10.8.1-linux-x86_64-opt/bin/mysqld: ready for connections.
|
Version: '10.8.1-MariaDB-log' socket: '/test/MD290122-mariadb-10.8.1-linux-x86_64-opt/socket.sock' port: 23542 MariaDB Server
|
2022-02-05 10:18:48 0x1475c80d0700 InnoDB: Assertion failure in file /test/10.8_opt/storage/innobase/row/row0ins.cc line 221
|
InnoDB: Failing assertion: !cursor->index->is_committed()
|
10.8.1 0c5d1342ae6b5ab3256848be7a83e5c3b1f21566 (Optimized) |
Core was generated by `/test/MD290122-mariadb-10.8.1-linux-x86_64-opt/bin/mysqld --no-defaults --core-'.
|
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 0x1475c80d0700 (LWP 1270783))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x00001475c8781859 in __GI_abort () at abort.c:79
|
#2 0x000055a5ebb6fe61 in ut_dbg_assertion_failed (expr=expr@entry=0x55a5ec7d5698 "!cursor->index->is_committed()", file=file@entry=0x55a5ec7d51a0 "/test/10.8_opt/storage/innobase/row/row0ins.cc", line=line@entry=221) at /test/10.8_opt/storage/innobase/ut/ut0dbg.cc:60
|
#3 0x000055a5ebb61767 in row_ins_sec_index_entry_by_modify (mtr=0x1475c80cd810, thr=0x147574030f18, entry=0x14757401d610, heap=0x147574080bb8, offsets_heap=<optimized out>, offsets=0x1475c80cd238, cursor=0x1475c80cd2a0, mode=2, flags=0) at /test/10.8_opt/storage/innobase/row/row0ins.cc:221
|
#4 row_ins_sec_index_entry_low (flags=<optimized out>, mode=<optimized out>, index=0x14757401ec80, offsets_heap=<optimized out>, heap=<optimized out>, entry=<optimized out>, trx_id=<optimized out>, thr=<optimized out>) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3117
|
#5 0x000055a5ec2b9e4e in row_ins_sec_index_entry (index=0x14757401ec80, entry=0x14757401d610, thr=0x147574030f18, check_foreign=<optimized out>) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3331
|
#6 0x000055a5ec2bc413 in row_ins_index_entry (thr=0x147574030f18, entry=<optimized out>, index=<optimized out>) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3390
|
#7 row_ins_index_entry_step (thr=0x147574030f18, node=<optimized out>) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3556
|
#8 row_ins (thr=0x147574030f18, node=<optimized out>) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3702
|
#9 row_ins_step (thr=thr@entry=0x147574030f18) at /test/10.8_opt/storage/innobase/row/row0ins.cc:3848
|
#10 0x000055a5ec2ce2e5 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x14757402f768 <incomplete sequence \375>, prebuilt=0x1475740307d0, ins_mode=ROW_INS_NORMAL) at /test/10.8_opt/storage/innobase/row/row0mysql.cc:1318
|
#11 0x000055a5ec21771a in ha_innobase::write_row (this=0x14757402fb80, record=0x14757402f768 <incomplete sequence \375>) at /test/10.8_opt/storage/innobase/handler/ha_innodb.cc:7777
|
#12 0x000055a5ebf2acd0 in handler::ha_write_row (this=0x14757402fb80, buf=0x14757402f768 <incomplete sequence \375>) at /test/10.8_opt/sql/handler.cc:7519
|
#13 0x000055a5ebc9581d in write_record (thd=0x147574000c58, table=0x147574017548, info=info@entry=0x1475740126d0, sink=0x0) at /test/10.8_opt/sql/sql_insert.cc:2156
|
#14 0x000055a5ebc96413 in select_insert::send_data (this=0x147574012680, values=<optimized out>) at /test/10.8_opt/sql/sql_insert.cc:4112
|
#15 0x000055a5ebd34f3c in select_result_sink::send_data_with_check (u=<optimized out>, sent=<optimized out>, items=@0x147574012b08: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14757405d360, last = 0x14757405d488, elements = 2}, <No data fields>}, this=<optimized out>) at /test/10.8_opt/sql/sql_class.h:5612
|
#16 select_result_sink::send_data_with_check (sent=<optimized out>, u=<optimized out>, items=@0x147574012b08: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14757405d360, last = 0x14757405d488, elements = 2}, <No data fields>}, this=<optimized out>) at /test/10.8_opt/sql/sql_class.h:5602
|
#17 end_send (join=0x147574012740, join_tab=0x1475740143c0, end_of_records=<optimized out>) at /test/10.8_opt/sql/sql_select.cc:22313
|
#18 0x000055a5ebd0bba3 in evaluate_join_record (join=0x147574012740, join_tab=0x147574014010, error=<optimized out>) at /test/10.8_opt/sql/sql_select.cc:21306
|
#19 0x000055a5ebd42a6f in AGGR_OP::end_send (this=0x147574014818) at /test/10.8_opt/sql/sql_select.cc:29542
|
#20 0x000055a5ebd42cd0 in sub_select_postjoin_aggr (join=0x147574012740, join_tab=0x147574014010, end_of_records=<optimized out>) at /test/10.8_opt/sql/sql_select.cc:20786
|
#21 0x000055a5ebd4c0ef in do_select (procedure=<optimized out>, join=0x147574012740) at /test/10.8_opt/sql/sql_select.cc:20623
|
#22 JOIN::exec_inner (this=0x147574012740) at /test/10.8_opt/sql/sql_select.cc:4733
|
#23 0x000055a5ebd4c658 in JOIN::exec (this=this@entry=0x147574012740) at /test/10.8_opt/sql/sql_select.cc:4511
|
#24 0x000055a5ebd4a751 in mysql_select (thd=0x147574000c58, tables=0x147574011700, fields=@0x1475740113c8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1475740116b8, last = 0x147574012f58, elements = 2}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x147574012680, unit=0x147574004ea8, select_lex=0x147574011128) at /test/10.8_opt/sql/sql_select.cc:4991
|
#25 0x000055a5ebd4af07 in handle_select (thd=thd@entry=0x147574000c58, lex=lex@entry=0x147574004dd0, result=result@entry=0x147574012680, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.8_opt/sql/sql_select.cc:543
|
#26 0x000055a5ebcda939 in mysql_execute_command (thd=0x147574000c58, is_called_from_prepared_stmt=<optimized out>) at /test/10.8_opt/sql/sql_parse.cc:4708
|
#27 0x000055a5ebcc66f6 in mysql_parse (thd=0x147574000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/10.8_opt/sql/sql_parse.cc:8027
|
#28 0x000055a5ebcd28a5 in dispatch_command (command=COM_QUERY, thd=0x147574000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/10.8_opt/sql/sql_class.h:1362
|
#29 0x000055a5ebcd4a97 in do_command (thd=0x147574000c58, blocking=blocking@entry=true) at /test/10.8_opt/sql/sql_parse.cc:1402
|
#30 0x000055a5ebdf4247 in do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /test/10.8_opt/sql/sql_connect.cc:1418
|
#31 0x000055a5ebdf458d in handle_one_connection (arg=arg@entry=0x55a5ef64ad68) at /test/10.8_opt/sql/sql_connect.cc:1312
|
#32 0x000055a5ec1685b8 in pfs_spawn_thread (arg=0x55a5ef602758) at /test/10.8_opt/storage/perfschema/pfs.cc:2201
|
#33 0x00001475c8c90609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#34 0x00001475c887e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
10.8.1 0c5d1342ae6b5ab3256848be7a83e5c3b1f21566 (Debug) |
2022-02-05 10:18:29 0 [Note] /test/MD290122-mariadb-10.8.1-linux-x86_64-dbg/bin/mysqld: ready for connections.
|
Version: '10.8.1-MariaDB-debug-log' socket: '/test/MD290122-mariadb-10.8.1-linux-x86_64-dbg/socket.sock' port: 38578 MariaDB Server
|
2022-02-05 10:18:48 0x14cda01af700 InnoDB: Assertion failure in file /test/10.8_dbg/storage/innobase/row/row0ins.cc line 221
|
InnoDB: Failing assertion: !cursor->index->is_committed()
|
10.8.1 0c5d1342ae6b5ab3256848be7a83e5c3b1f21566 (Debug) |
Core was generated by `/test/MD290122-mariadb-10.8.1-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
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 0x14cda01af700 (LWP 1271102))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014cdb548e859 in __GI_abort () at abort.c:79
|
#2 0x000055e1ef45eeeb in ut_dbg_assertion_failed (expr=expr@entry=0x55e1efabf058 "!cursor->index->is_committed()", file=file@entry=0x55e1efabda68 "/test/10.8_dbg/storage/innobase/row/row0ins.cc", line=line@entry=221) at /test/10.8_dbg/storage/innobase/ut/ut0dbg.cc:60
|
#3 0x000055e1ef37af24 in row_ins_sec_index_entry_by_modify (mtr=0x14cda01ac410, thr=<optimized out>, entry=<optimized out>, heap=0x14cd340ab108, offsets_heap=<optimized out>, offsets=0x14cda01abdf8, cursor=0x14cda01abea0, mode=2, flags=0) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:221
|
#4 row_ins_sec_index_entry_low (flags=flags@entry=0, mode=mode@entry=2, index=index@entry=0x14cd34025758, offsets_heap=<optimized out>, offsets_heap@entry=0x14cd340aac68, heap=heap@entry=0x14cd340ab108, entry=entry@entry=0x14cd340245e0, trx_id=<optimized out>, thr=<optimized out>) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3117
|
#5 0x000055e1ef37b1d8 in row_ins_sec_index_entry (index=index@entry=0x14cd34025758, entry=entry@entry=0x14cd340245e0, thr=thr@entry=0x14cd3403d9d0, check_foreign=check_foreign@entry=true) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3331
|
#6 0x000055e1ef37cdd6 in row_ins_index_entry (thr=0x14cd3403d9d0, entry=0x14cd340245e0, index=0x14cd34025758) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3390
|
#7 row_ins_index_entry_step (thr=0x14cd3403d9d0, node=0x14cd3403d798) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3556
|
#8 row_ins (thr=0x14cd3403d9d0, node=0x14cd3403d798) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3702
|
#9 row_ins_step (thr=thr@entry=0x14cd3403d9d0) at /test/10.8_dbg/storage/innobase/row/row0ins.cc:3848
|
#10 0x000055e1ef3a1298 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x14cd3402b558 <incomplete sequence \375>, prebuilt=0x14cd3403d268, ins_mode=ROW_INS_NORMAL) at /test/10.8_dbg/storage/innobase/row/row0mysql.cc:1318
|
#11 0x000055e1ef21c959 in ha_innobase::write_row (this=0x14cd3402b9e0, record=0x14cd3402b558 <incomplete sequence \375>) at /test/10.8_dbg/storage/innobase/handler/ha_innodb.cc:7777
|
#12 0x000055e1eee6a865 in handler::ha_write_row (this=0x14cd3402b9e0, buf=0x14cd3402b558 <incomplete sequence \375>) at /test/10.8_dbg/sql/handler.cc:7519
|
#13 0x000055e1eeb01f34 in write_record (thd=0x14cd34000db8, table=0x14cd340202c8, info=info@entry=0x14cd34015c70, sink=0x0) at /test/10.8_dbg/sql/sql_insert.cc:2156
|
#14 0x000055e1eeb0238b in select_insert::send_data (this=0x14cd34015c20, values=<optimized out>) at /test/10.8_dbg/sql/sql_insert.cc:4112
|
#15 0x000055e1eebca18f in select_result_sink::send_data_with_check (sent=<optimized out>, u=<optimized out>, items=@0x14cd340160a8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14cd340878f8, last = 0x14cd34087a20, elements = 2}, <No data fields>}, this=<optimized out>) at /test/10.8_dbg/sql/sql_class.h:5612
|
#16 end_send (join=0x14cd34015ce0, join_tab=0x14cd34017960, end_of_records=<optimized out>) at /test/10.8_dbg/sql/sql_select.cc:22313
|
#17 0x000055e1eeb99c1b in evaluate_join_record (join=join@entry=0x14cd34015ce0, join_tab=0x14cd340175b0, error=error@entry=0) at /test/10.8_dbg/sql/sql_select.cc:21306
|
#18 0x000055e1eebdaab3 in AGGR_OP::end_send (this=this@entry=0x14cd34017eb8) at /test/10.8_dbg/sql/sql_select.cc:29542
|
#19 0x000055e1eebdadb2 in sub_select_postjoin_aggr (join=0x14cd34015ce0, join_tab=0x14cd340175b0, end_of_records=<optimized out>) at /test/10.8_dbg/sql/sql_select.cc:20786
|
#20 0x000055e1eebafbf7 in sub_select (join=0x14cd34015ce0, join_tab=0x14cd34017200, end_of_records=<optimized out>) at /test/10.8_dbg/sql/sql_select.cc:21020
|
#21 0x000055e1eebe7f58 in do_select (procedure=<optimized out>, join=0x14cd34015ce0) at /test/10.8_dbg/sql/sql_select.cc:20623
|
#22 JOIN::exec_inner (this=this@entry=0x14cd34015ce0) at /test/10.8_dbg/sql/sql_select.cc:4733
|
#23 0x000055e1eebe84ce in JOIN::exec (this=this@entry=0x14cd34015ce0) at /test/10.8_dbg/sql/sql_select.cc:4511
|
#24 0x000055e1eebe64df in mysql_select (thd=thd@entry=0x14cd34000db8, tables=0x14cd34014ca0, fields=@0x14cd34014968: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14cd34014c58, last = 0x14cd340164f8, elements = 2}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2202446596608, result=0x14cd34015c20, unit=0x14cd340051c8, select_lex=0x14cd340146c8) at /test/10.8_dbg/sql/sql_select.cc:4991
|
#25 0x000055e1eebe6794 in handle_select (thd=thd@entry=0x14cd34000db8, lex=lex@entry=0x14cd340050f0, result=result@entry=0x14cd34015c20, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.8_dbg/sql/sql_select.cc:543
|
#26 0x000055e1eeb54b66 in mysql_execute_command (thd=thd@entry=0x14cd34000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.8_dbg/sql/sql_parse.cc:4708
|
#27 0x000055e1eeb3edb7 in mysql_parse (thd=thd@entry=0x14cd34000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14cda01ae400) at /test/10.8_dbg/sql/sql_parse.cc:8027
|
#28 0x000055e1eeb4da53 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14cd34000db8, packet=packet@entry=0x14cd3400b9a9 "INSERT INTO t SELECT * FROM t", packet_length=packet_length@entry=29, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_class.h:1362
|
#29 0x000055e1eeb50e9a in do_command (thd=0x14cd34000db8, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_parse.cc:1402
|
#30 0x000055e1eeccc110 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55e1f120a3d8, put_in_cache=put_in_cache@entry=true) at /test/10.8_dbg/sql/sql_connect.cc:1418
|
#31 0x000055e1eeccc715 in handle_one_connection (arg=arg@entry=0x55e1f120a3d8) at /test/10.8_dbg/sql/sql_connect.cc:1312
|
#32 0x000055e1ef155c8e in pfs_spawn_thread (arg=0x55e1f111bbe8) at /test/10.8_dbg/storage/perfschema/pfs.cc:2201
|
#33 0x000014cdb599d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#34 0x000014cdb558b293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.7.2 (dbg), 10.7.2 (opt), 10.8.1 (dbg), 10.8.1 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.42 (dbg), 10.2.42 (opt), 10.3.33 (dbg), 10.3.33 (opt), 10.4.23 (dbg), 10.4.23 (opt), 10.5.14 (dbg), 10.5.14 (opt), 10.6.6 (dbg), 10.6.6 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.36 (dbg), 5.7.36 (opt), 8.0.27 (dbg), 8.0.27 (opt)
Attachments
Issue Links
- is duplicated by
-
MDEV-28237 Assertion `0' failed in row_upd_sec_index_entry on DELETE
- Closed
- relates to
-
MDEV-26947 UNIQUE column checks fail in InnoDB resulting in table corruption
- Closed
-
MDEV-23563 InnoDB: Failing assertion: !cursor->index->is_committed() in row0ins.cc
- Closed
-
MDEV-24621 In bulk insert, pre-sort and build indexes one page at a time
- Closed
-
MDEV-24622 Replication does not support bulk insert into empty table
- Closed
-
MDEV-27145 Failing assertion: !cursor->index->is_committed() in row0ins.cc
- Closed