Details
-
Bug
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.3(EOL), 10.4(EOL), 10.5
Description
--source include/have_innodb.inc
|
|
CREATE SEQUENCE s ENGINE=InnoDB; |
FLUSH TABLES WITH READ LOCK; |
SET SESSION MAX_SESSION_MEM_USED= @@MAX_SESSION_MEM_USED + 1024; |
SHOW CREATE SEQUENCE s; |
|
# Cleanup
|
UNLOCK TABLES;
|
DROP SEQUENCE s; |
10.3 debug f3f23b5c |
mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. |
|
#7 0x00007efd0cbccf12 in __GI___assert_fail (assertion=0x557a0ba07010 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x557a0ba06dd8 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x557a0ba08b90 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 |
#8 0x0000557a0ad1c19a in close_thread_tables (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_base.cc:743 |
#9 0x0000557a0ae54710 in mysqld_show_create (thd=0x7efcbc000af0, table_list=0x7efcbc0128f0) at /data/src/10.3/sql/sql_show.cc:1450 |
#10 0x0000557a0adb7756 in mysql_execute_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:4245 |
#11 0x0000557a0adc3ea3 in mysql_parse (thd=0x7efcbc000af0, rawbuf=0x7efcbc012818 "SHOW CREATE SEQUENCE s", length=22, parser_state=0x7efd01f485e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7810 |
#12 0x0000557a0adb06ea in dispatch_command (command=COM_QUERY, thd=0x7efcbc000af0, packet=0x7efcbc165811 "SHOW CREATE SEQUENCE s", packet_length=22, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1848 |
#13 0x0000557a0adaf002 in do_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:1393 |
#14 0x0000557a0af284d7 in do_handle_one_connection (connect=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1403 |
#15 0x0000557a0af28239 in handle_one_connection (arg=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1308 |
#16 0x0000557a0b8df0e8 in pfs_spawn_thread (arg=0x557a0dac1260) at /data/src/10.3/storage/perfschema/pfs.cc:1869 |
#17 0x00007efd0eb554a4 in start_thread (arg=0x7efd01f49700) at pthread_create.c:456 |
#18 0x00007efd0cc89d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 |
|
Trying to get some variables. |
Some pointers may be invalid and cause the dump to abort. |
Query (0x7efcbc012818): SHOW CREATE SEQUENCE s |
Connection ID (thread ID): 9 |
Status: KILL_QUERY
|
10.3 non-debug f3f23b5c |
MariaDB [test]> SHOW CREATE SEQUENCE s; |
ERROR 1290 (HY000): The MariaDB server is running with the --max-thread-mem-used=9223372036854776831 option so it cannot execute this statement |
I'm not sure whether the non-debug error above is expected.
Here is an alternative test case, which doesn't involve tampering with system variables – it's non-deterministic, run with --repeat=N.
--source include/have_innodb.inc
|
|
CREATE SEQUENCE s ENGINE=InnoDB; |
RENAME TABLE s TO s1; |
|
--connect (con1,localhost,root,,test)
|
--let $conid= `SELECT CONNECTION_ID()`
|
--send
|
SHOW CREATE SEQUENCE s1; |
|
--connection default
|
--eval KILL $conid
|
|
# Cleanup
|
--connection default
|
DROP SEQUENCE s1; |
10.3 f1309fac |
mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed.
|
190912 17:08:34 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101
|
#8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743
|
#9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449
|
#10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250
|
#11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830
|
#12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856
|
#13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401
|
#14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403
|
#15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308
|
#16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456
|
#18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
Reproducible on 10.3-10.5.
Couldn't reproduce with MyISAM.
Attachments
Issue Links
- relates to
-
MDEV-20750 Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' fails in open_normal_and_derived_tables upon killing connection running SETVAL
-
- Open
-
-
MDEV-23145 Server crashes in handler::update_global_table_stats or Assertion `inited == NONE || table->open_by_handler' in handler::ha_external_lock
-
- Confirmed
-
Activity
Field | Original Value | New Value |
---|---|---|
Comment |
[ Another one, also on KILL:
https://travis-ci.org/elenst/travis-tests/jobs/533353732 [3415 21 1] {noformat:title=10.4 b861757} mysqld: /home/travis/src/sql/sql_base.cc:5242: bool open_normal_and_derived_tables(THD*, TABLE_LIST*, uint, uint): Assertion `thd->transaction.stmt.is_empty() || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f361613402a] /lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7f361612abd7] /lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7f361612ac82] /home/travis/server/bin/mysqld(_Z30open_normal_and_derived_tablesP3THDP10TABLE_LISTjj+0x320)[0x558495211fd5] /home/travis/server/bin/mysqld(_Z17mysql_table_grantP3THDP10TABLE_LISTR4ListI8LEX_USERERS3_I10LEX_COLUMNEmb+0x2d0)[0x5584951b9848] /home/travis/server/bin/mysqld(_Z21mysql_execute_commandP3THD+0xf897)[0x558495375ab7] /home/travis/server/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x693)[0x558495385424] sql/sql_base.cc:5243(open_normal_and_derived_tables(THD*, TABLE_LIST*, unsigned int, unsigned int))[0x55849535e0e5] sql/sql_acl.cc:6769(mysql_table_grant(THD*, TABLE_LIST*, List<LEX_USER>&, List<LEX_COLUMN>&, unsigned long, bool))[0x55849535b024] sql/sql_parse.cc:5583(mysql_execute_command(THD*))[0x5584956cf1c5] sql/sql_parse.cc:8150(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5584956ceb8f] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f3616f736ba] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f361620441d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x62b00008c288): GRANT SELECT ( `col_time_nokey`, `col_int_nokey` ), SELECT ( `pk` ), UPDATE ( `col_time_nokey` ) ON `AA` TO 'someuser'@'somehost' /* QNO 1698 CON_ID 14 */ Connection ID (thread ID): 14 Status: KILL_SERVER Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on {noformat} ] |
Attachment | threads [ 46029 ] |
Attachment | threads_full [ 46028 ] |
Summary | [Draft] Assertion `thd->transaction.stmt.is_empty() || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed upon KILL_CONNECTION in PS protocol | Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' upon killing connection running SHOW on sequence |
Component/s | Admin statements [ 11400 ] | |
Component/s | Sequences [ 14009 ] | |
Component/s | Server [ 13907 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Assignee | Elena Stepanova [ elenst ] | Sergey Vojtovich [ svoj ] |
Description |
https://travis-ci.org/elenst/travis-tests/jobs/413826149
{noformat:title=10.3 340c8a2a32dcbe0bb9bc88bd0a6bda5d5e76ed02} mysqld: /home/travis/src/sql/sql_base.cc:5025: bool open_normal_and_derived_tables(THD*, TABLE_LIST*, uint, uint): Assertion `thd->transaction.stmt.is_empty() || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 180809 14:02:07 [ERROR] mysqld got signal 6 ; Query (0x7fab3c374610): CREATE OR REPLACE ALGORITHM=MERGE VIEW transforms.view_23814_merge AS SELECT CACHE_SIZE, CYCLE_COUNT, START_VALUE, NEXT_NOT_CACHED_VALUE, MINIMUM_VALUE FROM seq9 /* QNO 293 CON_ID 14 */ /* QNO 318 CON_ID 14 */ Connection ID (thread ID): 14 Status: KILL_CONNECTION Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on {noformat} {noformat} #7 0x00007fabaac1dca2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x000056098f522f80 in open_normal_and_derived_tables (thd=0x7fab3c000d90, tables=0x7fab3c375530, flags=512, dt_phases=2) at /home/travis/src/sql/sql_base.cc:5024 #9 0x000056098f5d1fca in mysql_test_create_view (stmt=0x7fab3c222f50) at /home/travis/src/sql/sql_prepare.cc:2027 #10 0x000056098f5d2b16 in check_prepared_statement (stmt=0x7fab3c222f50) at /home/travis/src/sql/sql_prepare.cc:2413 #11 0x000056098f5d66dd in Prepared_statement::prepare (this=0x7fab3c222f50, packet=0x7fab3c00b2e1 "CREATE OR REPLACE ALGORITHM=MERGE VIEW transforms.view_23814_merge AS SELECT CACHE_SIZE, CYCLE_COUNT, START_VALUE, NEXT_NOT_CACHED_VALUE, MINIMUM_VALUE FROM seq9 /* QNO 293 CON_ID 14 */ /* QNO 318 CO"..., packet_len=211) at /home/travis/src/sql/sql_prepare.cc:3984 #12 0x000056098f5d310e in mysqld_stmt_prepare (thd=0x7fab3c000d90, packet=0x7fab3c00b2e1 "CREATE OR REPLACE ALGORITHM=MERGE VIEW transforms.view_23814_merge AS SELECT CACHE_SIZE, CYCLE_COUNT, START_VALUE, NEXT_NOT_CACHED_VALUE, MINIMUM_VALUE FROM seq9 /* QNO 293 CON_ID 14 */ /* QNO 318 CO"..., packet_length=211) at /home/travis/src/sql/sql_prepare.cc:2618 #13 0x000056098f5a7cfa in dispatch_command (command=COM_STMT_PREPARE, thd=0x7fab3c000d90, packet=0x7fab3c00b2e1 "CREATE OR REPLACE ALGORITHM=MERGE VIEW transforms.view_23814_merge AS SELECT CACHE_SIZE, CYCLE_COUNT, START_VALUE, NEXT_NOT_CACHED_VALUE, MINIMUM_VALUE FROM seq9 /* QNO 293 CON_ID 14 */ /* QNO 318 CO"..., packet_length=211, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1807 #14 0x000056098f5a6a6c in do_command (thd=0x7fab3c000d90) at /home/travis/src/sql/sql_parse.cc:1395 #15 0x000056098f70e15b in do_handle_one_connection (connect=0x5609935ef0c0) at /home/travis/src/sql/sql_connect.cc:1402 #16 0x000056098f70dedf in handle_one_connection (arg=0x5609935ef0c0) at /home/travis/src/sql/sql_connect.cc:1308 #17 0x00007fabab7df184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #18 0x00007fabaacebffd in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} {noformat:title=dev 2757a4ca0d5b94d5966761fd342386ebaa7d5903} perl /home/travis/rqg/runall-new.pl --vardir=/home/travis/logs/vardir --basedir=/home/travis/server --duration=350 --threads=6 --seed=1533823315 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/sequences.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --mysqld=--innodb-sync-debug --grammar=conf/runtime/WL5004_sql.yy --gendata=conf/runtime/WL5004_data.zz --ps-protocol --transformers=ExecuteAsCTE,ExecuteAsDeleteReturning,ExecuteAsExcept,ExecuteAsInsertSelect,ExecuteAsIntersect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsSPTwice {noformat} All threads are attached. Datadir, coredump, log files etc. are available. Not reproducible right away. |
_Note: The test case is non-deterministic, run with {{--repeat=N}}. It usually fails for me withing 2 attempts, but it can vary on different machines and builds._
{code:sql} --source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; RENAME TABLE s TO s1; --connect (con1,localhost,root,,test) --let $conid= `SELECT CONNECTION_ID()` --send SHOW CREATE SEQUENCE s1; --connection default --eval KILL $conid # Cleanup --connection default DROP SEQUENCE s1; {code} {noformat:title=10.3 f1309fac} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 190912 17:08:34 [ERROR] mysqld got signal 6 ; #7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743 #9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449 #10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250 #11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830 #12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856 #13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401 #14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862 #17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456 #18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 {noformat} Reproducible on 10.3-10.5. Couldn't reproduce with MyISAM. No obvious problem on a non-debug build. |
Summary | Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' upon killing connection running SHOW on sequence | Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' fails in close_thread_tables upon killing connection running SHOW on sequence |
Link | This issue relates to MDEV-20750 [ MDEV-20750 ] |
Affects Version/s | 10.5 [ 23123 ] |
Fix Version/s | 10.5 [ 23123 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Description |
_Note: The test case is non-deterministic, run with {{--repeat=N}}. It usually fails for me withing 2 attempts, but it can vary on different machines and builds._
{code:sql} --source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; RENAME TABLE s TO s1; --connect (con1,localhost,root,,test) --let $conid= `SELECT CONNECTION_ID()` --send SHOW CREATE SEQUENCE s1; --connection default --eval KILL $conid # Cleanup --connection default DROP SEQUENCE s1; {code} {noformat:title=10.3 f1309fac} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 190912 17:08:34 [ERROR] mysqld got signal 6 ; #7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743 #9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449 #10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250 #11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830 #12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856 #13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401 #14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862 #17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456 #18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 {noformat} Reproducible on 10.3-10.5. Couldn't reproduce with MyISAM. No obvious problem on a non-debug build. |
{code:sql}
--source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; FLUSH TABLES WITH READ LOCK; SET SESSION MAX_SESSION_MEM_USED= @@MAX_SESSION_MEM_USED + 1024; SHOW CREATE SEQUENCE s; # Cleanup DROP SEQUENCE s; {code} {code:sql|title=10.3 debug f3f23b5c} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. #7 0x00007efd0cbccf12 in __GI___assert_fail (assertion=0x557a0ba07010 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x557a0ba06dd8 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x557a0ba08b90 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x0000557a0ad1c19a in close_thread_tables (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_base.cc:743 #9 0x0000557a0ae54710 in mysqld_show_create (thd=0x7efcbc000af0, table_list=0x7efcbc0128f0) at /data/src/10.3/sql/sql_show.cc:1450 #10 0x0000557a0adb7756 in mysql_execute_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:4245 #11 0x0000557a0adc3ea3 in mysql_parse (thd=0x7efcbc000af0, rawbuf=0x7efcbc012818 "SHOW CREATE SEQUENCE s", length=22, parser_state=0x7efd01f485e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7810 #12 0x0000557a0adb06ea in dispatch_command (command=COM_QUERY, thd=0x7efcbc000af0, packet=0x7efcbc165811 "SHOW CREATE SEQUENCE s", packet_length=22, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1848 #13 0x0000557a0adaf002 in do_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:1393 #14 0x0000557a0af284d7 in do_handle_one_connection (connect=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x0000557a0af28239 in handle_one_connection (arg=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x0000557a0b8df0e8 in pfs_spawn_thread (arg=0x557a0dac1260) at /data/src/10.3/storage/perfschema/pfs.cc:1869 #17 0x00007efd0eb554a4 in start_thread (arg=0x7efd01f49700) at pthread_create.c:456 #18 0x00007efd0cc89d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7efcbc012818): SHOW CREATE SEQUENCE s Connection ID (thread ID): 9 Status: KILL_QUERY {code} {code:sql|title=10.3 non-debug f3f23b5c} MariaDB [test]> SHOW CREATE SEQUENCE s; ERROR 1290 (HY000): The MariaDB server is running with the --max-thread-mem-used=9223372036854776831 option so it cannot execute this statement {code} I'm not sure whether the non-debug error above is expected. Here is an alternative test case, which doesn't involve tampering with system variables -- it's non-deterministic, run with {{--repeat=N}}. {code:sql} --source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; RENAME TABLE s TO s1; --connect (con1,localhost,root,,test) --let $conid= `SELECT CONNECTION_ID()` --send SHOW CREATE SEQUENCE s1; --connection default --eval KILL $conid # Cleanup --connection default DROP SEQUENCE s1; {code} {noformat:title=10.3 f1309fac} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 190912 17:08:34 [ERROR] mysqld got signal 6 ; #7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743 #9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449 #10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250 #11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830 #12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856 #13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401 #14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862 #17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456 #18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 {noformat} Reproducible on 10.3-10.5. Couldn't reproduce with MyISAM. |
Description |
{code:sql}
--source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; FLUSH TABLES WITH READ LOCK; SET SESSION MAX_SESSION_MEM_USED= @@MAX_SESSION_MEM_USED + 1024; SHOW CREATE SEQUENCE s; # Cleanup DROP SEQUENCE s; {code} {code:sql|title=10.3 debug f3f23b5c} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. #7 0x00007efd0cbccf12 in __GI___assert_fail (assertion=0x557a0ba07010 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x557a0ba06dd8 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x557a0ba08b90 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x0000557a0ad1c19a in close_thread_tables (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_base.cc:743 #9 0x0000557a0ae54710 in mysqld_show_create (thd=0x7efcbc000af0, table_list=0x7efcbc0128f0) at /data/src/10.3/sql/sql_show.cc:1450 #10 0x0000557a0adb7756 in mysql_execute_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:4245 #11 0x0000557a0adc3ea3 in mysql_parse (thd=0x7efcbc000af0, rawbuf=0x7efcbc012818 "SHOW CREATE SEQUENCE s", length=22, parser_state=0x7efd01f485e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7810 #12 0x0000557a0adb06ea in dispatch_command (command=COM_QUERY, thd=0x7efcbc000af0, packet=0x7efcbc165811 "SHOW CREATE SEQUENCE s", packet_length=22, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1848 #13 0x0000557a0adaf002 in do_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:1393 #14 0x0000557a0af284d7 in do_handle_one_connection (connect=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x0000557a0af28239 in handle_one_connection (arg=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x0000557a0b8df0e8 in pfs_spawn_thread (arg=0x557a0dac1260) at /data/src/10.3/storage/perfschema/pfs.cc:1869 #17 0x00007efd0eb554a4 in start_thread (arg=0x7efd01f49700) at pthread_create.c:456 #18 0x00007efd0cc89d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7efcbc012818): SHOW CREATE SEQUENCE s Connection ID (thread ID): 9 Status: KILL_QUERY {code} {code:sql|title=10.3 non-debug f3f23b5c} MariaDB [test]> SHOW CREATE SEQUENCE s; ERROR 1290 (HY000): The MariaDB server is running with the --max-thread-mem-used=9223372036854776831 option so it cannot execute this statement {code} I'm not sure whether the non-debug error above is expected. Here is an alternative test case, which doesn't involve tampering with system variables -- it's non-deterministic, run with {{--repeat=N}}. {code:sql} --source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; RENAME TABLE s TO s1; --connect (con1,localhost,root,,test) --let $conid= `SELECT CONNECTION_ID()` --send SHOW CREATE SEQUENCE s1; --connection default --eval KILL $conid # Cleanup --connection default DROP SEQUENCE s1; {code} {noformat:title=10.3 f1309fac} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 190912 17:08:34 [ERROR] mysqld got signal 6 ; #7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743 #9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449 #10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250 #11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830 #12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856 #13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401 #14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862 #17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456 #18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 {noformat} Reproducible on 10.3-10.5. Couldn't reproduce with MyISAM. |
{code:sql}
--source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; FLUSH TABLES WITH READ LOCK; SET SESSION MAX_SESSION_MEM_USED= @@MAX_SESSION_MEM_USED + 1024; SHOW CREATE SEQUENCE s; # Cleanup UNLOCK TABLES; DROP SEQUENCE s; {code} {code:sql|title=10.3 debug f3f23b5c} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. #7 0x00007efd0cbccf12 in __GI___assert_fail (assertion=0x557a0ba07010 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x557a0ba06dd8 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x557a0ba08b90 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x0000557a0ad1c19a in close_thread_tables (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_base.cc:743 #9 0x0000557a0ae54710 in mysqld_show_create (thd=0x7efcbc000af0, table_list=0x7efcbc0128f0) at /data/src/10.3/sql/sql_show.cc:1450 #10 0x0000557a0adb7756 in mysql_execute_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:4245 #11 0x0000557a0adc3ea3 in mysql_parse (thd=0x7efcbc000af0, rawbuf=0x7efcbc012818 "SHOW CREATE SEQUENCE s", length=22, parser_state=0x7efd01f485e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7810 #12 0x0000557a0adb06ea in dispatch_command (command=COM_QUERY, thd=0x7efcbc000af0, packet=0x7efcbc165811 "SHOW CREATE SEQUENCE s", packet_length=22, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1848 #13 0x0000557a0adaf002 in do_command (thd=0x7efcbc000af0) at /data/src/10.3/sql/sql_parse.cc:1393 #14 0x0000557a0af284d7 in do_handle_one_connection (connect=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x0000557a0af28239 in handle_one_connection (arg=0x557a0daa62b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x0000557a0b8df0e8 in pfs_spawn_thread (arg=0x557a0dac1260) at /data/src/10.3/storage/perfschema/pfs.cc:1869 #17 0x00007efd0eb554a4 in start_thread (arg=0x7efd01f49700) at pthread_create.c:456 #18 0x00007efd0cc89d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7efcbc012818): SHOW CREATE SEQUENCE s Connection ID (thread ID): 9 Status: KILL_QUERY {code} {code:sql|title=10.3 non-debug f3f23b5c} MariaDB [test]> SHOW CREATE SEQUENCE s; ERROR 1290 (HY000): The MariaDB server is running with the --max-thread-mem-used=9223372036854776831 option so it cannot execute this statement {code} I'm not sure whether the non-debug error above is expected. Here is an alternative test case, which doesn't involve tampering with system variables -- it's non-deterministic, run with {{--repeat=N}}. {code:sql} --source include/have_innodb.inc CREATE SEQUENCE s ENGINE=InnoDB; RENAME TABLE s TO s1; --connect (con1,localhost,root,,test) --let $conid= `SELECT CONNECTION_ID()` --send SHOW CREATE SEQUENCE s1; --connection default --eval KILL $conid # Cleanup --connection default DROP SEQUENCE s1; {code} {noformat:title=10.3 f1309fac} mysqld: /data/src/10.3/sql/sql_base.cc:744: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed. 190912 17:08:34 [ERROR] mysqld got signal 6 ; #7 0x00007f6391d3cf12 in __GI___assert_fail (assertion=0x5572e52cda48 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x5572e52cd7c0 "/data/src/10.3/sql/sql_base.cc", line=744, function=0x5572e52cf510 <close_thread_tables(THD*)::__PRETTY_FUNCTION__> "void close_thread_tables(THD*)") at assert.c:101 #8 0x00005572e45b480d in close_thread_tables (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_base.cc:743 #9 0x00005572e46ec9c5 in mysqld_show_create (thd=0x7f6334000b00, table_list=0x7f6334011530) at /data/src/10.3/sql/sql_show.cc:1449 #10 0x00005572e4650392 in mysql_execute_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:4250 #11 0x00005572e465c9fd in mysql_parse (thd=0x7f6334000b00, rawbuf=0x7f6334011458 "SHOW CREATE SEQUENCE s1", length=23, parser_state=0x7f638c0f05e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7830 #12 0x00005572e46492fb in dispatch_command (command=COM_QUERY, thd=0x7f6334000b00, packet=0x7f6334008c71 "SHOW CREATE SEQUENCE s1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1856 #13 0x00005572e4647c22 in do_command (thd=0x7f6334000b00) at /data/src/10.3/sql/sql_parse.cc:1401 #14 0x00005572e47c0d40 in do_handle_one_connection (connect=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1403 #15 0x00005572e47c0aa2 in handle_one_connection (arg=0x5572e89ad0b0) at /data/src/10.3/sql/sql_connect.cc:1308 #16 0x00005572e51a30a0 in pfs_spawn_thread (arg=0x5572e88f0aa0) at /data/src/10.3/storage/perfschema/pfs.cc:1862 #17 0x00007f63938b14a4 in start_thread (arg=0x7f638c0f1700) at pthread_create.c:456 #18 0x00007f6391df9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 {noformat} Reproducible on 10.3-10.5. Couldn't reproduce with MyISAM. |
Assignee | Sergey Vojtovich [ svoj ] | Michael Widenius [ monty ] |
Link | This issue relates to MDEV-23145 [ MDEV-23145 ] |
Labels | affects-tests |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Workflow | MariaDB v3 [ 88815 ] | MariaDB v4 [ 144487 ] |
Priority | Critical [ 2 ] | Major [ 3 ] |
Fix Version/s | 10.3 [ 22126 ] |
Comment |
[ Automated message: ---------------------------- Since this issue has not been updated since 6 weeks, it's time to move it back to Stalled. ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 10.4 [ 22408 ] |