Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343485

Summary: Memory leak in <=dev-php5/pecl-apc-3.1.4
Product: Gentoo Linux Reporter: A Collector <webmaster_gentoo>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description A Collector 2010-10-31 11:21:58 UTC
Upgrading APC from 3.0.19 -> 3.1.4 has started a memory leak which fills the APC cache until it stops being useful. Please see bug report here:

Reproducible: Sometimes

Steps to Reproduce:
Install the new APC and run the following PHP test script which will sometimes (but not always) answer NO to apc_delete()


function yesno($val) {
	if ($val) echo '<br/>Yes<br/>';
	else echo '<br/>NO<br/>';

$key = 'loloo';
echo 'Key is '. $key. '<br/>';
yesno(apc_store($key, 'dataaaaaa', 999));
yesno(apc_store($key, 'dataaaaaa', 999));

die('<br/>done'. date('c'));
Actual Results:  
Usually apc_delete() returns true as expected but at times it returns false and the keys persist in the cache.

Expected Results:  
apc_delete() should ALWAYS return true and keys should NOT persist in the cache.
Comment 1 Ofer Wald 2010-11-04 06:46:55 UTC
Had the same bug with this version (amd64 platform) It seems to be resolved in 3.1.5 though
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2010-11-04 09:04:42 UTC
As stated above, it should be fixed dev-php5/pecl-apc-3.1.5, which is in the tree.
Comment 3 A Collector 2010-12-06 18:52:55 UTC
Resolved in 3.1.5