Bug #64035 | Several errors in COM_BINLOG_DUMP/mysql_binlog_send crash the server in 5.5.18+ | ||
---|---|---|---|
Submitted: | 15 Jan 2012 6:07 | Modified: | 19 Jan 2012 11:31 |
Reporter: | Jeremy Cole (Basic Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
Version: | 5.5.18+ | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | binlog dump crash, COM_BINLOG_DUMP, null pointer, qc, regression, replication |
[15 Jan 2012 6:07]
Jeremy Cole
[15 Jan 2012 6:10]
Jeremy Cole
I forgot to add, that this code was introduced in 5.5.18 in the fix for Bug 32228: http://bugs.mysql.com/bug.php?id=32228
[15 Jan 2012 9:23]
Valeriy Kravchuk
Thank you for the bug report. Verified on Mac OS X: macbook-pro:5.5 openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.20-debug-log Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 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 table tt2(c1 int); Query OK, 0 rows affected (0.07 sec) mysql> insert into tt2 values(1), (2); Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> show master status\G *************************** 1. row *************************** File: macbook-pro-bin.000004 Position: 382 Binlog_Do_DB: Binlog_Ignore_DB: 1 row in set (0.00 sec) mysql> exit Bye macbook-pro:5.5 openxs$ bin/mysqlbinlog -uroot --read-from-remote-server -h 127.0.0.1 -P 3306 macbook-pro-bin.000004 -j 500 /*!40019 SET @@session.max_insert_delayed_threads=0*/; /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; DELIMITER /*!*/; ERROR: Got error reading packet from server: Lost connection to MySQL server during query DELIMITER ; # End of log file ROLLBACK /* added by mysqlbinlog */; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; macbook-pro:5.5 openxs$ 120115 11:20:27 mysqld_safe mysqld restarted
[15 Jan 2012 16:08]
Mark Callaghan
This ia a great place for an error injection test.
[15 Jan 2012 16:09]
Mark Callaghan
This is a great place for an error injection test
[19 Jan 2012 11:31]
Jon Stephens
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 bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html
[19 Jan 2012 11:32]
Jon Stephens
Documented fix in the 5.5.21 and 5.6.5 changelogs as follows: Executing mysqlbinlog with the --start-position=N option, where N was equal either to 0 or to a value greater than the length of the dump file, caused it to crash. This issue was introduced in MySQL 5.5.18 by the fix for Bug #32228 and Bug #11747416. Closed.