← Back to team overview

ius-community team mailing list archive

Re: php56u-pecl-memcache coredumps httpd

 

On 07/27/2015 07:51 PM, Ben Harper wrote:
Hey Jakov,

Thanks for taking the time to reach out to us about this issue.  Can we
assume this code and configuration worked with php55u with
php55u-pecl-memcache?  Also can we assume the code works without the
memcache module?  Have you tried the memcached module?

With these types of issues, we need to figure out is this an upstream
issue with the pecl module itself or an issue with the way the module is
packaged.  While I am not an expert with the memcache module, I don't
think this is issue with the way we package memcache.

Looking over the output, I do see you are running an older version of
PHP.  Have you tried with php56u-5.6.11?

Looking over bugs for the memache module[0], I don't see anything that
jumps out at me.  There are a few bugs that mention memcache_pool.c[1],
but I am not sure if any of those are related.  It might be worth
looking through those bugs.


I've made a little bit of a progress. I've tracked it down to symfony 1.4:

(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"


This is the PHP function from the file mentioned:

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

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

I guess I'll have to dig a bit deeper to understand what triggers the error :-/


References