Bug #107636 | Assertion in ha_index_init() failed in MySQL 8.0.29 | ||
---|---|---|---|
Submitted: | 22 Jun 2022 16:33 | Modified: | 23 Jun 2022 5:59 |
Reporter: | Wang Ke | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 8.0.29, 5.7.38 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | assertion failure |
[22 Jun 2022 16:33]
Wang Ke
[23 Jun 2022 5:59]
MySQL Verification Team
Hello Wang Ke, Thank you for the report and test case. Observed that 8.0.29 debug build is affected with provided test case. regards, Umesh
[23 Jun 2022 6:00]
MySQL Verification Team
- 8.0.29 release build - not affected rm -rf 107636/ bin/mysqld --no-defaults --initialize-insecure --basedir=$PWD --datadir=$PWD/107636 --log-error-verbosity=3 bin/mysqld_safe --no-defaults --basedir=$PWD --datadir=$PWD/107636 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107636/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv="" --local-infile=1 2>&1 & bin/mysql -uroot -S /tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.29 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 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1 VALUES ( 1 ) ; Query OK, 1 row affected (0.01 sec) mysql> CREATE TABLE t2 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO t2 VALUES ( 1 ) ; Query OK, 1 row affected (0.00 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; Empty set (0.00 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; Empty set (0.00 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; Empty set (0.00 sec) -- 8.0.29 debug build - affected rm -rf 107636/ bin/mysqld --no-defaults --initialize-insecure --basedir=$PWD --datadir=$PWD/107636 --log-error-verbosity=3 bin/mysqld_safe --no-defaults --mysqld-version=debug --basedir=$PWD --datadir=$PWD/107636 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107636/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv="" --local-infile=1 2>&1 & bin/mysql -uroot -S /tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.29-debug MySQL Community Server - GPL - Debug 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.01 sec) mysql> use test Database changed mysql> CREATE TABLE t1 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1 VALUES ( 1 ) ; Query OK, 1 row affected (0.00 sec) mysql> CREATE TABLE t2 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t2 VALUES ( 1 ) ; Query OK, 1 row affected (0.01 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; ERROR 2013 (HY000): Lost connection to MySQL server during query
[23 Jun 2022 6:22]
MySQL Verification Team
- 5.7.38 release build not affected rm -rf 107638/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/107638 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/107638 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107638/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 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1 VALUES ( 1 ) ; Query OK, 1 row affected (0.01 sec) mysql> CREATE TABLE t2 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO t2 VALUES ( 1 ) ; Query OK, 1 row affected (0.00 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; Empty set (0.00 sec) - 5.7.38 debug build affected rm -rf 107638/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/107638 --log-error-verbosity=3 bin/mysqld-debug --no-defaults --basedir=$PWD --datadir=$PWD/107638 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107638/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-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> drop database test; Query OK, 2 rows affected (0.00 sec) mysql> drop database test1; Query OK, 1 row affected (0.01 sec) mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> use test Database changed mysql> CREATE TABLE t1 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO t1 VALUES ( 1 ) ; Query OK, 1 row affected (0.00 sec) mysql> CREATE TABLE t2 ( k INT , KEY ( k ) ) ENGINE = MyISAM ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t2 VALUES ( 1 ) ; Query OK, 1 row affected (0.00 sec) mysql> SELECT ra0 . k FROM t2 ra0 WHERE ( SELECT ra0 . k FROM t1 ra3 HAVING MIN( ra3 . k ) < MAX( ra0 . k ) ) < 1 ; ERROR 2013 (HY000): Lost connection to MySQL server during query