Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6
Description
May be related to MDEV-22546, though the outcome (assert message vs hang) is different as are the versions affected.
SET SQL_MODE='';
|
SET @cmd="ALTER TABLE non.existing ENGINE=NDB";
|
PREPARE stmt FROM @cmd;
|
EXECUTE stmt;
|
EXECUTE stmt;
|
Leads to:
10.5.4 4080e3acefd7e58d88c2f3539fb6a0fb359cf057 |
mysqld: /test/10.5_dbg/sql/sql_alter.cc:393: virtual bool Sql_cmd_alter_table::execute(THD*): Assertion `(m_storage_engine_name.str != __null) == used_engine' failed.
|
10.5.4 4080e3acefd7e58d88c2f3539fb6a0fb359cf057 |
Core was generated by `/test/MD150620-mariadb-10.5.4-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x14edd0d0c700 (LWP 2682043))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055ae46d134c6 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x000055ae464b5d60 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x000014edd9470801 in __GI_abort () at abort.c:79
|
#6 0x000014edd946039a in __assert_fail_base (fmt=0x14edd95e77d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55ae46ead170 "(m_storage_engine_name.str != __null) == used_engine", file=file@entry=0x55ae46ec8250 "/test/10.5_dbg/sql/sql_alter.cc", line=line@entry=393, function=function@entry=0x55ae46ec8520 <Sql_cmd_alter_table::execute(THD*)::__PRETTY_FUNCTION__> "virtual bool Sql_cmd_alter_table::execute(THD*)") at assert.c:92
|
#7 0x000014edd9460412 in __GI___assert_fail (assertion=assertion@entry=0x55ae46ead170 "(m_storage_engine_name.str != __null) == used_engine", file=file@entry=0x55ae46ec8250 "/test/10.5_dbg/sql/sql_alter.cc", line=line@entry=393, function=function@entry=0x55ae46ec8520 <Sql_cmd_alter_table::execute(THD*)::__PRETTY_FUNCTION__> "virtual bool Sql_cmd_alter_table::execute(THD*)") at assert.c:101
|
#8 0x000055ae463665d9 in Sql_cmd_alter_table::execute (this=0x14edb7482410, thd=0x14edb7415088) at /test/10.5_dbg/sql/sql_alter.cc:393
|
#9 0x000055ae46210860 in mysql_execute_command (thd=0x14edb7415088) at /test/10.5_dbg/sql/sql_parse.cc:5951
|
#10 0x000055ae4623140f in Prepared_statement::execute (this=this@entry=0x14edb7452088, expanded_query=expanded_query@entry=0x14edd0d0aab0, open_cursor=open_cursor@entry=false) at /test/10.5_dbg/sql/sql_prepare.cc:4786
|
#11 0x000055ae4623175c in Prepared_statement::execute_loop (this=this@entry=0x14edb7452088, expanded_query=expanded_query@entry=0x14edd0d0aab0, open_cursor=open_cursor@entry=false, packet=packet@entry=0x0, packet_end=packet_end@entry=0x0) at /test/10.5_dbg/sql/sql_prepare.cc:4275
|
#12 0x000055ae46231d4b in mysql_sql_stmt_execute (thd=thd@entry=0x14edb7415088) at /test/10.5_dbg/sql/sql_prepare.cc:3387
|
#13 0x000055ae4620b372 in mysql_execute_command (thd=thd@entry=0x14edb7415088) at /test/10.5_dbg/sql/sql_parse.cc:3955
|
#14 0x000055ae4621815c in mysql_parse (thd=thd@entry=0x14edb7415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14edd0d0b350, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7993
|
#15 0x000055ae46204c60 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14edb7415088, packet=packet@entry=0x14edb7467089 "EXECUTE stmt", packet_length=packet_length@entry=12, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1874
|
#16 0x000055ae4620343a in do_command (thd=0x14edb7415088) at /test/10.5_dbg/sql/sql_parse.cc:1355
|
#17 0x000055ae4635ec47 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14edba97a808, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
|
#18 0x000055ae4635f363 in handle_one_connection (arg=arg@entry=0x14edba97a808) at /test/10.5_dbg/sql/sql_connect.cc:1313
|
#19 0x000055ae467c0902 in pfs_spawn_thread (arg=0x14edd8046c88) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x000014edda1536db in start_thread (arg=0x14edd0d0c700) at pthread_create.c:463
|
#21 0x000014edd955188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.1.46 (dbg), 10.2.33 (dbg), 10.3.24 (dbg), 10.4.14 (dbg), 10.5.4 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.46 (opt), 10.2.33 (opt), 10.3.24 (opt), 10.4.14 (opt), 10.5.4 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
Attachments
Issue Links
- relates to
-
MDEV-22546 Server hangs on 2nd execution of PS with query containing CTE and table of the same name
- Open