Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.6, 10.11, 11.4, 11.8
Description
--source include/have_innodb.inc
|
--source include/have_log_bin.inc
|
|
CREATE TEMPORARY TABLE t1 (a INT); |
CREATE TABLE t2 (a INT); |
DELETE FROM t2 LIMIT 0; |
SET SESSION sql_log_bin=0; |
CREATE TABLE t3 ENGINE=INNODB SELECT 1 ; |
another test case
--source include/have_innodb.inc
|
--source include/have_log_bin.inc
|
|
SET sql_log_bin=0; |
CREATE TEMPORARY TABLE t (a INT); |
--ERROR ER_TEXTFILE_NOT_READABLE
|
LOAD DATA INFILE '' INTO TABLE t SET a=a; |
CREATE TABLE t ENGINE=INNODB SELECT 1; |
|
Leads to:
CS 10.6.21 155203c3521babed20636df15a1547d94f732469 (Debug) |
mariadbd: /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:4718: int innobase_commit(handlerton*, THD*, bool): Assertion `commit_trx' failed.
|
CS 10.6.21 155203c3521babed20636df15a1547d94f732469 (Debug) |
Core was generated by `/test/MD131224-mariadb-10.6.21-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 0x15069a237700 (LWP 958049))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x00001506b2696859 in __GI_abort () at abort.c:79
|
#2 0x00001506b2696729 in __assert_fail_base (fmt=0x1506b282c588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55cc319945c2 "commit_trx", file=0x55cc31996d00 "/test/10.6_dbg/storage/innobase/handler/ha_innodb.cc", line=4718, function=<optimized out>) at assert.c:92
|
#3 0x00001506b26a7fd6 in __GI___assert_fail (assertion=assertion@entry=0x55cc319945c2 "commit_trx", file=file@entry=0x55cc31996d00 "/test/10.6_dbg/storage/innobase/handler/ha_innodb.cc", line=line@entry=4718, function=function@entry=0x55cc319996e8 "int innobase_commit(handlerton*, THD*, bool)") at assert.c:101
|
#4 0x000055cc3115bc50 in innobase_commit (hton=<optimized out>, thd=0x15066c000d48, commit_trx=<optimized out>) at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:4718
|
#5 0x000055cc30e2a65c in commit_one_phase_2 (thd=thd@entry=0x15066c000d48, all=all@entry=false, trans=trans@entry=0x15066c004738, is_real_trans=is_real_trans@entry=true) at /test/10.6_dbg/sql/handler.cc:2155
|
#6 0x000055cc30e2c566 in ha_commit_trans (thd=thd@entry=0x15066c000d48, all=all@entry=false) at /test/10.6_dbg/sql/handler.cc:1973
|
#7 0x000055cc30cc710b in trans_commit_stmt (thd=0x15066c000d48) at /test/10.6_dbg/sql/transaction.cc:497
|
#8 0x000055cc30b1d348 in select_create::send_eof (this=0x15066c0149b0) at /test/10.6_dbg/sql/sql_insert.cc:5167
|
#9 0x000055cc30bdab51 in JOIN::exec_inner (this=this@entry=0x15066c014af8) at /test/10.6_dbg/sql/sql_select.cc:4813
|
#10 0x000055cc30bdba0e in JOIN::exec (this=this@entry=0x15066c014af8) at /test/10.6_dbg/sql/sql_select.cc:4714
|
#11 0x000055cc30bd9a83 in mysql_select (thd=thd@entry=0x15066c000d48, tables=0x0, fields=@0x15066c013ce8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x15066c013f78, last = 0x15066c013f78, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2201170742016, result=0x15066c0149b0, unit=0x15066c004f38, select_lex=0x15066c013a28) at /test/10.6_dbg/sql/sql_select.cc:5193
|
#12 0x000055cc30bda1fd in handle_select (thd=thd@entry=0x15066c000d48, lex=lex@entry=0x15066c004e70, result=result@entry=0x15066c0149b0, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.6_dbg/sql/sql_select.cc:573
|
#13 0x000055cc30c31a6e in Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x15066c000d48) at /test/10.6_dbg/sql/sql_table.cc:12270
|
#14 0x000055cc30b68499 in mysql_execute_command (thd=thd@entry=0x15066c000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:6157
|
#15 0x000055cc30b4fdf2 in mysql_parse (thd=thd@entry=0x15066c000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15069a236320) at /test/10.6_dbg/sql/sql_parse.cc:8199
|
#16 0x000055cc30b5e29f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x15066c000d48, packet=packet@entry=0x15066c00ae89 "CREATE TABLE t SELECT 1", packet_length=packet_length@entry=23, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1419
|
#17 0x000055cc30b609ab in do_command (thd=thd@entry=0x15066c000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1422
|
#18 0x000055cc30cb1c0b in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55cc3369e598, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1386
|
#19 0x000055cc30cb20d9 in handle_one_connection (arg=0x55cc3369e598) at /test/10.6_dbg/sql/sql_connect.cc:1298
|
#20 0x00001506b2bc2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x00001506b2793133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.6.21 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.28 (dbg), 10.5.28 (opt), 10.6.21 (opt), 10.11.11 (dbg), 10.11.11 (opt), 11.4.5 (dbg), 11.4.5 (opt), 11.7.1 (dbg), 11.7.1 (opt), 11.8.0 (dbg), 11.8.0 (opt)
CS 11.4.6 ef966af801afc2a07222b5df65dddd52c77431dd (Debug) Build 13/02/2025
mariadbd: /test/11.4_dbg/storage/innobase/handler/ha_innodb.cc:4598: int innobase_commit(handlerton*, THD*, bool): Assertion `commit_trx || trx->is_wsrep()' failed.
CS 11.4.6 ef966af801afc2a07222b5df65dddd52c77431dd (Debug) Build 13/02/2025
Core was generated by `/test/MD130225-mariadb-11.4.6-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x14e1ce0b76c0 (LWP 3864801))]
(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 0x000014e1d524527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
#4 0x000014e1d52288ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x000014e1d522881b in __assert_fail_base (fmt=0x14e1d53d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55a1fb80f2b3 "commit_trx || trx->is_wsrep()", file=file@entry=0x55a1fb706cf0 "/test/11.4_dbg/storage/innobase/handler/ha_innodb.cc", line=line@entry=4598, function=function@entry=0x55a1fb70ccf8 "int innobase_commit(handlerton*, THD*, bool)") at ./assert/assert.c:96
#6 0x000014e1d523b517 in __assert_fail (assertion=0x55a1fb80f2b3 "commit_trx || trx->is_wsrep()", file=0x55a1fb706cf0 "/test/11.4_dbg/storage/innobase/handler/ha_innodb.cc", line=4598, function=0x55a1fb70ccf8 "int innobase_commit(handlerton*, THD*, bool)")at ./assert/assert.c:105
#7 0x000055a1fb14c8e4 in innobase_commit (hton=<optimized out>, thd=0x14e16c000d58, commit_trx=false)at /test/11.4_dbg/storage/innobase/handler/ha_innodb.cc:4598
#8 0x000055a1faedac59 in commit_one_phase_2 (thd=thd@entry=0x14e16c000d58, all=all@entry=false, trans=trans@entry=0x14e16c004860, is_real_trans=is_real_trans@entry=true)at /test/11.4_dbg/sql/handler.cc:2198
#9 0x000055a1faee71af in ha_commit_trans (thd=thd@entry=0x14e16c000d58, all=all@entry=false) at /test/11.4_dbg/sql/handler.cc:2016
#10 0x000055a1fad8ecf8 in trans_commit_stmt (thd=0x14e16c000d58)at /test/11.4_dbg/sql/transaction.cc:501
#11 0x000055a1fac13ad2 in select_create::send_eof (this=0x14e16c01b400)at /test/11.4_dbg/sql/sql_insert.cc:5266
#12 0x000055a1facbe591 in JOIN::exec_inner (this=this@entry=0x14e16c01b540)at /test/11.4_dbg/sql/sql_select.cc:4930
#13 0x000055a1facbea6c in JOIN::exec (this=this@entry=0x14e16c01b540)at /test/11.4_dbg/sql/sql_select.cc:4831
#14 0x000055a1facbd75c in mysql_select (thd=thd@entry=0x14e16c000d58, tables=0x0, fields=@0x14e16c01a718: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14e16c01a9b0, last = 0x14e16c01a9b0, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2201187519232, result=0x14e16c01b400, unit=0x14e16c005000, select_lex=0x14e16c01a460) at /test/11.4_dbg/sql/sql_select.cc:5361
#15 0x000055a1facbdad8 in handle_select (thd=thd@entry=0x14e16c000d58, lex=lex@entry=0x14e16c004f20, result=result@entry=0x14e16c01b400, setup_tables_done_option=setup_tables_done_option@entry=0)at /test/11.4_dbg/sql/sql_select.cc:642
#16 0x000055a1fad0c198 in Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x14e16c000d58)at /test/11.4_dbg/sql/sql_table.cc:13366
#17 0x000055a1fac4c3ce in mysql_execute_command (thd=thd@entry=0x14e16c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.4_dbg/sql/sql_parse.cc:5878
#18 0x000055a1fac4cf41 in mysql_parse (thd=thd@entry=0x14e16c000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14e1ce0b62f0)at /test/11.4_dbg/sql/sql_parse.cc:7907
#19 0x000055a1fac4e563 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14e16c000d58, packet=packet@entry=0x14e16c00b159 "CREATE TABLE t AS SELECT 0", packet_length=packet_length@entry=26, blocking=blocking@entry=true)at /test/11.4_dbg/sql/sql_parse.cc:1904
#20 0x000055a1fac4fa37 in do_command (thd=thd@entry=0x14e16c000d58, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_parse.cc:1417
#21 0x000055a1fad7d487 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55a215525b38, put_in_cache=put_in_cache@entry=true)at /test/11.4_dbg/sql/sql_connect.cc:1408
#22 0x000055a1fad7d6ac in handle_one_connection (arg=0x55a215525b38)at /test/11.4_dbg/sql/sql_connect.cc:1320
#23 0x000014e1d529caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
#24 0x000014e1d5329c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78