php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75092 Values for interned_strings_buffer and memory_consumption can lead to crash
Submitted: 2017-08-18 10:28 UTC Modified: -
From: j3mata at gmail dot com Assigned:
Status: Open Package: opcache
PHP Version: 7.0.22 OS: CentOS 6
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-08-18 10:28 UTC] 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. 



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC