|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-06-26 05:56 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 13:00:01 2025 UTC |
I experience a similar problem on a SmartOS smartmachine (like Solaris zone) where the master process seems to crash. Difference is that events.mechanism is set to /dev/poll, not to poll. With activated debug log, the logs are full with such entries: ------------- [06-May-2013 09:28:15.974674] WARNING: pid 7144, fpm_event_devpoll_wait(), line 166: /dev/poll: ioctl() returns 22 [06-May-2013 09:28:15.974699] WARNING: pid 7144, fpm_event_devpoll_wait(), line 166: /dev/poll: ioctl() returns 22 [06-May-2013 09:28:15.974726] WARNING: pid 7144, fpm_event_devpoll_wait(), line 166: /dev/poll: ioctl() returns 22 [06-May-2013 09:28:15.974747] WARNING: pid 7144, fpm_event_devpoll_wait(), line 166: /dev/poll: ioctl() returns 22 Eventually, php-fpm crashes. Dtrace shows the following stack info: ------------- 12 6130 getpid:entry libc.so.1`getpid+0xa php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6430 clock_gettime:entry libc.so.1`__clock_gettime+0x28 php-fpm`fpm_clock_get+0x24 php-fpm`fpm_event_loop+0x1b7 php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6130 getpid:entry libc.so.1`getpid+0xa php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6430 clock_gettime:entry libc.so.1`__clock_gettime+0x28 php-fpm`fpm_clock_get+0x24 php-fpm`fpm_event_loop+0xa6 php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6186 ioctl:entry libc.so.1`ioctl+0xa php-fpm`fpm_event_loop+0x16f php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6116 gtime:entry libc.so.1`__time+0xa libc.so.1`tzset+0x26 libc.so.1`strftime+0x2d php-fpm`zlog_print_time+0x3f php-fpm`zlog_ex+0x348 php-fpm`fpm_event_devpoll_wait+0x106 php-fpm`fpm_event_loop+0x16f php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c 12 6100 write:entry libc.so.1`__write+0xa php-fpm`zlog_ex+0x189 php-fpm`fpm_event_devpoll_wait+0x106 php-fpm`fpm_event_loop+0x16f php-fpm`fpm_run+0x67 php-fpm`main+0x581 php-fpm`_start+0x6c Not sure, if this the same source of bug, but the relevant function's name is the same (just replace epoll through devpoll): fpm_event_devpoll_wait.