Bug #111444 | Assertion `inited == NONE || table->open_by_handler' failed. | ||
---|---|---|---|
Submitted: | 15 Jun 19:32 | Modified: | 16 Jun 4:39 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 8.0.33 | OS: | Ubuntu (20.04 LTS) |
Assigned to: | CPU Architecture: | x86 (Intel(R) Core(TM) i7-10700 CPU) |
[15 Jun 19:32]
Yu Liang
[16 Jun 4:39]
MySQL Verification Team
Hello Yu Liang, Thank you for the report and test case. Observed that 8.0.33 debug build is affected. regards, Umesh
[16 Jun 4:41]
MySQL Verification Team
-- release build - not affected ./mtr bug111444 --nocheck-testcases Logging: ./mtr bug111444 --nocheck-testcases MySQL Version 8.0.33 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; create table v0(c1 INT); CREATE TABLE IF NOT EXISTS v2 ( CONSTRAINT c3 PRIMARY KEY i6 TYPE BTREE ( c1 ) ) INSERT_METHOD = LAST STORAGE MEMORY AS TABLE v0; INSERT v0 SET c1 = c1 ; CREATE VIEW v4 AS TABLE v0 UNION DISTINCT TABLE v2 ORDER BY c1 IN ( TABLE v2 ) ; TABLE v0 ORDER BY 'any_random_text' IN ( TABLE v4) ; c1 NULL [ 50%] main.bug111444 [ pass ] 12 [100%] shutdown_report [ pass ] ------------------------------------------------------------------------------ -- debug build - affected ./mtr bug111444 --nocheck-testcases --debug-server Logging: ./mtr bug111444 --nocheck-testcases --debug-server MySQL Version 8.0.33 Checking supported features - Binaries are debug compiled Using 'all' suites Collecting tests Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; create table v0(c1 INT); CREATE TABLE IF NOT EXISTS v2 ( CONSTRAINT c3 PRIMARY KEY i6 TYPE BTREE ( c1 ) ) INSERT_METHOD = LAST STORAGE MEMORY AS TABLE v0; INSERT v0 SET c1 = c1 ; CREATE VIEW v4 AS TABLE v0 UNION DISTINCT TABLE v2 ORDER BY c1 IN ( TABLE v2 ) ; TABLE v0 ORDER BY 'any_random_text' IN ( TABLE v4) ; [ 50%] main.bug111444 [ fail ] Test ended at 2023-06-16 06:39:30 CURRENT_TEST: main.bug111444 mysqltest: At line 8: Query 'TABLE v0 ORDER BY 'any_random_text' IN ( TABLE v4) ' failed. ERROR 2013 (HY000): Lost connection to MySQL server during query #0 0x00007f9ea907faa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000003f9296e in my_write_core(int) () #2 0x00000000032365f5 in handle_fatal_signal () #3 <signal handler called> #4 0x00007f9ea72b9387 in raise () from /lib64/libc.so.6 #5 0x00007f9ea72baa78 in abort () from /lib64/libc.so.6 #6 0x00007f9ea72b21a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f9ea72b2252 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003348d7e in handler::ha_external_lock(THD*, int) () #9 0x00000000034d5fcf in unlock_external(THD*, TABLE**, unsigned int) () #10 0x00000000034d6ade in mysql_unlock_read_tables(THD*, MYSQL_LOCK*) () #11 0x000000000311e6a5 in JOIN::join_free() () #12 0x000000000318d699 in Query_expression::ExecuteIteratorQuery(THD*)::{lambda()#1}::operator()() const () #13 0x000000000318d723 in Scope_guard<Query_expression::ExecuteIteratorQuery(THD*)::{lambda()#1}>::~Scope_guard() () #14 0x0000000003190a98 in Query_expression::ExecuteIteratorQuery(THD*) () #15 0x0000000003190b92 in Query_expression::execute(THD*) () #16 0x000000000311a12a in Sql_cmd_dml::execute_inner(THD*) () #17 0x0000000003123873 in Sql_cmd_dml::execute(THD*) () #18 0x00000000030c4964 in mysql_execute_command(THD*, bool) () #19 0x00000000030c5dc9 in dispatch_sql_command(THD*, Parser_state*) () #20 0x00000000030c752b in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #21 0x00000000030c926e in do_command(THD*) () #22 0x0000000003227bb7 in handle_connection () #23 0x0000000004743af9 in pfs_spawn_thread () #24 0x00007f9ea907aea5 in start_thread () from /lib64/libpthread.so.0 #25 0x00007f9ea7381b2d in clone () from /lib64/libc.so.6