| Bug #14614 | TRIGGER crashing on UPDATE if other database selected | ||
|---|---|---|---|
| Submitted: | 3 Nov 2005 16:58 | Modified: | 21 Dec 2005 8:32 |
| Reporter: | Beat Vontobel (Silver Quality Contributor) (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
| Version: | 5.0.15-standard-log-i686-glibc23 | OS: | Linux (SuSE Linux 2.4.21-273-smp4G) |
| Assigned to: | Alexander Ivanov | CPU Architecture: | Any |
[3 Nov 2005 16:58]
Beat Vontobel
[4 Nov 2005 14:42]
MySQL Verification Team
With latest source I was unable to repeat the crash, however the server
slave displayed the error message:
Error: Freeing wrong aligned pointer at line 1165, 'sql_db.cc'
Then I am marking as verified for further analyze of replication team
regarding that error message.
051104 12:30:19 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000001' at position 226, relay log './hegel-relay-bin.000001' position: 4
051104 12:30:19 [Note] Slave I/O thread: connected to master 'slaveuser@localhost:3306', replication started in log 'mysql-bin.000001' at position 226
051104 12:30:19 [Note] next log './hegel-relay-bin.000002' is currently active
Error: Freeing wrong aligned pointer at line 1165, 'sql_db.cc'
miguel@hegel:~/dbs/5.0> bin/mysql --defaults-file=/home/miguel/dbs/5.0/var/my.cnf -uroot --prompt="master >"
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.16-debug-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
master >grant all on *.* to 'slaveuser'@'localhost' identified by 'slaveuser';
Query OK, 0 rows affected (0.00 sec)
master >show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000001 | 226 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
master >use test
Database changed
master >source /home/miguel/a/test.sql
Query OK, 0 rows affected (0.00 sec)
<cut>
Query OK, 0 rows affected (0.00 sec)
master >use mysql
Database changed
master >UPDATE `test`.`swissmetnet_sdm` SET `lum` = 1 WHERE `datetime` > NOW() -
-> INTERVAL 7 DAY AND `lum` IS NULL;
Query OK, 1139 rows affected (1.25 sec)
Rows matched: 1139 Changed: 1139 Warnings: 0
master >
miguel@hegel:~/dbs/5.0s> bin/mysql --defaults-file=/home/miguel/dbs/5.0s/var/my.cnf -uroot --prompt="slave >"
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.16-debug-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
slave >CHANGE MASTER TO
-> MASTER_HOST='localhost',
-> MASTER_USER='slaveuser',
-> MASTER_PASSWORD='slaveuser',
-> MASTER_LOG_FILE='mysql-bin.000001',
-> MASTER_LOG_POS=226;
Query OK, 0 rows affected (0.24 sec)
slave >slave start;
Query OK, 0 rows affected (0.01 sec)
slave >show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: localhost
Master_User: slaveuser
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 226
Relay_Log_File: hegel-relay-bin.000002
Relay_Log_Pos: 235
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 226
Relay_Log_Space: 235
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
1 row in set (0.00 sec)
slave >show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: localhost
Master_User: slaveuser
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 181494
Relay_Log_File: hegel-relay-bin.000002
Relay_Log_Pos: 181503
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 181494
Relay_Log_Space: 181503
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
1 row in set (0.01 sec)
slave >
[11 Dec 2005 13:54]
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/65
[12 Dec 2005 11:10]
Alexander Ivanov
Fixed in 5.0.18
[21 Dec 2005 8:32]
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 bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
Documented in 5.0.18 changelog. Closed bug.
