Bug #107722 | Assertion `tab->ref().use_count' failed in MySQL 5.7.38 | ||
---|---|---|---|
Submitted: | 1 Jul 2022 10:58 | Modified: | 1 Jul 2022 11:37 |
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 10:58]
Wang Ke
[1 Jul 2022 11:37]
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:38]
MySQL Verification Team
- 5.7.38 release build not affected rm -rf 107722/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/107722 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/107722 --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/107722/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 t ( a INT , b INT ) ENGINE = innodb ; Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t VALUES ( 2 , 0 ) , ( 0 , 0 ) ; Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> CREATE TABLE s ( a INT AUTO_INCREMENT KEY , b INT ) ENGINE = archive ; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO s VALUES ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 2 ) , ( 4 , 3 ) , ( 5 , 3 ) ; Query OK, 5 rows affected (0.00 sec) Records: 5 Duplicates: 0 Warnings: 0 mysql> SELECT ra0 . b FROM s ra0 NATURAL JOIN t ra1 ; Empty set (0.00 sec) -- 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 ra0 . b FROM s ra0 NATURAL JOIN t ra1 ; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql>
[1 Jul 2022 11:40]
MySQL Verification Team
- 8.0.29 release/debug not affected