Bug #20132 | Slave SQL completely crashes during replication from master SQL server | ||
---|---|---|---|
Submitted: | 30 May 2006 1:07 | Modified: | 23 Jul 2006 9:03 |
Reporter: | Pavol Luptak | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1.7-beta-log | OS: | Linux (Gentoo Linux) |
Assigned to: | CPU Architecture: | Any |
[30 May 2006 1:07]
Pavol Luptak
[30 May 2006 5:17]
Valeriy Kravchuk
Thank you for a problem report. Do you have any triggers on tblOrgEvent table? Any foreign keys that reference it? Can you try to repeat with a newer version of MySQL server, 5.1.9?
[31 May 2006 9:08]
Pavol Luptak
Dear Valeriy, I have no triggers on tblOrgEvent table a no foreign keys that reference it - a master SQL server is running on Debian/Stable (4.1.11-Debian_4sarge3-log). Because of high-critical productional environment I do not dare to switch it to version 5.x. On the slave SQL server I have tried: MySQL 5.1.7-beta from Gentoo Linux distribution MySQL 5.1.9-beta (static binary) from http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.9-beta-linux-i686.tar.gz/from/http:... MySQL 5.0.21 from Gentoo Linux distribution All these versions crashed with the error: mysqld got signal 11; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=16777216 read_buffer_size=258048 max_used_connections=2 max_connections=100 threads_connected=2 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0x8c245f8 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Cannot determine thread, fp=0x46f4d724, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x81d31a8 0xffffe420 0x837dbfd 0x837dbfd 0x8311ec0 0x83123f8 0x8316521 0x8314533 0x82b9e85 0x82b9682 0x82c2084 0x8224138 0x822570f 0x82213c1 0x81e93ec Stack trace seems successful - bottom reached Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved stack trace is much more helpful in diagnosing the problem, so please do resolve it Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x8c2bc30 = SELECT *, `TABLE_SCHEMA` AS `Db`, `TABLE_NAME` AS `Name`, `ENGINE` AS `Engine`, `ENGINE` AS `Type`, `VERSION` AS `Version`, `ROW_FORMAT` AS `Row_format`, `TABLE_ROWS` AS `Rows`, `AVG_ROW_LENGTH` AS `Avg_row_length`, `DATA_LENGTH` AS `Data_length`, `MAX_DATA_LENGTH` AS `Max_data_length`, `INDEX_LENGTH` AS `Index_length`, `DATA_FREE` AS `Data_free`, `AUTO_INCREMENT` AS `Auto_increment`, `CREATE_TIME` AS `Create_time`, `UPDATE_TIME` AS `Update_time`, `CHECK_TIME` AS `Check_time`, `TABLE_COLLATION` AS `Collation`, `CHECKSUM` AS ` thd->thread_id=2 The manual page at http://www.mysql.com/doc/en/Crashing.html contains information that should help you find out what is causing the crash. Number of processes running now: 0 The only difference between MySQL 5.0.21, MySQL 5.1.17-beta and MySQL 5.1.19-Beta is that MySQL 5.1.19-Beta is restarted after the crash occurs. I have checked all replicated tables on master SQL (using mysqlcheck) and they are 100% OK. The communication between master MySQL and slave SQL is encapsulated into SSL tunnel (because it passes through Internet), but I have used it for years without problem.
[11 Jun 2006 15:38]
Valeriy Kravchuk
Sorry, but statement that crashed in you last comment is SELECT (from INFORMATION_SCHEMA's table, obviously), while initially it was INSERT. It can be 2 different bugs. Please, try to repeat with a newer version of slave, 5.1.11 and try to identify crashing statement (if it is always the same).
[20 Jun 2006 15:00]
Valeriy Kravchuk
Please, send SHOW TABLE STATUS results for that tblOrgEvent table used in initial description. Was this table simply copieds from your master (not dumped and restored)?
[22 Jun 2006 15:22]
Pavol Luptak
Hi Valeriy, this show table status for my innoDB tables: | tblOrgContact | InnoDB | 9 | Dynamic | 8 | 2048 | 16384 | NULL | 0 | 0 | 9 | 2005-12-02 10:31:38 | NULL | NULL | utf8_slovak_ci | NULL | | InnoDB free: 6144 kB | | tblOrgEvent | InnoDB | 9 | Dynamic | 1594 | 164 | 262144 | NULL | 0 | 0 | 2210 | 2006-05-31 10:02:07 | NULL | NULL | utf8_slovak_ci | NULL | | InnoDB free: 6144 kB | | tblOrgEventMember | InnoDB | 9 | Fixed | 3901 | 71 | 278528 | NULL | 180224 | 0 | NULL | 2005-12-13 14:38:18 | NULL | NULL | utf8_slovak_ci | NULL | | InnoDB free: Yes, these tables were simply copied from my master server (according to http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html). I create a snapshot of master DB (all tables have read lock using "FLUSH TABLES WITH READ LOCK;"). Is there any difference in binary structure of InnoDB table for MySQL 4.1 and 5.0? Should I use mysql dump / restore instead creating of above-mentioned snapshot?
[23 Jun 2006 9:03]
Valeriy Kravchuk
> Is there any difference in binary structure of InnoDB table for MySQL 4.1 and 5.0? Yes. > Should I use mysql dump / restore instead creating of above-mentioned snapshot? Yes, in general. Please, answer my question in related bug #20275.
[23 Jul 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".