Bug #78995 [Com]: opcache.preloading results in zend_mm_heap corrupted
| From: | tobias dot nyholm at gmail dot com | Date: | Fri, 18 Dec 2020 16:05:55 +0000 |
| Subject: | Bug #78995 [Com]: opcache.preloading results in zend_mm_heap corrupted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231160@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78995&edit=1
ID: 78995
Comment by: tobias dot nyholm at gmail dot com
Reported by: patrick dot fazzi at ped dot technology
Summary: opcache.preloading results in zend_mm_heap corrupted
Status: Open
Type: Bug
Package: opcache
Operating System: Ubuntu 18.4
PHP Version: 7.4.1
Block user comment: N
Private report: N
New Comment:
In a different application I got more
zend_mm_heap corrupted errors.
The application seams to be running fine, but having a corrupted heap is never fun.
After disabling preloading, the error message went away. Ideally I'll provide you with a small
reproducer, but I have not been able to create one. The application in question is open sourced and
running on Symfony cloud.
Related PR: https://github.com/carsonbot/carsonbot/pull/145
PHP 7.4.11 (cli) ( ZTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.11, Copyright (c), by Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2020-01-28 16:48:21] anhchienhoang at gmail dot com
@nikic yes! I put www-data. Thanks for your info.
------------------------------------------------------------------------
[2020-01-28 16:05:58] nikic@php.net
@anhchienhoang at gmail dot com: Do you use opcache.preload_user? If you do, then the crashes are
due to bug #79128.
------------------------------------------------------------------------
[2020-01-28 15:52:30] anhchienhoang at gmail dot com
@nikic I got crashes afterwards, php-fpm stop working.
------------------------------------------------------------------------
[2020-01-28 13:36:34] nikic@php.net
@anhchienhoang at gmail dot com: These warnings can be ignored. Or do you get a crash afterwards?
------------------------------------------------------------------------
[2020-01-28 13:29:01] anhchienhoang at gmail dot com
I have the same issue:
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Symfony\Bundle\FrameworkBundle\DependencyInjection\CompatibilityServiceSubscriberInterface in
/project/vendor/symfony/framework-bundle/DependencyInjection/CompatibilityServiceSubscriberInterface.php
on line 28
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload unlinked class
class@anonymous: Unknown interface Psr\Container\ContainerExceptionInterface in
/project/vendor/symfony/service-contracts/ServiceLocatorTrait.php on line 119
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload unlinked class
class@anonymous: Unknown interface Psr\Container\NotFoundExceptionInterface in
/project/vendor/symfony/service-contracts/ServiceLocatorTrait.php on line 113
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Doctrine\Common\Persistence\ObjectManager in
/project/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManager.php on line 13
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Doctrine\Common\Persistence\AbstractManagerRegistry in
/project/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php on
line 13
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Doctrine\Common\Persistence\ManagerRegistry in
/project/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ManagerRegistry.php on line 13
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Doctrine\Common\Persistence\ConnectionRegistry in
/project/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ConnectionRegistry.php on line
13
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload already declared
class Symfony\Contracts\EventDispatcher\EventDispatcherInterface in
/project/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php on line 41
[28-Jan-2020 13:21:50] NOTICE: PHP message: PHP Warning: Can't preload unlinked class
class@anonymous: Unknown parent Symfony\Component\Config\ConfigCache in
/project/vendor/symfony/http-kernel/Kernel.php on line 540
php -v
PHP 7.4.2 (cli) (built: Jan 23 2020 11:21:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.2, Copyright (c), by Zend Technologies
with Xdebug v2.9.1, Copyright (c) 2002-2020, by Derick Rethans
------------------------------------------------------------------------
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=78995
--
Edit this bug report at https://bugs.php.net/bug.php?id=78995&edit=1