Bug #2267 Lost connect if stored procedure has SHOW FUNCTION STATUS
Submitted: 3 Jan 2004 9:11 Modified: 14 Jan 2004 9:28
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.0 OS:Linux (SuSE 8.2)
Assigned to: Bugs System CPU Architecture:Any

[3 Jan 2004 9:11] Peter Gulutzan
Description:
If a stored procedure contains SHOW FUNCTION STATUS, then calling the procedure will 
break the connection. 

How to repeat:
mysql> create procedure p1 () show function status; 
Query OK, 0 rows affected (0.01 sec) 
 
mysql> call p1(); 
Empty set (0.01 sec) 
 
mysql> create procedure p2 () show function status; 
Packets out of order (Found: 11, expected 1) 
ERROR 2013 (HY000): Lost connection to MySQL server during query
[5 Jan 2004 11:04] Dean Ellis
Verified, but this only seems to occur with a debug build.
[14 Jan 2004 9:28] Per-Erik Martin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

There might be more statements with this problem; we fix them as we find them...