Bug #62886 [NEW]: PHP-FPM may segfault/hang on startup
| From: | pierre at archlinux dot de | Date: | Wed, 22 Aug 2012 08:26:25 +0000 |
| Subject: | Bug #62886 [NEW]: PHP-FPM may segfault/hang on startup | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172785@lists.php.net to get a copy of this message | ||
From: pierre at archlinux dot de
Operating system: Arch Linux
PHP version: 5.4.6
Package: FPM related
Bug Type: Bug
Bug description:PHP-FPM may segfault/hang on startup
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 bug report at https://bugs.php.net/bug.php?id=62886&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62886&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62886&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62886&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62886&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62886&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62886&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62886&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62886&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62886&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62886&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62886&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62886&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62886&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62886&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62886&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62886&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62886&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62886&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62886&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62886&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62886&r=mysqlcfg