Bug #80307 [Com]: Segfault in zend_execute when opcache preload enabled

From: Date: Fri, 13 Nov 2020 11:48:14 +0000
Subject: Bug #80307 [Com]: Segfault in zend_execute when opcache preload enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230318@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80307&edit=1

 ID:                 80307
 Comment by:         php at shyim dot de
 Reported by:        php at shyim dot de
 Summary:            Segfault in zend_execute when opcache preload
                     enabled
 Status:             Closed
 Type:               Bug
 Package:            opcache
 Operating System:   Ubuntu 20.04
 PHP Version:        8.0.0RC3
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Ups. That happens when the preload file does not exists. I will create a new bug.


Previous Comments:
------------------------------------------------------------------------
[2020-11-13 11:42:37] php at shyim dot de

With the built from your Commit anything worked on my side. With RC4 now php-fpm even does not
start. It stops with Exit Code 70. Is that known? I can share later a GDB Back trace

------------------------------------------------------------------------
[2020-11-05 15:39:49] nikic@php.net

@michael: I've cherry-picked the fix to the PHP-7.4 branch with https://github.com/php/php-src/commit/6808968c896a18d2b9f309b2fe63d529058b78b4,
as I do think it can occur there as well. This will be part of the PHP 7.4.13 release.

------------------------------------------------------------------------
[2020-11-05 14:04:09] michael dot zangerle at gmail dot com

To which PHP version as this fix applied? Because in the header and description it says 8.0.0RC ...
> PHP Version:	8.0.0RC3
> Tried my Symfony 5.1 project on PHP 8.0RC3, working in 7.4.

.. but in the example it says 7.4.
> Start web server 
> /opt/php-7.4/bin/php -S 0.0.0.0:7050 -t .
> curl localhost:7050 
> 
> => Segmentation fault...

The reason why I am asking is that I am experiencing the same problem with random trait methods
being called (as described by nikic) with Symfony 5.1, preloading and PHP 7.4.12. I do not
experience this with PHP 7.4.11.

------------------------------------------------------------------------
[2020-11-05 13:11:49] phil at phil-taylor dot com

Related To: Bug #80321

------------------------------------------------------------------------
[2020-11-05 12:03:25] cmb@php.net

Related To: Bug #80321

------------------------------------------------------------------------


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=80307


--
Edit this bug report at https://bugs.php.net/bug.php?id=80307&edit=1


Thread (13 messages)

« previous php.bugs (#230318) next »