Web lists-archives.com

[PHP] Symfony 1.4 segfaulting Apache on php-pecl-memcache 3.0.8

Hi guys,

I've got a coredump of apache running with mod_php. 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...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php