|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-06 17:58 UTC] tony2001 at phpclub dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 16:00:01 2025 UTC |
Description: ------------ After first run of pconnect and after memcached server restart, pecl-memcache produce a core dump. That's because version=NULL and efree() try to free NULL pointer. GDB: (gdb) bt full #0 0x285f7e1e in ?? () from /usr/local/libexec/apache2/libphp5.so No symbol table info available. #1 0x28e64aba in mmc_open (mmc=0x840a000, force_connect=1, error_string=0xbfbfc634, errnum=0xbfbfc640) at /usr/ports/databases/pecl-memcache/work/memcache-2.0.1/memcache.c:583 version = 0x0 #2 0x28e67453 in php_mmc_connect (ht=2, return_value=0x8510b24, return_value_ptr=0x0, this_ptr=0x8510a24, return_value_used=1, persistent=1) at /usr/ports/databases/pecl-memcache/work/memcache-2.0.1/memcache.c:1471 mmc_object = (zval *) 0x8510a24 mmc = (mmc_t *) 0x840a000 pool = (mmc_pool_t *) 0x9 errnum = 0 host_len = 9 host = 0x85107e4 "localhost" error_string = 0x0 port = 11211 timeout = 1 #3 0x28e675c3 in zif_memcache_pconnect (ht=2, return_value=0x8510b24, return_value_ptr=0x0, this_ptr=0x8510a24, return_value_used=1) at /usr/ports/databases/pecl-memcache/work/memcache-2.0.1/memcache.c:1512 No locals. #4 0x2862f636 in ?? () from /usr/local/libexec/apache2/libphp5.so No symbol table info available. -- FIX: if (version) efree(version);