Bug #72586 | memcached daemon crashes and restarts on second ADD operation | ||
---|---|---|---|
Submitted: | 9 May 2014 1:01 | Modified: | 30 Jul 2014 11:53 |
Reporter: | David Schwartz | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Memcached | Severity: | S1 (Critical) |
Version: | 5.6 | OS: | Linux (Centos 6.5) |
Assigned to: | CPU Architecture: | Any |
[9 May 2014 1:01]
David Schwartz
[9 May 2014 1:05]
David Schwartz
Name : mysql-server Arch : x86_64 Version : 5.1.73 Release : 3.el6_5 mysql> SHOW VARIABLES LIKE "%version%"; +-------------------------+------------------------------+ | Variable_name | Value | +-------------------------+------------------------------+ | innodb_version | 5.6.17 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.6.17 | | version_comment | MySQL Community Server (GPL) | | version_compile_machine | x86_64 | | version_compile_os | Linux |
[8 Jul 2014 12:07]
MySQL Verification Team
Thank you for the report and test case. In my tests I noticed that telnet session is terminated and error log is flooded with "errno: 14 Bad address": # telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. get one END delete one NOT_FOUND add one 0 1 1 1 STORED get one END delete one DELETED add one 0 1 1 1 Connection closed by foreign host. # telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. gets one END delete one NOT_FOUND add one 0 1 1 1 STORED get one END delete one DELETED add one 0 1 1 1 Connection closed by foreign host. # telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. get one END delete one NOT_FOUND add one 0 1 1 1 STORED gets one END delete one DELETED add one 0 1 1 1 Connection closed by foreign host. // Error log Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 Failed to read, and not due to blocking: errno: 14 Bad address rcurr=7f6d8c000b5f ritem=1 rbuf=7f6d8c000b50 rlbytes=1 rsize=2048 [root@cluster-repo mysql-advanced-5.6.20]# date Thu Jul 10 08:19:00 IST 2014
[8 Jul 2014 12:10]
MySQL Verification Team
// 5.6.20 mysql> show variables like '%version%'; +-------------------------+---------------------------------------------------------+ | Variable_name | Value | +-------------------------+---------------------------------------------------------+ | innodb_version | 5.6.20 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.6.20-enterprise-commercial-advanced-log | | version_comment | MySQL Enterprise Server - Advanced Edition (Commercial) | | version_compile_machine | x86_64 | | version_compile_os | Linux | +-------------------------+---------------------------------------------------------+ 7 rows in set (0.00 sec)
[30 Jul 2014 11:53]
Daniel Price
Fixed as of the upcoming 5.6.21, 5.7.5 release, and here's the changelog entry: Attempting to perform operations on a timed out key would cause the "memcached" daemon to crash and restart. Thank you for the bug report.
[25 Sep 2014 12:07]
Laurynas Biveinis
revno: 6098 committer: Jimmy Yang <jimmy.yang@oracle.com> branch nick: mysql-5.6 timestamp: Wed 2014-07-30 09:35:07 +0800 message: fix Bug #19172013 - MEMCACHED DAEMON CRASHES AND RESTARTS ON SECOND ADD OPERATION rb://6067 approved by Sunny Bains