Bug #79643 [NEW]: PHP with Opcache crashes when a file with specific name is included

From: Date: Wed, 27 May 2020 13:21:53 +0000
Subject: Bug #79643 [NEW]: PHP with Opcache crashes when a file with specific name is included
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227202@lists.php.net to get a copy of this message
From: pluczkiewicz at wayfair dot com Operating system: Linux PHP version: 7.4.6 Package: opcache Bug Type: Bug Bug description:PHP with Opcache crashes when a file with specific name is included Description: ------------ PHP segfaults when a file with a very specific name is included, followed by another file (the first path must be exactly as it is in the test script, for the second one I had more luck with random values). I have tested 7.3.0, 7.4.3 and 7.4.6, all of them are segfaulting. opcache.interned_strings_buffer=0 seems to be required to get the segfault. Test script: --------------- Opcache config: ``` opcache.enable=On opcache.enable_cli=On opcache.interned_strings_buffer=0 opcache.max_accelerated_files=4000 ``` Script itself: ``` <?php require_once '/wayfair/data/codebase/php/includes/filesystem/temporary_local_storage.php'; require_once 'rNSSDJBm2jVwL899rn2rA4g0PdC8Pb0S4mrd5Xfsqq00qdaaOW2PkZDOelKbI26iE64oYvrk7l'; echo 'NO CRASH'; ``` Code on GitHub: https://github.com/Agares/opcache-bug-repro (run with docker build -t opcache_crash . && docker run opcache_crash) Actual result: -------------- Segfault -- Edit bug report at https://bugs.php.net/bug.php?id=79643&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79643&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79643&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79643&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79643&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79643&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79643&r=support Expected behavior: https://bugs.php.net/fix.php?id=79643&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79643&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79643&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79643&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79643&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79643&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79643&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79643&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79643&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79643&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79643&r=mysqlcfg

« previous php.bugs (#227202) next »