Bug #75092 [Opn->Csd]: Values for interned_strings_buffer and memory_consumption can lead to crash

From: Date: Sun, 17 Dec 2017 21:49:48 +0000
Subject: Bug #75092 [Opn->Csd]: Values for interned_strings_buffer and memory_consumption can lead to crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213155@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75092&edit=1 ID: 75092 Updated by: nikic@php.net Reported by: j3mata at gmail dot com Summary: Values for interned_strings_buffer and memory_consumption can lead to crash -Status: Open +Status: Closed Type: Bug Package: opcache Operating System: CentOS 6 PHP Version: 7.0.22 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: It's a bit of a mess ... in 7.0-7.2 interned_strings_buffer allocates approximately 2x the specified memory -- the value is interpreted as the total amount of memory for the interned strings, *not* counting additional management structures. In 7.3 this setting will go back to specifying the full memory requirement including management structures. Previous Comments: ------------------------------------------------------------------------ [2017-08-18 10:28:42] j3mata at gmail dot com Description: ------------ Hello, I have came accross this issue after we have recieved random complains for 500ISE errors, which are solved after increasing opcache.interned_strings_buffer value. Through series of tests, it seems that for certain combination of values for opcache.interned_strings_buffer and opcache.memory_consumption can lead to error: Fatal Error Zend OPcache cannot allocate buffer for interned strings. I am reproducing it by this formul ( X is 8, 16, 32 etc. ): opcache.memory_consumption = X opcache.interned_strings_buffer = (X*7/8)/2 For every value for opcache.interned_strings_buffer >= (X*7/8)/2 the above error is produced. Tested on PHP versions 7.0.22 and 7.1.8, Apache/2.4.27 Regards, Ilian. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75092&edit=1

« previous php.bugs (#213155) next »