Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4
Description
--source include/have_innodb.inc
|
SET foreign_key_checks=0,unique_checks=0; |
CREATE TABLE t1 (c1 CHAR,INDEX (c1)) ENGINE=INNODB; |
XA START 'a'; |
INSERT INTO t1 VALUES(); |
SET foreign_key_checks=1; |
CREATE TEMPORARY SEQUENCE f; |
Leads to:
11.0.2 368dd22a816f3b437bccd0b9ff28b9de9b1abf0a (Debug) |
mariadbd: /test/mtest/11.0_dbg/storage/innobase/include/trx0trx.h:1162: trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*): Assertion `!check_foreigns' failed.
|
11.0.2 368dd22a816f3b437bccd0b9ff28b9de9b1abf0a (Debug) |
Core was generated by `/test/mtest/GAL_MD170523-mariadb-11.0.2-linux-x86_64-dbg/bin/mariadbd --no-defa'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x145cfca26700 (LWP 415274))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055c91dbb0747 in my_write_core (sig=sig@entry=6) at /test/mtest/11.0_dbg/mysys/stacktrace.c:424
|
#2 0x000055c91d49e460 in handle_fatal_signal (sig=6) at /test/mtest/11.0_dbg/sql/signal_handler.cc:360
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x0000145d157a8859 in __GI_abort () at abort.c:79
|
#6 0x0000145d157a8729 in __assert_fail_base (fmt=0x145d1593e588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c91dfb7d34 "!check_foreigns", file=0x55c91df83be0 "/test/mtest/11.0_dbg/storage/innobase/include/trx0trx.h", line=1162, function=<optimized out>) at assert.c:92
|
#7 0x0000145d157b9fd6 in __GI___assert_fail (assertion=assertion@entry=0x55c91dfb7d34 "!check_foreigns", file=file@entry=0x55c91df83be0 "/test/mtest/11.0_dbg/storage/innobase/include/trx0trx.h", line=line@entry=1162, function=function@entry=0x55c91dfb9870 "trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*)") at assert.c:101
|
#8 0x000055c91d8ed039 in trx_t::check_bulk_buffer (table=<optimized out>, this=0x145d15054b80) at /test/mtest/11.0_dbg/storage/innobase/include/trx0trx.h:1162
|
#9 row_ins_index_entry (thr=0x145cc0077178, entry=0x145cc0021a30, index=0x145cc0074c10) at /test/mtest/11.0_dbg/storage/innobase/row/row0ins.cc:3366
|
#10 row_ins_index_entry_step (thr=0x145cc0077178, node=<optimized out>) at /test/mtest/11.0_dbg/storage/innobase/row/row0ins.cc:3543
|
#11 row_ins (thr=0x145cc0077178, node=<optimized out>) at /test/mtest/11.0_dbg/storage/innobase/row/row0ins.cc:3660
|
#12 row_ins_step (thr=thr@entry=0x145cc0077178) at /test/mtest/11.0_dbg/storage/innobase/row/row0ins.cc:3789
|
#13 0x000055c91d90f2c7 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x145cc00734d8 "\377\001", prebuilt=0x145cc0076890, ins_mode=ROW_INS_NORMAL) at /test/mtest/11.0_dbg/storage/innobase/row/row0mysql.cc:1307
|
#14 0x000055c91d7b29e3 in ha_innobase::write_row (this=0x145cc00753f0, record=0x145cc00734d8 "\377\001") at /test/mtest/11.0_dbg/storage/innobase/handler/ha_innodb.cc:7810
|
#15 0x000055c91d7509fd in ha_sequence::write_row (this=0x145cc00738f0, buf=0x145cc00734d8 "\377\001") at /test/mtest/11.0_dbg/sql/ha_sequence.cc:223
|
#16 0x000055c91d4af681 in handler::ha_write_row (this=0x145cc00738f0, buf=0x145cc00734d8 "\377\001") at /test/mtest/11.0_dbg/sql/handler.cc:7798
|
#17 0x000055c91d3eda51 in sequence_definition::write_initial_sequence (this=this@entry=0x145cc0013988, table=0x145cc00730d8) at /test/mtest/11.0_dbg/sql/sql_sequence.cc:625
|
#18 0x000055c91d3edc38 in sequence_insert (thd=thd@entry=0x145cc0000d48, lex=0x145cc0004eb8, org_table_list=org_table_list@entry=0x145cc0013268) at /test/mtest/11.0_dbg/sql/sql_sequence.cc:375
|
#19 0x000055c91d295d74 in mysql_create_table_no_lock (thd=thd@entry=0x145cc0000d48, ddl_log_state_create=ddl_log_state_create@entry=0x145cfca23170, ddl_log_state_rm=ddl_log_state_rm@entry=0x145cfca23300, db=db@entry=0x145cc0013280, table_name=table_name@entry=0x145cc0013290, create_info=create_info@entry=0x145cfca233f0, alter_info=0x145cfca23210, is_trans=0x145cfca23150, create_table_mode=0, table_list=0x145cc0013268) at /test/mtest/11.0_dbg/sql/sql_table.cc:4786
|
#20 0x000055c91d297c21 in mysql_create_table (alter_info=0x145cfca23210, create_info=0x145cfca233f0, create_table=0x145cc0013268, thd=0x145cc0000d48) at /test/mtest/11.0_dbg/sql/sql_table.cc:4888
|
#21 Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x145cc0000d48) at /test/mtest/11.0_dbg/sql/sql_table.cc:12492
|
#22 0x000055c91d1b748c in mysql_execute_command (thd=thd@entry=0x145cc0000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/mtest/11.0_dbg/sql/sql_parse.cc:6015
|
#23 0x000055c91d19f732 in mysql_parse (thd=thd@entry=0x145cc0000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x145cfca25300) at /test/mtest/11.0_dbg/sql/sql_parse.cc:8014
|
#24 0x000055c91d1ad0b5 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x145cc0000d48, packet=packet@entry=0x145cc000ae39 "CREATE TEMPORARY SEQUENCE f", packet_length=packet_length@entry=27, blocking=blocking@entry=true) at /test/mtest/11.0_dbg/sql/sql_class.h:1370
|
#25 0x000055c91d1af518 in do_command (thd=0x145cc0000d48, blocking=blocking@entry=true) at /test/mtest/11.0_dbg/sql/sql_parse.cc:1407
|
#26 0x000055c91d31829e in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55c92143e128, put_in_cache=put_in_cache@entry=true) at /test/mtest/11.0_dbg/sql/sql_connect.cc:1416
|
#27 0x000055c91d318770 in handle_one_connection (arg=0x55c92143e128) at /test/mtest/11.0_dbg/sql/sql_connect.cc:1318
|
#28 0x0000145d15cb9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#29 0x0000145d158a5133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.8.8 (dbg), 10.9.7 (dbg), 10.10.5 (dbg), 10.11.4 (dbg), 11.0.2 (dbg), 11.1.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.30 (dbg), 10.4.30 (opt), 10.5.21 (dbg), 10.5.21 (opt), 10.6.14 (dbg), 10.6.14 (opt), 10.8.8 (opt), 10.9.7 (opt), 10.10.5 (opt), 10.11.4 (opt), 11.0.2 (opt), 11.1.0 (opt)
Attachments
Issue Links
- relates to
-
MDEV-24621 In bulk insert, pre-sort and build indexes one page at a time
- Closed
- split to
-
MDEV-34934 Assertion `table->skip_alter_undo || !check_unique_secondary' failed in trx_t::check_bulk_buffer on CREATE TEMPORARY SEQUENCE
- Open