Bug #66461 [NEW]: PHP crashes if opcache.interned_strings_buffer=0

From: Date: Fri, 10 Jan 2014 18:45:44 +0000
Subject: Bug #66461 [NEW]: PHP crashes if opcache.interned_strings_buffer=0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183699@lists.php.net to get a copy of this message
From: Terry at ellisons dot org dot uk Operating system: N/A PHP version: master-Git-2014-01-10 (Git) Package: opcache Bug Type: Bug Bug description:PHP crashes if opcache.interned_strings_buffer=0 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 bug report at https://bugs.php.net/bug.php?id=66461&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66461&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66461&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66461&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66461&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66461&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66461&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66461&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66461&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66461&r=support Expected behavior: https://bugs.php.net/fix.php?id=66461&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66461&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66461&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66461&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66461&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66461&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66461&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66461&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66461&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66461&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66461&r=mysqlcfg

« previous php.bugs (#183699) next »