Bug #78225 [NEW]: Preloading Laravel results in a segfault

From: Date: Fri, 28 Jun 2019 09:51:28 +0000
Subject: Bug #78225 [NEW]: Preloading Laravel results in a segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221536@lists.php.net to get a copy of this message
From: brent at spatie dot be Operating system: macOS Mojave PHP version: 7.4.0alpha2 Package: opcache Bug Type: Bug Bug description:Preloading Laravel results in a segfault Description: ------------ I'm trying to preload Laravel. I've compiled php-7.4.0alpha2 using the following configure command: ``` ./configure \ OPENSSL_CFLAGS=-I/usr/local/opt/openssl/include \ OPENSSL_LIBS="-L/usr/local/opt/openssl -lssl -lcrypto" \ '--prefix=/Users/brent/dev/php/build/php-74-alpha2' \ '--with-config-file-path=/Users/brent/dev/php/build/php-74-alpha2/etc' \ '--with-config-file-scan-dir=/Users/brent/dev/php/build/php-74-alpha2/etc/conf.d' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-dba' \ '--enable-exif' \ '--enable-fpm' \ '--enable-mysqlnd' \ '--enable-pcntl' \ '--with-curl=/usr/local/opt/curl-openssl' \ '--with-iconv=/Library/Developer/CommandLineTools/usr' \ '--with-layout=GNU' \ '--with-mysql-sock=/tmp/mysql.sock' \ '--with-mysqli=mysqlnd' \ '--with-openssl=shared' \ '--with-openssl-dir=/usr/local/opt/openssl' \ '--with-password-argon2=/usr/local/opt/argon2' \ '--with-pdo-mysql=mysqlnd' \ '--with-pdo-sqlite=/usr/local/opt/sqlite' \ '--with-sodium=/usr/local/opt/libsodium' \ '--with-sqlite3=/usr/local/opt/sqlite' \ ``` The code to try it out can be found here: https://github.com/brendt/laravel-preload This is the preload script: https://github.com/brendt/laravel-preload/blob/master/preload.php After all files were preloaded, php-fpm crashes with the following error: ``` [1] 61893 segmentation fault ./php-fpm --nodaemonize ``` -- Edit bug report at https://bugs.php.net/bug.php?id=78225&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78225&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78225&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78225&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78225&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78225&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78225&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78225&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78225&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78225&r=support Expected behavior: https://bugs.php.net/fix.php?id=78225&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78225&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78225&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78225&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78225&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78225&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78225&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78225&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78225&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78225&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78225&r=mysqlcfg

« previous php.bugs (#221536) next »