|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-09-24 04:24 UTC] harry+pecl at local dot ch
Description: ------------ After upgrade from memcache 3.0.1 to 3.0.4 we noticed that restarting memcached daemons can cause clients to segfault. We haven't been able to narrow it down so far so can only give you general info. Traffic wise we're doing doing between 5 and 10 cache requests per second under normal traffic. On the client side we're only doing sets and gets. memcached version is 1.2.8 ( from danga ). PHP version 5.2.11 as Apache module. Each memcached client will have between 10-15 memcached daemons that it may connect to via http://www.php.net/memcache-addserver using persistent connections. Otherwise it's intermittent - restarting a memcached doesn't _always_ result in client segfaults but there is a high likelihood in the live environment ( have been unable to reproduce in dev environment ). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
I can reproduce SegFault with two unreachable Servers with multi get: Command line: php -r '$m = new Memcache(); $m->addServer("s1"); $m- >addServer("s2"); $m->get(array("k1","k2"));' Output: PHP Warning: MemcachePool::get(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Command line code on line 1 PHP Notice: MemcachePool::get(): Server s2 (tcp 11211, udp 0) failed with: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in Command line code on line 1 PHP Warning: MemcachePool::get(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Command line code on line 1 PHP Notice: MemcachePool::get(): Server s1 (tcp 11211, udp 0) failed with: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in Command line code on line 1 Speicherzugriffsfehler $ php -r '$m = new Memcache(); $m->addServer("s1"); $m- >addServer("s2"); $m->get(array("k1","k2"));' PHP Warning: MemcachePool::get(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Command line code on line 1 PHP Notice: MemcachePool::get(): Server s2 (tcp 11211, udp 0) failed with: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in Command line code on line 1 PHP Warning: MemcachePool::get(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Command line code on line 1 PHP Notice: MemcachePool::get(): Server s1 (tcp 11211, udp 0) failed with: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in Command line code on line 1 Speicherzugriffsfehler $ php --version PHP 5.3.3-6 with Suhosin-Patch (cli) (built: Dec 7 2010 12:47:03) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies $ dpkg -l php5* |grep ^ii ii php5-cli 5.3.3-6 command-line interpreter for the php5 scripting language ii php5-common 5.3.3-6 Common files for packages built from the php5 source ii php5-ldap 5.3.3-6 LDAP module for php5 ii php5-memcache 3.0.4-4 memcache extension module for PHP5