php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70216 memcache coredumps with symfony 1.4
Submitted: 2015-08-08 14:01 UTC Modified: 2021-03-25 16:38 UTC
From: jsosic at gmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.6.12 OS: CentOS 6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsosic at gmail dot com
New email:
PHP Version: OS:

 

 [2015-08-08 14:01 UTC] jsosic at gmail dot com
Description:
------------
This is backtrace:

(gdb) bt
#0  mmc_pool_select (pool=0x7fa0473d4600) at /usr/src/debug/php-pecl-memcache-3.0.8/NTS/memcache_pool.c:1422
#1  0x00007fa03091bcb8 in mmc_pool_run (pool=0x7fa0473d4600) at /usr/src/debug/php-pecl-memcache-3.0.8/NTS/memcache_pool.c:1674
#2  0x00007fa030915883 in zif_memcache_get (ht=<value optimized out>, return_value=<value optimized out>, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>,
    return_value_used=<value optimized out>) at /usr/src/debug/php-pecl-memcache-3.0.8/NTS/memcache.c:1687
#3  0x00007fa03d28a74c in xdebug_handle_hit_value@plt () from /usr/lib64/php/modules/xdebug.so
#4  0x00007fa04753db10 in ?? ()
#5  0x000000004753db10 in ?? ()
#6  0x0000000000000000 in ?? ()

(gdb) print (char *)executor_globals.active_op_array->function_name
$16 = 0x7fa02899a668 "get"

(gdb) print (char *)executor_globals.active_op_array->filename
$17 = 0x7fa028997460 "/home/dev/site-php56/vendor/symfony/symfony1/lib/cache/sfMemcacheCache.class.php"

(gdb) quit


This the PHP function which triggers the error:

 /**
  * @see sfCache
  */
  public function get($key, $default = null)
  {
    $value = $this->memcache->get($this->getOption('prefix').$key);

    return false === $value ? $default : $value;
  }



Did anyone experience similar errors? Do you have any suggestions how to proceed?


Just a quick sidenote - everything works perfectly with php 5.4 and same version of memcache module... 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-25 16:38 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:38 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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC