Bug #74213 [Fbk->NoF]: Esoteric file causes segfault with 7.1 && opcache

From: Date: Sun, 02 Jul 2017 04:22:34 +0000
Subject: Bug #74213 [Fbk->NoF]: Esoteric file causes segfault with 7.1 && opcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209771@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74213&edit=1 ID: 74213 Updated by: php-bugs@lists.php.net Reported by: georgestephanis at automattic dot com Summary: Esoteric file causes segfault with 7.1 && opcache -Status: Feedback +Status: No Feedback Type: Bug Package: opcache PHP Version: 7.1.2 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2017-06-23 15:37:42] nikic@php.net Can you please confirm that this issue has been resolved? ------------------------------------------------------------------------ [2017-03-20 17:26:05] nikic@php.net Most likely this has been fixed by https://github.com/php/php-src/commit/648b756f35fdfc1948126ce954a3f7d6bd479ba5 (which will be in 7.0.18 and 7.1.4). Your strace indicated that you indeed use the opcache file cache and the linked test script covers precisely your situation: https://github.com/php/php-src/blob/master/Zend/tests/unused_shared_static_variables.phpt ------------------------------------------------------------------------ [2017-03-20 16:50:05] georgestephanis at automattic dot com Howdy! I meant -- yes -- that the ini_set() would be in the file including test_class.php not in test_class.php directly. We've had reports of this in several environments thus far, and I've been able to duplicate it in testing in Siteground's 7.1 configuration. I'm not hugely intimately familiar with Siteground's setup -- perhaps it's contingent on the web server or fastcgi mode? ------------------------------------------------------------------------ [2017-03-07 11:08:54] spam2 at rhsoft dot net he means whatever file includes the code-snippet which is clear because otherwise ini_set() would not make any sense in context of diable opcache since it's too late - anways, no crash with 7.1.3RC1 [harry@rh:/www/beta.rhsoft.net/crash]$ cat test.php <?php require 'include.php'; [harry@rh:/www/beta.rhsoft.net/crash]$ cat include.php <?php class Test_Class { public static function init() { static $instance = NULL; $instance = new Test_Class(); return $instance; } } class Test_Class_Raw extends Test_Class {} [harry@rh:/www/beta.rhsoft.net/crash]$ php -v PHP 7.1.3RC1 (cli) (built: Feb 28 2017 12:34:57) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies [harry@rh:/www/beta.rhsoft.net/crash]$ ------------------------------------------------------------------------ [2017-03-07 10:56:26] andrew dot nester dot dev at gmail dot com I was trying to reproduce it but no success. Could you please describe exact steps you did to reproduces this issue? Thanks! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=74213 -- Edit this bug report at https://bugs.php.net/bug.php?id=74213&edit=1

« previous php.bugs (#209771) next »