1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-25906: SIGSEGV in flush_tables_with_read_lock on FTWRL or FTFE | SIGSEGV in ha_maria::extra

This commit is contained in:
Sergei Golubchik
2021-07-02 00:26:04 +02:00
parent 164a64baa3
commit 4145ebf99a
5 changed files with 149 additions and 3 deletions

View File

@ -626,3 +626,37 @@ show status like "Threads_cached";
Variable_name Value
Threads_cached 0
set @@global.thread_cache_size=@save_thread_cache_size;
#
# MDEV-25906: SIGSEGV in flush_tables_with_read_lock on FTWRL or FTFE | SIGSEGV in ha_maria::extra
#
CREATE VIEW v0 AS SELECT 1;
CREATE VIEW v1 AS SELECT 1 FROM (SELECT 1) AS d;
CREATE VIEW v2 AS SELECT * FROM v1;
FLUSH TABLE v0 WITH READ LOCK;
DROP VIEW v0;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
FLUSH TABLE v1 WITH READ LOCK;
DROP VIEW v1;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
FLUSH TABLE v2 WITH READ LOCK;
DROP VIEW v2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
FLUSH TABLE v0 FOR EXPORT;
DROP VIEW v0;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
FLUSH TABLE v1 FOR EXPORT;
DROP VIEW v1;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
FLUSH TABLE v2 FOR EXPORT;
DROP VIEW v2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
DROP VIEW v2, v1, v0;
#
# End of 10.6 tests
#