Bug #107723 | Assertion in add_having_as_tmp_table_cond() failure in MySQL 5.7.38 | ||
---|---|---|---|
Submitted: | 1 Jul 2022 11:02 | Modified: | 1 Jul 2022 11:43 |
Reporter: | Wang Ke | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 5.7.38 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | assertion failure |
[1 Jul 2022 11:02]
Wang Ke
[1 Jul 2022 11:43]
MySQL Verification Team
Hello Wang Ke, Thank you for the report and test case. Observed that 5.7.38 debug build is affected with provided test case. regards, Umesh
[1 Jul 2022 11:44]
MySQL Verification Team
- 5.7.38 release build not affected rm -rf 107723/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/107723 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/107723 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107723/log.err --log-error-verbosity=3 --secure-file-priv="" --performance-schema=ON 2>&1 & bin/mysql -uroot -S /tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.38 MySQL Community Server (GPL) Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> use test Database changed mysql> CREATE TABLE t1 ( a INT , b VARCHAR ( 1 ) , KEY ( b , a ) ) ENGINE = InnoDB ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1 VALUES ( 1 , 'v' ) , ( 2 , 's' ) ; Query OK, 2 rows affected (0.01 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> CREATE TABLE t2 ( c INT , KEY ( c ) ) ENGINE = InnoDB ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t2 VALUES ( 1 ) , ( 3 ) ; Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> SELECT HIGH_PRIORITY ra1 . a , 2 ca0 FROM t1 ra0 , t1 ra1 WHERE ra1 . a = ra1 . b HAVING 1 IN ( SELECT ra1 . a ORDER BY ra0 . b DESC ) ORDER BY ra1 . a NOT IN ( 's' , ra1 . a ) ; Empty set, 2 warnings (0.00 sec) -- 5.7.38 debug build affected bin/mysql -uroot -S /tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.38-debug MySQL Community Server - Debug (GPL) Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> SELECT HIGH_PRIORITY ra1 . a , 2 ca0 FROM t1 ra0 , t1 ra1 WHERE ra1 . a = ra1 . b HAVING 1 IN ( SELECT ra1 . a ORDER BY ra0 . b DESC ) ORDER BY ra1 . a NOT IN ( 's' , ra1 . a ) ; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql>