Bug #78175 [NEW]: Preloading segfaults at preload time and at runtime

From: Date: Mon, 17 Jun 2019 12:48:06 +0000
Subject: Bug #78175 [NEW]: Preloading segfaults at preload time and at runtime
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221344@lists.php.net to get a copy of this message
From:             nicolas dot grekas+php at gmail dot com
Operating system: 
PHP version:      7.4.0alpha1
Package:          opcache
Bug Type:         Bug
Bug description:Preloading segfaults at preload time and at runtime

Description:
------------
From the code in this archive:
https://send.firefox.com/download/f87c7176853e1dfa/#YxTCKp75r1nMwmq-PJfnSg

Two separate crashes here:

Cannot load the autoloader
--------------------------

Run `bin/console c:c && php
-dopcache.preload=var/cache/dev/srcApp_KernelDevDebugContainer.preload.php
-S localhost:8000` in this directory.

This should spawn a web server with two ignorable warnings saying "Can't
preload already declared class class@anonymous".

Then in another console run php info.php.

This makes the server process segfault.

Cannot run preloading script
----------------------------

Add a return; line 321 in
vendor/symfony/dependency-injection/Dumper/PhpDumper.php (just after
$r->getDefaultProperties();).

Run `bin/console c:c && php
-dopcache.preload=var/cache/dev/srcApp_KernelDevDebugContainer.preload.php
-S localhost:8000` in this directory.

This fails with a segfault.



-- 
Edit bug report at https://bugs.php.net/bug.php?id=78175&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=78175&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=78175&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=78175&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=78175&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=78175&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=78175&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=78175&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=78175&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=78175&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=78175&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=78175&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=78175&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=78175&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78175&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=78175&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=78175&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=78175&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78175&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=78175&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=78175&r=mysqlcfg



Thread (14 messages)

« previous php.bugs (#221344) next »