| Bug #29420 | crash with show and purge binlogs | ||
|---|---|---|---|
| Submitted: | 28 Jun 2007 15:25 | Modified: | 11 Jul 2007 19:07 |
| Reporter: | Martin Friebe (Gold Quality Contributor) (SCA) | ||
| Status: | Closed | ||
| Category: | Server | Severity: | S2 (Serious) |
| Version: | 5.1.20 5.0.44/5.0.21 | OS: | Any |
| Assigned to: | Ramil Kalimullin | Target Version: | |
| Tags: | binlog, crash | ||
[28 Jun 2007 15:25]
Martin Friebe
[28 Jun 2007 15:43]
Miguel Solorzano
Thank you for the bug report. Verified as described. 070628 10:36:34 [Note] libexec/mysqld: ready for connections. Version: '5.1.21-beta-debug-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution safe_mutex: Trying to lock unitialized mutex at sql_repl.cc, line 189 070628 10:37:39 - mysqld got signal 6; [miguel@light 5.1]$ bin/mysql -uroot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.21-beta-debug-log Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show binlog events in 'non existing_binlog_file'; ERROR 1220 (HY000): Error when executing command SHOW BINLOG EVENTS: Could not find target log mysql> purge master logs before now(); ERROR 2013 (HY000): Lost connection to MySQL server during query
[5 Jul 2007 10:10]
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/commits/30352 ChangeSet@1.2519, 2007-07-05 13:09:56+05:00, ramil@mysql.com +3 -0 Fix for bug #29420: crash with show and purge binlogs Problem: in case of failed 'show binlog events...' we don't inform that the log is not in use anymore. That may confuse following 'purge logs...' command as it takes into account logs in use. Fix: always notify that the log is not in use anymore.
[6 Jul 2007 15:57]
Chuck Bell
Ok to push. Nice job!
[10 Jul 2007 15:26]
Bugs System
Pushed into 5.1.21-beta
[10 Jul 2007 15:28]
Bugs System
Pushed into 5.0.46
[11 Jul 2007 19:06]
Paul DuBois
Noted in 5.0.46, 5.1.21 changelogs. Use of SHOW BINLOG EVENTS for a non-existent log file followed by PURGE MASTER LOGS caused a server crash.
