Bug #62886 [Fbk->Csd]: PHP-FPM may segfault/hang on startup
| From: | fat@php.net | Date: | Thu, 27 Sep 2012 22:08:32 +0000 |
| Subject: | Bug #62886 [Fbk->Csd]: PHP-FPM may segfault/hang on startup | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173751@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: Feedback
+Status: Closed
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:
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=75c63c5503b1c6b72e5e1daf5b4bfd02c68a4b79
Log: - Fixed bug #62954 (startup problems fpm / php-fpm) - Fixed bug #62886 (PHP-FPM may
segfault/hang on startup)
Previous Comments:
------------------------------------------------------------------------
[2012-09-27 18:51:10] jdr at alexanderinteractive dot com
This patch seems to do the trick for me for php 5.4.7
Thanks!
------------------------------------------------------------------------
[2012-09-26 20:26:32] jonas at brachium-system dot net
I came from #62954 - I have applied your patch against 5.3.x source.
It fixes my problem - fpm starts up normal and detaches.
fat, great work :)
------------------------------------------------------------------------
[2012-09-26 19:31:50] fat@php.net
Can you please test the following path ?
The commit you mentioned to be faulty in fact did the following things:
when daemonize, the calling process waited 10s for the master process (which
have been forked just before) to send USR1 if OK or USR2 otherwise.
There must be a problem with some external libraries using USR1 and USR2.
I've removed the signal stuff and have it replaced by a pipe(2).
Can you please test and tell me if it fix your problem (which I never been able
to reproduce on my side).
thx
++ fat
------------------------------------------------------------------------
[2012-09-26 19:28:24] fat@php.net
The following patch has been added/updated:
Patch Name: bug62886.patch.txt
Revision: 1348687704
URL: https://bugs.php.net/patch-display.php?bug=62886&patch=bug62886.patch.txt&revision=1348687704
------------------------------------------------------------------------
[2012-09-20 10:40:48] hsatac at golang dot tw
Having the same issue.
Archlinux + PHP 5.4.7
------------------------------------------------------------------------
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