php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59626 Segmentaion fault for the same servers in pool
Submitted: 2011-02-16 12:50 UTC Modified: 2021-03-25 16:30 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: andrey at niakhaichyk dot org Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.5 OS: Gentoo x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
12 + 17 = ?
Subscribe to this entry?

 
 [2011-02-16 12:50 UTC] andrey at niakhaichyk dot org
Description:
------------
When I add the same server to pool and use persistance connection it will generate segmentation fault for getExtendedStats

Reproduce code:
---------------
    $memcache_obj = new Memcache;
    $memcache_obj->addServer('localhost', 11211);
    $memcache_obj->addServer('localhost', 11211);
    //$memcache_obj->addServer('failed_host', 11211);
    
    $stats = $memcache_obj->getExtendedStats();
    print_r($stats);

Expected result:
----------------
No segmentation fault

Actual result:
--------------
segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-21 19:24 UTC] shawn at digitalpoint dot com
We had the same thing happening without persistent connections 
when upgrading to memcache 3.0.x.  PHP version 5.3.6, 
memcached 1.4.5 and memcache version 3.0.6.  Rolling memcache 
back to 2.2.6 fixed it.
 [2021-03-25 16:30 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:30 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 09 08:01:23 2021 UTC