Package: php-apcu
Version: 5.1.8+4.0.11-1
Severity: grave
Tags: patch fixed-upstream

I had originally reported this to ubuntu because we first noticed it on a 
machine running ubuntu, however, ubuntu doesnt seem to maintain this pkg so
therefore I am reporting this here.

After upgrading our testing server to bionic, our web application stopped
responding entirely after the second request. We traced this to a problem in 
php-apcu where it would block upon the second call to apcu_entry and completely
lock up the php processes causing the server to become unresponsive to any 
further requests.

This issue was already reported and fixed upstream (release 5.1.11) and I
have attached the diff for the corresponding commit, though I would like to
note that there have been 3 bugfix releases since the packaged version (5.1.9).

Upstream issue: https://github.com/krakjoe/apcu/issues/246

Affected systems: Anything running apcu with either php-fpm or apache with
                  mod-php.


diff --git a/apc_cache.c b/apc_cache.c
index 3892c9e..8605525 100644
--- a/apc_cache.c
+++ b/apc_cache.c
@@ -1910,7 +1910,7 @@ PHP_APCU_API void apc_cache_entry(apc_cache_t *cache, zval *key, zend_fcall_info
 				}
 			}
 		} else apc_cache_fetch_internal(cache, Z_STR_P(key), entry, now, &return_value);
-	}, apc_cache_entry_try_begin());
+	}, apc_cache_entry_try_end());
 }/*}}}*/
 #undef apc_cache_entry_try_begin
 #undef apc_cache_entry_try_end

Reply via email to