Bug #78514 [NEW]: Preloading segfaults

From: Date: Sun, 08 Sep 2019 20:02:40 +0000
Subject: Bug #78514 [NEW]: Preloading segfaults
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222632@lists.php.net to get a copy of this message
From: kocsismate at woohoolabs dot com Operating system: Alpine Linux 3.10 PHP version: 7.4.0RC1 Package: Unknown/Other Function Bug Type: Bug Bug description:Preloading segfaults Description: ------------ I tried out preloading by generating the preload file for a personal project of mine using my DI container (https://github.com/woohoolabs/zen#generating-a-preload-file). After some struggle, I got it work, so I managed to preload all the files I wanted with PHP 7.4 beta 1 (via Docker). However, something could happen after some time because preloading stopped working, and I got a segfault on each PHP startup. I don't know if it is only a coincidence, but the first time I noticed it is around when I introduced property type declarations everywhere in my app and in some of my open-source libraries (which are also preloaded). Now, that I still have this problem on PHP 7.4 RC1, I thought it's time to report it. Test script: --------------- This is the most minimal example I could come up with: - Download and unzip the following gist: https://gist.github.com/kocsismate/d7f71f5da9e1cefbbdbee040b49c1984 - Run "composer install" - Run "docker-compose up" -- Edit bug report at https://bugs.php.net/bug.php?id=78514&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78514&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78514&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78514&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78514&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78514&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78514&r=support Expected behavior: https://bugs.php.net/fix.php?id=78514&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78514&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78514&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78514&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78514&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78514&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78514&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78514&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78514&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78514&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78514&r=mysqlcfg

« previous php.bugs (#222632) next »