Bug #62418 [Com]: php-fpm master process crashes
| From: | webmaster at jbfavre dot org | Date: | Tue, 12 Feb 2013 10:59:50 +0000 |
| Subject: | Bug #62418 [Com]: php-fpm master process crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176574@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62418&edit=1
ID: 62418
Comment by: webmaster at jbfavre dot org
Reported by: php at scratchspace dot com
Summary: php-fpm master process crashes
Status: Feedback
Type: Bug
Package: FPM related
Operating System: CentOS 6.2 x86_x64
PHP Version: 5.3.14
Block user comment: N
Private report: N
New Comment:
Hello,
We have the same problem, with PHP 5.3.21 behind Nginx 1.2.6.
Happens, sometimes, at PHP-FPM reload, after updating the code.
We're running a Symfony web app, on Ubuntu 10.04 Lucid with home-made PHP packages.
Enabled modules
---------------
amqp 1.0.9
apc 3.1.9
curl 5.3.21
gd 5.3.21
geoip 1.0.8
igbinary 1.1.1
intl 5.3.21
memcached 2.1.0
mongo 1.3.0
mysql 5.3.21
pinba 1.1.0
redis 2.2.2
Have just modified FPM configuration to use 'poll' instead of default 'epoll'.
Will see what happen.
2 backtraces available (I can provide coredumps upon request)
------------------------------------------------------------
###############################
#0 0x0000444c48434749 in ?? ()
#1 0x0000000000761703 in fpm_event_epoll_wait (queue=0x1f270e8, timeout=3) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/events/epoll.c:143
#2 0x0000000000755e0f in fpm_event_loop (err=0) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm_events.c:403
#3 0x0000000000750d67 in fpm_run (max_requests=0x7fff3704f79c) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm.c:113
#4 0x000000000075872e in main (argc=3, argv=0x7fff37051908) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm_main.c:1838
###############################
#0 0x00000000007558d6 in fpm_event_fire (ev=0x2ae4d78) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm_events.c:459
#1 0x0000000000761703 in fpm_event_epoll_wait (queue=0x2ae4d78, timeout=3) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/events/epoll.c:143
#2 0x0000000000755e0f in fpm_event_loop (err=0) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm_events.c:403
#3 0x0000000000750d67 in fpm_run (max_requests=0x7fff94e7286c) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm.c:113
#4 0x000000000075872e in main (argc=3, argv=0x7fff94e749d8) at
/tmp/buildd/php5-5.3.21/sapi/fpm/fpm/fpm_main.c:1838
Regards,
Jean Baptiste Favre
Previous Comments:
------------------------------------------------------------------------
[2012-07-04 10:30:04] fat@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
If you were able to give us a complete and detailed stack trace it would be
useful.
thx
------------------------------------------------------------------------
[2012-06-27 20:10:08] rasmus@php.net
Not sure. Many people out there run with epoll without problems.
------------------------------------------------------------------------
[2012-06-27 18:28:14] php at scratchspace dot com
We've been up and running for 24 hours with "events.mechanism = poll" and no
problems. Let's give it a couple of days to be sure this workaround works. Is this
issue specific to epoll and the way we have php-fpm configured (to use minimal
resources), or is this is a bug in php-fpm that can ultimately be fixed?
------------------------------------------------------------------------
[2012-06-26 06:10:02] rasmus@php.net
Could you check if it is related to epoll? In your php-fpm.conf file, set:
events.mechanism = poll
to try with "poll" instead. You can also try setting it to "select"
------------------------------------------------------------------------
[2012-06-26 05:56:45] php at scratchspace dot com
Description:
------------
php-fpm master process crashes randomly on lightly loaded server running
nginx/0.8.54 with various CMS applications. It is unknown how to reproduce the
crash, but occurs in both php 5.3.13 and 5.3.14.
Actual result:
--------------
5.3.14 backtrace
Core was generated by `php-fpm:'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000016b5300 in ?? ()
#1 0x00000000006e02f3 in fpm_event_epoll_wait (queue=<value optimized out>,
timeout=<value optimized out>)
at /usr/src/debug/php-5.3.14/sapi/fpm/fpm/events/epoll.c:143
#2 0x00000000006d508f in fpm_event_loop (err=0) at /usr/src/debug/php-
5.3.14/sapi/fpm/fpm/fpm_events.c:401
#3 0x00000000006d01f7 in fpm_run (max_requests=0x7fffd103136c) at
/usr/src/debug/php-5.3.14/sapi/fpm/fpm/fpm.c:110
#4 0x00000000006d79a4 in main (argc=1, argv=0x7fffd10334d8) at
/usr/src/debug/php-5.3.14/sapi/fpm/fpm/fpm_main.c:1778
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62418&edit=1