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
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:
11 + 42 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC