Edit report at https://bugs.php.net/bug.php?id=62886&edit=1
ID: 62886 Comment by: pierre at archlinux dot de Reported by: pierre at archlinux dot de Summary: PHP-FPM may segfault/hang on startup Status: Assigned 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: It also crashes with the imap extension disabled. But it seems the number of enabled extensions might matter. Anyway, we have a backtrace and the commit that introduced this issue. Previous Comments: ------------------------------------------------------------------------ [2012-09-17 09:55:04] daniel at bashgeek dot net Have the same problem on my end with a couple of servers. For me the problem is solved as soon as I disable the IMAP extension of PHP. Maybe it has something todo with this extension? ------------------------------------------------------------------------ [2012-09-12 16:32:02] jeffrey dot ness at rackspace dot com I am also noticing this issue with our 5.3.16 packages: # php-fpm -v PHP 5.3.16 (fpm-fcgi) (built: Aug 20 2012 10:39:20) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies # for i in {1..100}; do php-fpm ; killall php-fpm; done Segmentation fault Segmentation fault Segmentation fault # dmesg | grep php-fpm php-fpm[30800]: segfault at 7f7d199f4cd0 ip 00007f7d24a43b83 sp 00007fffdd48fb20 error 4 in ld- 2.12.so[7f7d24a35000+20000] php-fpm[31599]: segfault at 7f50f17c3cd0 ip 00007f50fc812b83 sp 00007fff09f13120 error 4 in ld- 2.12.so[7f50fc804000+20000] php-fpm[32009]: segfault at 7f3005f59cc0 ip 00007f3010938b83 sp 00007fffb291c3a0 error 4 in ld- 2.12.so[7f301092a000+20000] php-fpm[32313]: segfault at 7f17094a4cc0 ip 00007f1713e83b83 sp 00007fffaab94e20 error 4 in ld- 2.12.so[7f1713e75000+20000] php-fpm[32585]: segfault at 7f60ad427cc0 ip 00007f60b7e06b83 sp 00007ffff44e06a0 error 4 in ld- 2.12.so[7f60b7df8000+20000] ------------------------------------------------------------------------ [2012-08-24 09:06:27] pierre at archlinux dot de I have attached php.ini and php-fpm.conf as patches (sorry, didn't fint another way to attach those) Here is what is different from the configuration shipped with PHP 5.4.6: The php-fpm.conf is the plain upstream one with this patch applied: https://projects.archlinux.de/svntogit/packages.git/tree/trunk/php-fpm.conf.in.patch?h=packages/php php.ini is a copy of php.ini-production with this patch applied: https://projects.archlinux.de/svntogit/packages.git/tree/trunk/php.ini.patch?h=packages/php On top of that I applied the following changes locally: http://paste.xinu.at/Hp6/ ------------------------------------------------------------------------ [2012-08-24 08:46:19] f...@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. I also need your FPM configuration and your php.ini please thanks ------------------------------------------------------------------------ [2012-08-24 08:37:27] pierre at archlinux dot de I rebuild with debug symbols and got the following trace: Core was generated by `php-fpm'. Program terminated with signal 11, Segmentation fault. #0 0x00007fc96b2c6ed6 in _dl_fini () from /lib/ld-linux-x86-64.so.2 (gdb) bt #0 0x00007fc96b2c6ed6 in _dl_fini () from /lib/ld-linux-x86-64.so.2 #1 0x00007fc96970cb31 in __run_exit_handlers () from /lib/libc.so.6 #2 0x00007fc96970cbb5 in exit () from /lib/libc.so.6 #3 0x00000000008cb754 in fpm_signals_sighandler_exit_ok (pid=10) at /build/src/php-5.4.6/sapi/fpm/fpm/fpm_signals.c:254 #4 <signal handler called> #5 0x00007fc96b2cf3c7 in munmap () from /lib/ld-linux-x86-64.so.2 #6 0x00007fc96b2ceb4d in _dl_unmap () from /lib/ld-linux-x86-64.so.2 #7 0x00007fc96b2cba1f in _dl_close_worker () from /lib/ld-linux-x86-64.so.2 #8 0x00007fc96b2cc18c in _dl_close () from /lib/ld-linux-x86-64.so.2 #9 0x00007fc96b2c6736 in _dl_catch_error () from /lib/ld-linux-x86-64.so.2 #10 0x00007fc969fee5fc in ?? () from /lib/libdl.so.2 #11 0x00007fc969fee10f in dlclose () from /lib/libdl.so.2 #12 0x0000000000773e2c in module_destructor (module=0x1ba6050) at /build/src/php-5.4.6/Zend/zend_API.c:2284 #13 0x000000000077c30f in zend_hash_apply_deleter (ht=0xfb5240 <module_registry>, p=0x1ba5ff0) at /build/src/php-5.4.6/Zend/zend_hash.c:650 #14 0x000000000077c4aa in zend_hash_graceful_reverse_destroy (ht=0xfb5240 <module_registry>) at /build/src/php-5.4.6/Zend/zend_hash.c:687 #15 0x0000000000771f97 in zend_destroy_modules () at /build/src/php-5.4.6/Zend/zend_API.c:1797 #16 0x0000000000768e9e in zend_shutdown () at /build/src/php-5.4.6/Zend/zend.c:823 #17 0x00000000006d5151 in php_module_shutdown () at /build/src/php-5.4.6/main/main.c:2346 #18 0x00000000008c7e23 in fpm_php_cleanup (which=2, arg=0x0) at /build/src/php-5.4.6/sapi/fpm/fpm/fpm_php.c:199 #19 0x00000000008bc629 in fpm_cleanups_run (type=2) at /build/src/php-5.4.6/sapi/fpm/fpm/fpm_cleanup.c:45 #20 0x00000000008cf1df in fpm_unix_init_main () at /build/src/php-5.4.6/sapi/fpm/fpm/fpm_unix.c:312 #21 0x00000000008bb2df in fpm_init (argc=1, argv=0x7fff252a4a98, config=0x0, prefix=0x0, pid=0x0, test_conf=0, run_as_root=0) at /build/src/php-5.4.6/sapi/fpm/fpm/fpm.c:59 #22 0x00000000008c7221 in main (argc=1, argv=0x7fff252a4a98) at /build/src/php-5.4.6/sapi/fpm/fpm/fpm_main.c:1800 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62886 -- Edit this bug report at https://bugs.php.net/bug.php?id=62886&edit=1