Bug #77048 [NEW]: opcache segfault when enabled

From: Date: Mon, 22 Oct 2018 22:41:16 +0000
Subject: Bug #77048 [NEW]: opcache segfault when enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217658@lists.php.net to get a copy of this message
From: chris at policyreporter dot com Operating system: Ubuntu 18.04 LTS PHP version: 7.2.11 Package: opcache Bug Type: Bug Bug description:opcache segfault when enabled Description: ------------ I set up a new server on Ubuntu 18.04 w/ Apache 2.4 and PHP 7.2.11. When attempting to access a Zend Framework site, I noted endless "no response received" errors. When I looked at Apache's error log, I saw a string of seg fault errors: [Mon Oct 22 20:31:13.154847 2018] [core:notice] [pid 22532] AH00051: child pid 23483 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Mon Oct 22 20:31:13.157075 2018] [core:notice] [pid 22532] AH00051: child pid 23494 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Mon Oct 22 20:31:21.168845 2018] [core:notice] [pid 22532] AH00051: child pid 23497 exit signal Segmentation fault (11), possible coredump in /etc/apache2 [Mon Oct 22 20:31:21.168980 2018] [core:notice] [pid 22532] AH00051: child pid 23498 exit signal Segmentation fault (11), possible coredump in /etc/apache2``` After much debugging and troubleshooting, I narrowed the issue down to opcache. If I comment out zend_extension=opcache.so and instead put opcache.enable=0 in /etc/php/7.2/apache2/conf.d/10-opcache.ini and restart apache2, the segfaults cease. Additionally, if opcache is enabled but the xdebug extension is also enabled, there are no segfaults. -- Edit bug report at https://bugs.php.net/bug.php?id=77048&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77048&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77048&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77048&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77048&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77048&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77048&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77048&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77048&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77048&r=support Expected behavior: https://bugs.php.net/fix.php?id=77048&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77048&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77048&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77048&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77048&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77048&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77048&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77048&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77048&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77048&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77048&r=mysqlcfg

« previous php.bugs (#217658) next »