Bug #83900 | mysql server is crashed by binlog dump thread | ||
---|---|---|---|
Submitted: | 21 Nov 2016 8:04 | Modified: | 28 Jul 2017 7:08 |
Reporter: | h h | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
Version: | 5.7.12-log | OS: | CentOS (6.5) |
Assigned to: | CPU Architecture: | Any |
[21 Nov 2016 8:04]
h h
[19 Dec 2016 14:53]
MySQL Verification Team
Thank you for taking the time to report a problem. Unfortunately you are not using a current version of the product you reported a problem with, 5.7.12 is old version and since then many bugs fixed i.e the problem might already be fixed. Please download a new version from http://www.mysql.com/downloads/ If you are able to reproduce the bug with one of the latest versions, please change the version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of MySQL.
[26 Jul 2017 6:17]
Wang Wei
MySQL Version: 5.7.19-log 2017-07-26T10:05:59.844124+08:00 415180 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. 2017-07-26T10:05:59.847051+08:00 415180 [Note] Slave I/O thread for channel '': connected to master 'replicater@172.20.129.81:3358',replication started in log 'mysql-bin.000003' at position 278724291 2017-07-26T10:05:59.860621+08:00 415181 [Note] Slave SQL thread for channel '' initialized, starting replication in log 'mysql-bin.000003' at position 278724291, relay log './relay-log.000005' position: 278724504 2017-07-26T11:08:29.034086+08:00 415182 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034124+08:00 415182 [Warning] 'user' entry 'backup@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034254+08:00 415182 [Warning] 'user' entry 'jd_mha_manager@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034320+08:00 415182 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034721+08:00 415182 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034740+08:00 415182 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034756+08:00 415182 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034892+08:00 415182 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.034906+08:00 415182 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode. 2017-07-26T11:08:29.771172+08:00 418967 [Note] Start binlog_dump to master_thread_id(418967) slave_server(1000), pos(mysql-bin.000003, 291716667) 03:08:29 UTC - 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. Attempting to collect some information that could help diagnose the problem. As this is a crash and something is definitely wrong, the information collection process might fail. key_buffer_size=67108864 read_buffer_size=262144 max_used_connections=2 max_threads=2000 thread_count=8 connection_count=2 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 860223 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f42d8012230 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... stack_bottom = 7f430c0b1e28 thread_stack 0x40000 /export/servers/mysql/bin/mysqld(my_print_stacktrace+0x35)[0xf33f95] /export/servers/mysql/bin/mysqld(handle_fatal_signal+0x4a4)[0x7bb5f4] /lib64/libpthread.so.0[0x3bb040f710] /export/servers/mysql/bin/mysqld(find_type+0x38)[0xf37d68] /export/servers/mysql/bin/mysqld(_ZN13Binlog_sender17init_checksum_algEv+0x99)[0xeeac59] /export/servers/mysql/bin/mysqld(_ZN13Binlog_sender4initEv+0x1f7)[0xeeaf87] /export/servers/mysql/bin/mysqld(_ZN13Binlog_sender3runEv+0x2b)[0xeec5bb] /export/servers/mysql/bin/mysqld(_Z17mysql_binlog_sendP3THDPcyP8Gtid_setj+0x32)[0xee6f62] /export/servers/mysql/bin/mysqld(_Z15com_binlog_dumpP3THDPcm+0xfc)[0xee8a8c] /export/servers/mysql/bin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0xb5b)[0xd06f9b] /export/servers/mysql/bin/mysqld(_Z10do_commandP3THD+0x194)[0xd084b4] /export/servers/mysql/bin/mysqld(handle_connection+0x29c)[0xdd828c] /export/servers/mysql/bin/mysqld(pfs_spawn_thread+0x171)[0x123f811] /lib64/libpthread.so.0[0x3bb04079d1] /lib64/libc.so.6(clone+0x6d)[0x3bb00e88fd] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0): is an invalid pointer Connection ID (thread ID): 418967 Status: NOT_KILLED
[26 Jul 2017 6:19]
Wang Wei
2017-07-25T21:52:13.628226+08:00 66 [Note] Multi-threaded slave statistics for channel '': seconds elapsed = 125; events assigned = 818177; worker queues filled over overrun level = 0; waited due a Worker queue full = 0; waited due the total size = 0; waited at clock conflicts = 6472281900 waited (count) when Workers occupied = 0 waited when Workers occupied = 0 2017-07-25T21:56:41.444267+08:00 66 [Note] Multi-threaded slave statistics for channel '': seconds elapsed = 268; events assigned = 819201; worker queues filled over overrun level = 0; waited due a Worker queue full = 0; waited due the total size = 0; waited at clock conflicts = 6484416400 waited (count) when Workers occupied = 0 waited when Workers occupied = 0 2017-07-25T21:58:41.476851+08:00 66 [Note] Multi-threaded slave statistics for channel '': seconds elapsed = 120; events assigned = 854017; worker queues filled over overrun level = 0; waited due a Worker queue full = 0; waited due the total size = 0; waited at clock conflicts = 6729978200 waited (count) when Workers occupied = 0 waited when Workers occupied = 0 2017-07-25T22:00:46.617634+08:00 66 [Note] Multi-threaded slave statistics for channel '': seconds elapsed = 125; events assigned = 880641; worker queues filled over overrun level = 0; waited due a Worker queue full = 0; waited due the total size = 0; waited at clock conflicts = 6913160600 waited (count) when Workers occupied = 0 waited when Workers occupied = 0 2017-07-25T22:02:46.298771+08:00 66 [Note] Multi-threaded slave statistics for channel '': seconds elapsed = 120; events assigned = 910337; worker queues filled over overrun level = 0; waited due a Worker queue full = 0; waited due the total size = 0; waited at clock conflicts = 7014508100 waited (count) when Workers occupied = 0 waited when Workers occupied = 0 2017-07-26T10:05:59.842178+08:00 66 [Note] Error reading relay log event for channel '': slave SQL thread was killed 2017-07-26T10:05:59.842939+08:00 65 [Note] Slave I/O thread killed while reading event for channel '' 2017-07-26T10:05:59.842964+08:00 65 [Note] Slave I/O thread exiting for channel '', read up to log 'mysql-bin.000003', position 278724291
[27 Jul 2017 1:26]
h h
it seems that Oracle dose not pay enough attention to this bug which is hard to reproduce :(
[28 Jul 2017 7:08]
Libing Song
client or slave sets @master_binlog_checksum to tell binlog sender thread if it supports checksum. when the variable is set to null(SET @master_binlog_checksump=null), server will be crashed
[20 Oct 2019 10:08]
Arie Skliarouk
Still happens from time to time on 5.7.24-0ubuntu0.16.04.1 as shipped with ubuntu 16.04 On a production db with 10k+ queries/sec with many transactions. How can I help you to reproduce the problem?