Bug #62886 [Asn->Fbk]: PHP-FPM may segfault/hang on startup
| From: | fat@php.net | Date: | Thu, 23 Aug 2012 22:55:51 +0000 |
| Subject: | Bug #62886 [Asn->Fbk]: PHP-FPM may segfault/hang on startup | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172848@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62886&edit=1
ID: 62886
Updated by: fat@php.net
Reported by: pierre at archlinux dot de
Summary: PHP-FPM may segfault/hang on startup
-Status: Assigned
+Status: Feedback
Type: Bug
Package: FPM related
Operating System: Arch Linux
PHP Version: 5.4.6
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
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.
COuld you please provide the full backtrace please ?
if it's possible, it would be great to enable debug symbols at compilation time
thx
Previous Comments:
------------------------------------------------------------------------
[2012-08-23 15:41:13] laruence@php.net
fat, could you please look at this one?
------------------------------------------------------------------------
[2012-08-22 08:26:25] pierre at archlinux dot de
Description:
------------
Since PHP 5.4.5 starting php-fpm will either result in a segmentation fault or it will hang under
certain conditions.
It is a little hard to reproduce but it seems it is related to using modules. There more modules get
loaded via php.ini the more likely this bug will get triggered (> 30%); with no modules loaded I
was not able to trigger it.
I started from 5.4.6 and reverted patches applied to sapi/fpm. Once I reverted commit
c2f33fb1293cbcdc94daefb8583ca13e98b5c826, php would no longer crash or hang.
See http://git.php.net/?p=php-src.git;a=commit;h=c2f33fb1293cbcdc94daefb8583ca13e98b5c826
Test script:
---------------
Configure php with a bunch of modules and run something like this:
for i in {1..100};do sudo php-fpm;sleep 0.5;sudo killall php-fpm;sleep 0.5;done
watch dmesg for segfaults like
php-fpm[32571]: segfault at 7f4eabe93cf8 ip 00007f4eae9b1ed6 sp 00007fff87d69310 error 4 in
ld-2.16.so[7f4eae9a3000+21000]
gdb will tell you 0x00007fe0412c1ed6 in _dl_fini () from /lib/ld-linux-x86-64.so.2
Sometimes php-fpm will hang and has to be killed with kill -9.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62886&edit=1