Bug #66461 [Csd]: PHP crashes if opcache.interned_strings_buffer=0
| From: | dmitry@php.net | Date: | Wed, 15 Jan 2014 06:18:26 +0000 |
| Subject: | Bug #66461 [Csd]: PHP crashes if opcache.interned_strings_buffer=0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183801@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66461&edit=1
ID: 66461
Updated by: dmitry@php.net
Reported by: Terry at ellisons dot org dot uk
Summary: PHP crashes if opcache.interned_strings_buffer=0
Status: Closed
Type: Bug
Package: opcache
Operating System: N/A
PHP Version: master-Git-2014-01-10 (Git)
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
There was a ZTS fix after this one.
Previous Comments:
------------------------------------------------------------------------
[2014-01-15 05:33:54] phpdev at ehrhardt dot nl
The fix for this bug leads to segfaults in PHP 5.5 TS x86 on Windows.
------------------------------------------------------------------------
[2014-01-13 18:00:24] ab@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ce2f024e9ff4283d22b30d0c20f83c976fb7d3ed
Log: Fixed bug #66461 (PHP crashes if opcache.interned_strings_buffer=0)
------------------------------------------------------------------------
[2014-01-13 14:07:38] dmitry@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ce2f024e9ff4283d22b30d0c20f83c976fb7d3ed
Log: Fixed bug #66461 (PHP crashes if opcache.interned_strings_buffer=0)
------------------------------------------------------------------------
[2014-01-10 18:45:44] Terry at ellisons dot org dot uk
Description:
------------
On non-ZTS builds, PHP segfaults if opcache.interned_strings_buffer=0. This is because bult-in
initialisation assumes that the PHP interned_string pool can be succcessfully copied to SHM.
As with the opcache.memory_consumption and opcache.max_accelerated_files INI parameters,
opcache.interned_strings_buffer should have a validated minimum. In this case of 1 (Mb).
Test script:
---------------
php56 -d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.interned_strings_buffer=0 -r
''
Expected result:
----------------
PHP should gracefully handle any valid INI parameter
Actual result:
--------------
You get a Segfault.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66461&edit=1