Bug #13673 | PROCEDURE ANALYSE() in stored procedure/prepared statements crashes MySQL | ||
---|---|---|---|
Submitted: | 30 Sep 2005 23:18 | Modified: | 15 Nov 2005 16:59 |
Reporter: | jocelyn fournier (Silver Quality Contributor) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S1 (Critical) |
Version: | 4.1 | OS: | Linux (linux) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[30 Sep 2005 23:18]
jocelyn fournier
[30 Sep 2005 23:31]
MySQL Verification Team
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 to server version: 5.0.14-rc-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> delimiter ; mysql> DROP TABLE IF EXISTS t1; Query OK, 0 rows affected (0.00 sec) mysql> CREATE TABLE t1 (a int); Query OK, 0 rows affected (0.06 sec) mysql> delimiter | mysql> CREATE PROCEDURE test () BEGIN SELECT * FROM t1 PROCEDURE ANALYSE(); END | Query OK, 0 rows affected (0.01 sec) mysql> CALL test()| Empty set (0.00 sec) Query OK, 0 rows affected (0.00 sec) mysql> CALL test()| ERROR 2013 (HY000): Lost connection to MySQL server during query mysql>
[14 Oct 2005 7:47]
Oleksandr Byelkin
prepared statements affected by this bug, too. Following script lead to crash of the server: CREATE TABLE t1 (a int); prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()"; execute stmt1; execute stmt1; deallocate prepare stmt1;
[14 Oct 2005 10:22]
Oleksandr Byelkin
repeatable on last 4.1 with PS
[14 Oct 2005 11:37]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/31108
[19 Oct 2005 13:19]
Konstantin Osipov
See also Bug#14138 "ROLLUP and PROCEDURE ANALYSE() hang server (kill -SIGINT doesn't help)"
[21 Oct 2005 11:52]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/31288
[14 Nov 2005 13:42]
Konstantin Osipov
An addition of the test case now should be all that is needed to be done for this bug. Sanja, please add the test case to 4.1 and close the bug.
[15 Nov 2005 16:59]
Oleksandr Byelkin
Thank you for bugreport! This bug was fixed by the bugfix of the BUG#14138, but test suite of this bug is pushed into the source tree.