Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.11
Description
CREATE TABLE t (a INT,c INT,filler CHAR,KEY(a,c)) ENGINE=INNODB; |
XA START '1'; |
SET SESSION foreign_key_checks=OFF; |
SET SESSION unique_checks=OFF; |
INSERT INTO t VALUES(); |
SET foreign_key_checks=1; |
SELECT * FROM t; |
Leads to
10.11.8 863f5996f25eadea6349f0133ad56f3f40e6d6af (Debug) |
mariadbd: /test/10.11_dbg/storage/innobase/row/row0merge.cc:5377: dberr_t trx_t::bulk_insert_apply_for_table(dict_table_t*): Assertion `!check_foreigns' failed.
|
10.11.8 863f5996f25eadea6349f0133ad56f3f40e6d6af (Debug) |
Core was generated by `/test/MD160424-mariadb-10.11.8-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 0x145c84108700 (LWP 2193223))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000145c9aa4f859 in __GI_abort () at abort.c:79
|
#2 0x0000145c9aa4f729 in __assert_fail_base (fmt=0x145c9abe5588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c17c9a4d29 "!check_foreigns", file=0x55c17c9a7078 "/test/10.11_dbg/storage/innobase/row/row0merge.cc", line=5377, function=<optimized out>) at assert.c:92
|
#3 0x0000145c9aa60fd6 in __GI___assert_fail (assertion=assertion@entry=0x55c17c9a4d29 "!check_foreigns", file=file@entry=0x55c17c9a7078 "/test/10.11_dbg/storage/innobase/row/row0merge.cc", line=line@entry=5377, function=function@entry=0x55c17c9a84d0 "dberr_t trx_t::bulk_insert_apply_for_table(dict_table_t*)") at assert.c:101
|
#4 0x000055c17c21e1c9 in trx_t::bulk_insert_apply_for_table (this=this@entry=0x145c980a8b80, table=0x145c5401e818) at /test/10.11_dbg/storage/innobase/row/row0merge.cc:5377
|
#5 0x000055c17c098b2f in ha_innobase::external_lock (this=0x145c540317c0, thd=0x145c54000d48, lock_type=0) at /test/10.11_dbg/storage/innobase/handler/ha_innodb.cc:16021
|
#6 0x000055c17bd283b7 in handler::ha_external_lock (this=0x145c540317c0, thd=thd@entry=0x145c54000d48, lock_type=lock_type@entry=0) at /test/10.11_dbg/sql/handler.cc:7170
|
#7 0x000055c17be96f80 in lock_external (count=1, tables=0x145c54014b30, thd=0x145c54000d48) at /test/10.11_dbg/sql/lock.cc:396
|
#8 mysql_lock_tables (thd=thd@entry=0x145c54000d48, sql_lock=sql_lock@entry=0x145c54014b10, flags=flags@entry=0) at /test/10.11_dbg/sql/lock.cc:341
|
#9 0x000055c17be97e35 in mysql_lock_tables (thd=thd@entry=0x145c54000d48, tables=tables@entry=0x145c54014b08, count=count@entry=1, flags=flags@entry=0) at /test/10.11_dbg/sql/lock.cc:304
|
#10 0x000055c17b9959fc in lock_tables (thd=thd@entry=0x145c54000d48, tables=0x145c54013b10, count=<optimized out>, flags=flags@entry=0) at /test/10.11_dbg/sql/sql_base.cc:5857
|
#11 0x000055c17b99788f in open_and_lock_tables (thd=thd@entry=0x145c54000d48, options=<optimized out>, tables=<optimized out>, tables@entry=0x145c54013b10, derived=derived@entry=true, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x145c84106830) at /test/10.11_dbg/sql/sql_base.cc:5616
|
#12 0x000055c17ba131d8 in open_and_lock_tables (flags=0, derived=true, tables=0x145c54013b10, thd=0x145c54000d48) at /test/10.11_dbg/sql/sql_base.h:514
|
#13 execute_sqlcom_select (thd=thd@entry=0x145c54000d48, all_tables=0x145c54013b10) at /test/10.11_dbg/sql/sql_parse.cc:6298
|
#14 0x000055c17ba20225 in mysql_execute_command (thd=thd@entry=0x145c54000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.11_dbg/sql/sql_parse.cc:3980
|
#15 0x000055c17ba0d7fe in mysql_parse (thd=thd@entry=0x145c54000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x145c841072b0) at /test/10.11_dbg/sql/sql_parse.cc:8119
|
#16 0x000055c17ba1b487 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x145c54000d48, packet=packet@entry=0x145c5400b139 "SELECT * FROM t", packet_length=packet_length@entry=15, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_class.h:1398
|
#17 0x000055c17ba1dd86 in do_command (thd=0x145c54000d48, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_parse.cc:1407
|
#18 0x000055c17bb8f0d9 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55c17f389fb8, put_in_cache=put_in_cache@entry=true) at /test/10.11_dbg/sql/sql_connect.cc:1415
|
#19 0x000055c17bb8f68e in handle_one_connection (arg=arg@entry=0x55c17f389fb8) at /test/10.11_dbg/sql/sql_connect.cc:1317
|
#20 0x000055c17bfe37b4 in pfs_spawn_thread (arg=0x55c17f2e4538) at /test/10.11_dbg/storage/perfschema/pfs.cc:2201
|
#21 0x0000145c9af60609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#22 0x0000145c9ab4c133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.11.8 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.34 (dbg), 10.4.34 (opt), 10.5.25 (dbg), 10.5.25 (opt), 10.6.18 (dbg), 10.6.18 (opt), 10.11.8 (opt), 11.0.6 (dbg), 11.0.6 (opt), 11.1.5 (dbg), 11.1.5 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.3.3 (dbg), 11.3.3 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.0 (dbg), 11.5.0 (opt)
Attachments
Issue Links
- duplicates
-
MDEV-33243 Assertion `!check_foreigns' failed in dberr_t trx_t::bulk_insert_apply_low()
- Closed
- is caused by
-
MDEV-32453 Bulk insert fails to apply when trigger does insert operation
- Closed