Bug #576 slave compiled with --debug dies (DBUG_ASSERT) with CHANGE MASTER
Submitted: 3 Jun 2003 15:25 Modified: 3 Jun 2003 16:16
Reporter: Guilhem Bichot
Status: Closed
Category:Server: Replication Severity:S3 (Non-critical)
Version:4.0 OS:Any (all)
Assigned to: Guilhem Bichot Target Version:

[3 Jun 2003 15:25] Guilhem Bichot
Description:
See how-to-repeat, and here is the result :
mysqld: slave.cc:2453: void* handle_slave_sql(void*): Assertion
`((rli->cur_log)->pos_in_file + (uint) (*(rli->cur_log)->current_pos -
(rli->cur_log)->request_pos)) == rli->relay_log_pos' failed.

How to repeat:
have at least one query in the master's binlog.
slave:
reset slave;
start slave;
--wait
stop slave;
change master to relay_log_pos=4;
start slave ; -- crash.
[3 Jun 2003 16:16] Guilhem Bichot
Thank you for your bug report. This issue has been fixed in the latest
development tree for that product. You can find more information about
accessing our development trees at 
    http://www.mysql.com/doc/en/Installing_source_tree.html

4 or less was necessary to get the bug, and only with RELAY_LOG_POS.
A non-debug mysqld would not have crashed in the DBUG_ASSERT, but may
do strange things later.