Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.1(EOL), 11.2, 11.4, 11.6, 11.7
Description
CREATE TABLE t (c INT) ENGINE=InnoDB; |
BEGIN; |
SET sql_mode='',foreign_key_checks=0,unique_checks=0; |
INSERT INTO t VALUES (1); |
SET unique_checks=1; |
CREATE TEMPORARY SEQUENCE f; |
Leads to:
CS 11.2.6 e91a79945822def1452787f825e6047c6a64dbd9 (Debug) |
mariadbd: /test/11.2_dbg/storage/innobase/include/trx0trx.h:1176: trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*): Assertion `table->skip_alter_undo || !check_unique_secondary' failed.
|
CS 11.2.6 e91a79945822def1452787f825e6047c6a64dbd9 (Debug) |
Core was generated by `/test/MD090924-mariadb-11.2.6-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
 |
[Current thread is 1 (LWP 1611600)]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#3 0x000014a18d04526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x000014a18d0288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000014a18d02881b in __assert_fail_base (fmt=0x14a18d1d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55990c020b50 "table->skip_alter_undo || !check_unique_secondary", file=file@entry=0x55990bfd2b98 "/test/11.2_dbg/storage/innobase/include/trx0trx.h", line=line@entry=1176, function=function@entry=0x55990c020b88 "trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*)") at ./assert/assert.c:94
|
#6 0x000014a18d03b507 in __assert_fail (assertion=0x55990c020b50 "table->skip_alter_undo || !check_unique_secondary", file=0x55990bfd2b98 "/test/11.2_dbg/storage/innobase/include/trx0trx.h", line=1176, function=0x55990c020b88 "trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*)") at ./assert/assert.c:103
|
#7 0x000055990b9ef374 in trx_t::check_bulk_buffer (this=this@entry=0x14a173a00c00, table=0x14a12c120158)at /test/11.2_dbg/storage/innobase/include/trx0trx.h:1176
|
#8 0x000055990b9ede39 in row_ins_index_entry (thr=0x14a12c123390, entry=0x14a12c020278, index=0x14a12c120db8)at /test/11.2_dbg/storage/innobase/row/row0ins.cc:3388
|
#9 row_ins_index_entry_step (thr=0x14a12c123390, node=0x14a12c123058)at /test/11.2_dbg/storage/innobase/row/row0ins.cc:3568
|
#10 row_ins (thr=0x14a12c123390, node=0x14a12c123058)at /test/11.2_dbg/storage/innobase/row/row0ins.cc:3685
|
#11 row_ins_step (thr=thr@entry=0x14a12c123390)at /test/11.2_dbg/storage/innobase/row/row0ins.cc:3814
|
#12 0x000055990ba14cd5 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x14a12c11f608 "\377\001", prebuilt=0x14a12c122a78, ins_mode=ins_mode@entry=ROW_INS_NORMAL)at /test/11.2_dbg/storage/innobase/row/row0mysql.cc:1315
|
#13 0x000055990b86c8f9 in ha_innobase::write_row (this=0x14a12c121580, record=0x14a12c11f608 "\377\001")at /test/11.2_dbg/storage/innobase/handler/ha_innodb.cc:7820
|
#14 0x000055990b7fd84d in ha_sequence::write_row (this=0x14a12c11fa20, buf=0x14a12c11f608 "\377\001") at /test/11.2_dbg/sql/ha_sequence.cc:223
|
#15 0x000055990b501ba1 in handler::ha_write_row (this=0x14a12c11fa20, buf=0x14a12c11f608 "\377\001") at /test/11.2_dbg/sql/handler.cc:7952
|
#16 0x000055990b446b49 in sequence_definition::write_initial_sequence (this=this@entry=0x14a12c013e60, table=0x14a12c11f1b8)at /test/11.2_dbg/sql/sql_sequence.cc:624
|
#17 0x000055990b446d52 in sequence_insert (thd=thd@entry=0x14a12c000d58, lex=0x14a12c0051c8, org_table_list=org_table_list@entry=0x14a12c013750)at /test/11.2_dbg/sql/sql_sequence.cc:374
|
#18 0x000055990b2d52aa in mysql_create_table_no_lock (thd=thd@entry=0x14a12c000d58, ddl_log_state_create=ddl_log_state_create@entry=0x14a18cc4afe0, ddl_log_state_rm=ddl_log_state_rm@entry=0x14a18cc4b1f0, create_info=create_info@entry=0x14a18cc4b360, alter_info=alter_info@entry=0x14a18cc4b080, is_trans=is_trans@entry=0x14a18cc4afa0, create_table_mode=0, table_list=0x14a12c013750) at /test/11.2_dbg/sql/sql_table.cc:4781
|
#19 0x000055990b2d73a6 in mysql_create_table (alter_info=0x14a18cc4b080, create_info=0x14a18cc4b360, create_table=0x14a12c013750, thd=0x14a12c000d58) at /test/11.2_dbg/sql/sql_table.cc:4993
|
#20 Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x14a12c000d58) at /test/11.2_dbg/sql/sql_table.cc:13205
|
#21 0x000055990b1e7427 in mysql_execute_command (thd=thd@entry=0x14a12c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.2_dbg/sql/sql_parse.cc:5883
|
#22 0x000055990b1e8d26 in mysql_parse (thd=thd@entry=0x14a12c000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14a18cc4d2a0)at /test/11.2_dbg/sql/sql_parse.cc:7929
|
#23 0x000055990b1eb1bd in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a12c000d58, packet=packet@entry=0x14a12c00b309 "CREATE TEMPORARY SEQUENCE f", packet_length=packet_length@entry=27, blocking=blocking@entry=true)at /test/11.2_dbg/sql/sql_class.h:248
|
#24 0x000055990b1ed3e3 in do_command (thd=0x14a12c000d58, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_parse.cc:1407
|
#25 0x000055990b35935c in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55990ecf0e08, put_in_cache=put_in_cache@entry=true)at /test/11.2_dbg/sql/sql_connect.cc:1439
|
#26 0x000055990b35965c in handle_one_connection (arg=arg@entry=0x55990ecf0e08)at /test/11.2_dbg/sql/sql_connect.cc:1341
|
#27 0x000055990b7a062c in pfs_spawn_thread (arg=0x55990ecbff58)at /test/11.2_dbg/storage/perfschema/pfs.cc:2201
|
#28 0x000014a18d09ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#29 0x000014a18d129c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
However, it only does so in the CLI, it does not seem to be MTR replayable in any [modified] way.
Bug confirmed present in:
MariaDB: 10.11.10 (dbg), 11.1.7 (dbg), 11.2.6 (dbg), 11.4.4 (dbg), 11.6.2 (dbg), 11.7.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.27 (dbg), 10.5.27 (opt), 10.6.20 (dbg), 10.6.20 (opt), 10.11.10 (opt), 11.1.7 (opt), 11.2.6 (opt), 11.4.4 (opt), 11.6.2 (opt), 11.7.0 (opt)
Attachments
Issue Links
- split from
-
MDEV-31298 Assertion `!check_foreigns' failed in trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*), Assertion `table->skip_alter_undo || !check_unique_secondary' failed in trx_t::check_bulk_buffer
- Confirmed