Bug #71508 [NEW]: php-fpm segfaults with ondemand in __accept_nocancel/zend_signal_handler_defer
| From: | bluewind at xinu dot at | Date: | Wed, 03 Feb 2016 12:01:09 +0000 |
| Subject: | Bug #71508 [NEW]: php-fpm segfaults with ondemand in __accept_nocancel/zend_signal_handler_defer | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-199023@lists.php.net to get a copy of this message | ||
From: bluewind at xinu dot at
Operating system: Arch Linux
PHP version: 7.0.3RC1
Package: Reproducible crash
Bug Type: Bug
Bug description:php-fpm segfaults with ondemand in __accept_nocancel/zend_signal_handler_defer
Description:
------------
I'm running php 7.0.3 on Arch Linux and I see segfaults of php-fpm when
running with the ondemand pm. I do not see crashes with the dynamic pm.
The crash does not happen instantly and requests seem to be served as
expected. Some 10 or 20 seconds after the requests it crashes. I'd guess
that's the time when ondemand starts shutting down unused workers.
I have also seen these with 7.0.2, but not with 5.6.17 or any other
version in the 5.x series.
If you need more info or are unable to reproduce please tell me.
This might be related to https://bugs.php.net/bug.php?id=64984
Test script:
---------------
Use php-fpm with an fpm config like this, make a request and wait a
bit.
[web-admin]
listen = /var/run/php-fpm/$pool-fpm.sock
listen.owner = http
listen.group = http
listen.mode = 0660
user = $pool
group = web-admin
pm = ondemand
pm.max_children = 50
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 2000
catch_workers_output=yes
php_admin_value[session.save_path] = "/var/lib/php_sessions/$pool"
Expected result:
----------------
No crash
Actual result:
--------------
coredump of php-fpm
#0 0x00007f77404305f8 in raise () from /usr/lib/libc.so.6
#1 0x000000000083df75 in zend_signal_handler (signo=3,
siginfo=0x7fff565db9f0, context=0x7fff565db8c0) at
/build/php/src/php-7.0.3/Zend/zend_signal.c:178
#2 0x000000000083db48 in zend_signal_handler_defer (signo=3,
siginfo=0x7fff565db9f0, context=0x7fff565db8c0) at
/build/php/src/php-7.0.3/Zend/zend_signal.c:89
#3 <signal handler called>
#4 0x00007f77404e6df0 in __accept_nocancel () from /usr/lib/libc.so.6
#5 0x00000000008cd633 in fcgi_accept_request (req=0x2ab8100) at
/build/php/src/php-7.0.3/main/fastcgi.c:1396
#6 0x00000000008dc99f in main (argc=4, argv=0x7fff565dc4a8) at
/build/php/src/php-7.0.3/sapi/fpm/fpm/fpm_main.c:1872
--
Edit bug report at https://bugs.php.net/bug.php?id=71508&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71508&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71508&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71508&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71508&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71508&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71508&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71508&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71508&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71508&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71508&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71508&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71508&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71508&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71508&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71508&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71508&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71508&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71508&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71508&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71508&r=mysqlcfg