Bug #79231 [NEW]: Segfault when preloading via php-fpm
| From: | brent at spatie dot be | Date: | Wed, 05 Feb 2020 12:18:29 +0000 |
| Subject: | Bug #79231 [NEW]: Segfault when preloading via php-fpm | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225375@lists.php.net to get a copy of this message | ||
From: brent at spatie dot be
Operating system: Ubuntu 18.04.3 LTS
PHP version: 7.4.2
Package: opcache
Bug Type: Bug
Bug description:Segfault when preloading via php-fpm
Description:
------------
I've been trying out preloading, and am running into a segfault using
PHP 7.4.2, only when using php-fpm.
I've been using this preload script:
https://github.com/brendt/aggregate.stitcher.io/blob/master/preload.php
When using this preload script via PHP's built-in webserver, all works
fine. For reference, this is the command I used to test this: `php -c
/etc/php/7.4/fpm/php.ini -S aggregate.stitcher.io:8001 -t public -d
opcache.preload=preload.php -d opcache.user=forge`
However, when using the same preloading script via php-fpm, a segfault
occurs. Here's a snippet from the php-fpm logs, this message gets
repeated over and over again:
```
[05-Feb-2020 12:06:01] WARNING: [pool www] child 2961 exited on signal
11 (SIGSEGV - core dumped) after 0.942953 seconds from start
[05-Feb-2020 12:06:01] NOTICE: [pool www] child 2972 started
[05-Feb-2020 12:06:01] WARNING: [pool www] child 2963 exited on signal
11 (SIGSEGV - core dumped) after 0.947206 seconds from start
[05-Feb-2020 12:06:01] NOTICE: [pool www] child 2977 started
[05-Feb-2020 12:06:01] WARNING: [pool www] child 2965 exited on signal
11 (SIGSEGV - core dumped) after 1.009507 seconds from start
[05-Feb-2020 12:06:01] NOTICE: [pool www] child 2979 started
```
Checking php-fpm's status using
sudo service php7.4-fpm status after
restarting it, I get the following output:
```
â¦
Feb 05 12:04:42 brent php-fpm7.4[2039]: [Preloader] Preloaded
Illuminate\Mail\TransportManager
Feb 05 12:04:42 brent php-fpm7.4[2039]: [Preloader] Preloaded
Illuminate\Mail\Markdown
Feb 05 12:04:42 brent php-fpm7.4[2039]: [Preloader] Preloaded 1127
classes
Feb 05 12:04:42 brent systemd[1]: Started The PHP 7.4 FastCGI Process
Manager.
```
So php-fpm manages to start, it only crashes as soon as a request
arrives at the server.
Anything I can do to provide more information?
--
Edit bug report at https://bugs.php.net/bug.php?id=79231&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79231&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79231&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79231&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79231&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79231&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79231&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79231&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79231&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79231&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79231&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79231&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79231&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79231&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79231&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79231&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79231&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79231&r=mysqlcfg