Bug #111441 | bool Sql_cmd_dml::prepare(THD*): Assertion `thd->is_error()' failed. | ||
---|---|---|---|
Submitted: | 15 Jun 2023 18:53 | Modified: | 22 Jun 2023 17:57 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | 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 2023 18:53]
Yu Liang
[16 Jun 2023 3:38]
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 2023 3:39]
MySQL Verification Team
-- release build - not affected 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); INSERT INTO v0 SELECT * FROM v0 WHERE ! { w2 c1 NOT IN ( TABLE v0) IS NOT FALSE } IN ( TABLE v0 ) IS FALSE GROUP BY c1 HAVING c1 WINDOW w2 AS ( ); [ 50%] main.bug111441 [ pass ] 7 [100%] shutdown_report [ pass ] ------------------------------------------------------------------------------ -- debug build - affected ./mtr bug111441 --nocheck-testcases --debug-server Logging: ./mtr bug111441 --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); INSERT INTO v0 SELECT * FROM v0 WHERE ! { w2 c1 NOT IN ( TABLE v0) IS NOT FALSE } IN ( TABLE v0 ) IS FALSE GROUP BY c1 HAVING c1 WINDOW w2 AS ( ); [ 50%] main.bug111441 [ fail ] Test ended at 2023-06-16 05:37:30 CURRENT_TEST: main.bug111441 mysqltest: At line 5: Query 'INSERT INTO v0 SELECT * FROM v0 WHERE ! { w2 c1 NOT IN ( TABLE v0) IS NOT FALSE } IN ( TABLE v0 ) IS FALSE GROUP BY c1 HAVING c1 WINDOW w2 AS ( )' failed. ERROR 2013 (HY000): Lost connection to MySQL server during query -bt #0 0x00007fc9cf0a4aa1 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 0x00007fc9cd2de387 in raise () from /lib64/libc.so.6 #5 0x00007fc9cd2dfa78 in abort () from /lib64/libc.so.6 #6 0x00007fc9cd2d71a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007fc9cd2d7252 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003123445 in Sql_cmd_dml::prepare(THD*) () #9 0x000000000312362f in Sql_cmd_dml::execute(THD*) () #10 0x00000000030c24af in mysql_execute_command(THD*, bool) () #11 0x00000000030c5dc9 in dispatch_sql_command(THD*, Parser_state*) () #12 0x00000000030c752b in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #13 0x00000000030c926e in do_command(THD*) () #14 0x0000000003227bb7 in handle_connection () #15 0x0000000004743af9 in pfs_spawn_thread () #16 0x00007fc9cf09fea5 in start_thread () from /lib64/libpthread.so.0 #17 0x00007fc9cd3a6b2d in clone () from /lib64/libc.so.6
[22 Jun 2023 6:56]
Tor Didriksen
Posted by developer: Fixed on trunk, by commit 79eae6a2b9b2ecbff21deb3b66669c9ac002d964 Author: Roy Lyseng <roy.lyseng@oracle.com> AuthorDate: Fri May 12 08:39:57 2023 +0200 Commit: Roy Lyseng <roy.lyseng@oracle.com> CommitDate: Fri May 12 09:13:44 2023 +0200 Bug#35184353: Refactor order of subquery resolving and transformation
[22 Jun 2023 17:22]
Christine Cole
Posted by developer: Work was done for test suite. No changelog entry needed.
[22 Jun 2023 17:57]
Yu Liang
Thank you for the patch information. We will keep track of the bug triggering in the future MySQL releases.