Edit report at https://bugs.php.net/bug.php?id=62886&edit=1
ID: 62886 Updated by: larue...@php.net Reported by: pierre at archlinux dot de Summary: PHP-FPM may segfault/hang on startup Status: Open Type: Bug Package: FPM related Operating System: Arch Linux PHP Version: 5.4.6 -Assigned To: +Assigned To: fat Block user comment: N Private report: N New Comment: fat, could you please look at this one? Previous Comments: ------------------------------------------------------------------------ [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