Bug #75092 [NEW]: Values for interned_strings_buffer and memory_consumption can lead to crash
| From: | j3mata at gmail dot com | Date: | Fri, 18 Aug 2017 10:28:43 +0000 |
| Subject: | Bug #75092 [NEW]: Values for interned_strings_buffer and memory_consumption can lead to crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-210732@lists.php.net to get a copy of this message | ||
From: j3mata at gmail dot com
Operating system: CentOS 6
PHP version: 7.0.22
Package: opcache
Bug Type: Bug
Bug description:Values for interned_strings_buffer and memory_consumption can lead to crash
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 bug report at https://bugs.php.net/bug.php?id=75092&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75092&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75092&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75092&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75092&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75092&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75092&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75092&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75092&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75092&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75092&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75092&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75092&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75092&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75092&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75092&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75092&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75092&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75092&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75092&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75092&r=mysqlcfg