Debian Bug report logs - #676972
php5-fpm startup process crashy since 5.4.4-rc2

version graph

Package: php5-fpm; Maintainer for php5-fpm is (unknown);

Reported by: Andre Tomt <andre@tomt.net>

Date: Sun, 10 Jun 2012 21:27:04 UTC

Severity: important

Tags: moreinfo

Found in version php5/5.4.4~rc2-1

Fixed in versions php5/5.4.4-7, 5.4.4-14

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#676972; Package php5-fpm. (Sun, 10 Jun 2012 21:27:07 GMT) (full text, mbox, link).


Acknowledgement sent to Andre Tomt <andre@tomt.net>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 10 Jun 2012 21:27:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Andre Tomt <andre@tomt.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-fpm startup process crashy since 5.4.4-rc2
Date: Sun, 10 Jun 2012 23:05:36 +0200
Package: php5-fpm
Version: 5.4.4~rc2-1
Severity: important

The php5 FPM SAPI does not reliably start up for me after 5.4.4~rc2-1 migrated to testing and landed on my system.
It will randomly lock up during startup, just after it has started its worker processes and should be exiting.
This makes the php5-fpm init script lock up also of course.

When in this wedged state it will not respond to a SIGTERM anymore, you have to SIGKILL it. Attaching strace to
the hung process indicates it is locking on some futex() call:
futex(0x7fe3a4215e60, FUTEX_WAIT_PRIVATE, 2, NULL

It seems to be timing related, as 1) its random, 2) running it under strace or gdb makes all sorts of things
happen randomly.

5.3.3-6 from snapshots does not show this behaviour.

Also I noticed the 5.4.4~rc2-1 php reports version 5.4.5-dev. Hum.

No odd modules enabled, only -gd, -imap, -mcrypt and -mysql

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-fpm depends on:
ii  dpkg              1.16.3
ii  libbz2-1.0        1.0.6-1
ii  libc6             2.13-33
ii  libcomerr2        1.42.2-2
ii  libdb5.1          5.1.29-1
ii  libgssapi-krb5-2  1.10.1+dfsg-1
ii  libk5crypto3      1.10.1+dfsg-1
ii  libkrb5-3         1.10.1+dfsg-1
ii  libmagic1         5.11-1
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.30-5
ii  libqdbm14         1.8.78-2
ii  libssl1.0.0       1.0.1c-3
ii  libxml2           2.8.0+dfsg1-3
ii  mime-support      3.52-1
ii  php5-common       5.4.3-6
ii  tzdata            2012c-1
ii  ucf               3.0025+nmu3
ii  zlib1g            1:1.2.7.dfsg-11

php5-fpm recommends no packages.

Versions of packages php5-fpm suggests:
pn  php-pear  <none>

-- Configuration Files:
/etc/php5/fpm/php-fpm.conf changed [not included]
/etc/php5/fpm/pool.d/www.conf changed [not included]

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#676972; Package php5-fpm. (Wed, 08 Aug 2012 22:30:06 GMT) (full text, mbox, link).


Acknowledgement sent to Anthony Volodkin <anthony@hypem.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 08 Aug 2012 22:30:06 GMT) (full text, mbox, link).


Message #10 received at 676972@bugs.debian.org (full text, mbox, reply):

From: Anthony Volodkin <anthony@hypem.com>
To: 676972@bugs.debian.org
Subject: php5-fpm startup process crashy since 5.4.4-rc2
Date: Wed, 8 Aug 2012 18:26:41 -0400
[Message part 1 (text/plain, inline)]
Even though our configuration is different (we are using a 5.4.5-1~dotdeb.0
build of php5-fpm on Ubuntu 12.04 LTS that has been upgraded from previous
LTS releases), we have been encountering this identical hang issue, same
syscall, and other symptoms.

We were able to temporarily address the issue by removing the php5-imap
module from our environment, so this looks like it could be a result of
dependency issue.  Happy to contribute if we find out more.
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#676972; Package php5-fpm. (Fri, 24 Aug 2012 09:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 24 Aug 2012 09:27:03 GMT) (full text, mbox, link).


Message #15 received at 676972@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Andre Tomt <andre@tomt.net>, anthony@hypem.com, 676972@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: [php-maint] Bug#676972: php5-fpm startup process crashy since 5.4.4-rc2
Date: Fri, 24 Aug 2012 11:24:15 +0200
tags 676972 +moreinfo
thank you

Andre & Anthony,

I have pulled some fix for crasher bug into 5.4.4-4, could you please
try with that version?

And if that doesn't help, could you please try with 5.4.6-1 from
experimental, the fpm SAPI got several updates?

Also if nothing helps, it's probably upstream bug and worth reporting
to bugs.php.net (I could do it for you, but it's usually better if the
person who experiences the crash do the report and adds to URL here.)

O.

On Sun, Jun 10, 2012 at 11:05 PM, Andre Tomt <andre@tomt.net> wrote:
> Package: php5-fpm
> Version: 5.4.4~rc2-1
> Severity: important
>
> The php5 FPM SAPI does not reliably start up for me after 5.4.4~rc2-1 migrated to testing and landed on my system.
> It will randomly lock up during startup, just after it has started its worker processes and should be exiting.
> This makes the php5-fpm init script lock up also of course.
>
> When in this wedged state it will not respond to a SIGTERM anymore, you have to SIGKILL it. Attaching strace to
> the hung process indicates it is locking on some futex() call:
> futex(0x7fe3a4215e60, FUTEX_WAIT_PRIVATE, 2, NULL
>
> It seems to be timing related, as 1) its random, 2) running it under strace or gdb makes all sorts of things
> happen randomly.
>
> 5.3.3-6 from snapshots does not show this behaviour.
>
> Also I noticed the 5.4.4~rc2-1 php reports version 5.4.5-dev. Hum.
>
> No odd modules enabled, only -gd, -imap, -mcrypt and -mysql
>
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers testing
>   APT policy: (900, 'testing'), (800, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-1 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages php5-fpm depends on:
> ii  dpkg              1.16.3
> ii  libbz2-1.0        1.0.6-1
> ii  libc6             2.13-33
> ii  libcomerr2        1.42.2-2
> ii  libdb5.1          5.1.29-1
> ii  libgssapi-krb5-2  1.10.1+dfsg-1
> ii  libk5crypto3      1.10.1+dfsg-1
> ii  libkrb5-3         1.10.1+dfsg-1
> ii  libmagic1         5.11-1
> ii  libonig2          5.9.1-1
> ii  libpcre3          1:8.30-5
> ii  libqdbm14         1.8.78-2
> ii  libssl1.0.0       1.0.1c-3
> ii  libxml2           2.8.0+dfsg1-3
> ii  mime-support      3.52-1
> ii  php5-common       5.4.3-6
> ii  tzdata            2012c-1
> ii  ucf               3.0025+nmu3
> ii  zlib1g            1:1.2.7.dfsg-11
>
> php5-fpm recommends no packages.
>
> Versions of packages php5-fpm suggests:
> pn  php-pear  <none>
>
> -- Configuration Files:
> /etc/php5/fpm/php-fpm.conf changed [not included]
> /etc/php5/fpm/pool.d/www.conf changed [not included]
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



-- 
Ondřej Surý <ondrej@sury.org>



Added tag(s) moreinfo. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Fri, 24 Aug 2012 09:27:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#676972; Package php5-fpm. (Fri, 24 Aug 2012 21:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 24 Aug 2012 21:30:03 GMT) (full text, mbox, link).


Message #22 received at 676972@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Anthony Volodkin <anthony@hypem.com>
Cc: Andre Tomt <andre@tomt.net>, 676972@bugs.debian.org
Subject: Re: [php-maint] Bug#676972: php5-fpm startup process crashy since 5.4.4-rc2
Date: Fri, 24 Aug 2012 23:27:25 +0200
Hmm, it definitely looks like an upstream issue. Would you be willing
to report that
to bugs.php.net, please?

O.

On Fri, Aug 24, 2012 at 8:48 PM, Anthony Volodkin <anthony@hypem.com> wrote:
>
> I realize my environment differs (Ubuntu 12.04LTS, upgraded from prev. LTS
> builds), but just updated to a newer build of dotdeb php binaries:
> 5.4.6-1~dotdeb.0, and seeing the same behavior.  Removing php5-pspell also
> helped the hanging stop.  So current candidates are imap and pspell so far.
>
> -Anthony
>
>
> On Fri, Aug 24, 2012 at 5:24 AM, Ondřej Surý <ondrej@debian.org> wrote:
>>
>> tags 676972 +moreinfo
>> thank you
>>
>> Andre & Anthony,
>>
>> I have pulled some fix for crasher bug into 5.4.4-4, could you please
>> try with that version?
>>
>> And if that doesn't help, could you please try with 5.4.6-1 from
>> experimental, the fpm SAPI got several updates?
>>
>> Also if nothing helps, it's probably upstream bug and worth reporting
>> to bugs.php.net (I could do it for you, but it's usually better if the
>> person who experiences the crash do the report and adds to URL here.)
>>
>> O.
>>
>> On Sun, Jun 10, 2012 at 11:05 PM, Andre Tomt <andre@tomt.net> wrote:
>> > Package: php5-fpm
>> > Version: 5.4.4~rc2-1
>> > Severity: important
>> >
>> > The php5 FPM SAPI does not reliably start up for me after 5.4.4~rc2-1
>> > migrated to testing and landed on my system.
>> > It will randomly lock up during startup, just after it has started its
>> > worker processes and should be exiting.
>> > This makes the php5-fpm init script lock up also of course.
>> >
>> > When in this wedged state it will not respond to a SIGTERM anymore, you
>> > have to SIGKILL it. Attaching strace to
>> > the hung process indicates it is locking on some futex() call:
>> > futex(0x7fe3a4215e60, FUTEX_WAIT_PRIVATE, 2, NULL
>> >
>> > It seems to be timing related, as 1) its random, 2) running it under
>> > strace or gdb makes all sorts of things
>> > happen randomly.
>> >
>> > 5.3.3-6 from snapshots does not show this behaviour.
>> >
>> > Also I noticed the 5.4.4~rc2-1 php reports version 5.4.5-dev. Hum.
>> >
>> > No odd modules enabled, only -gd, -imap, -mcrypt and -mysql
>> >
>> > -- System Information:
>> > Debian Release: wheezy/sid
>> >   APT prefers testing
>> >   APT policy: (900, 'testing'), (800, 'unstable')
>> > Architecture: amd64 (x86_64)
>> >
>> > Kernel: Linux 3.2.0-1 (SMP w/4 CPU cores)
>> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
>> > Shell: /bin/sh linked to /bin/bash
>> >
>> > Versions of packages php5-fpm depends on:
>> > ii  dpkg              1.16.3
>> > ii  libbz2-1.0        1.0.6-1
>> > ii  libc6             2.13-33
>> > ii  libcomerr2        1.42.2-2
>> > ii  libdb5.1          5.1.29-1
>> > ii  libgssapi-krb5-2  1.10.1+dfsg-1
>> > ii  libk5crypto3      1.10.1+dfsg-1
>> > ii  libkrb5-3         1.10.1+dfsg-1
>> > ii  libmagic1         5.11-1
>> > ii  libonig2          5.9.1-1
>> > ii  libpcre3          1:8.30-5
>> > ii  libqdbm14         1.8.78-2
>> > ii  libssl1.0.0       1.0.1c-3
>> > ii  libxml2           2.8.0+dfsg1-3
>> > ii  mime-support      3.52-1
>> > ii  php5-common       5.4.3-6
>> > ii  tzdata            2012c-1
>> > ii  ucf               3.0025+nmu3
>> > ii  zlib1g            1:1.2.7.dfsg-11
>> >
>> > php5-fpm recommends no packages.
>> >
>> > Versions of packages php5-fpm suggests:
>> > pn  php-pear  <none>
>> >
>> > -- Configuration Files:
>> > /etc/php5/fpm/php-fpm.conf changed [not included]
>> > /etc/php5/fpm/pool.d/www.conf changed [not included]
>> >
>> > -- no debconf information
>> >
>> >
>> >
>> > _______________________________________________
>> > pkg-php-maint mailing list
>> > pkg-php-maint@lists.alioth.debian.org
>> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>>
>>
>>
>> --
>> Ondřej Surý <ondrej@sury.org>
>
>



-- 
Ondřej Surý <ondrej@sury.org>



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#676972; Package php5-fpm. (Thu, 06 Sep 2012 18:36:08 GMT) (full text, mbox, link).


Acknowledgement sent to drb@msu.edu:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 06 Sep 2012 18:36:08 GMT) (full text, mbox, link).


Message #27 received at 676972@bugs.debian.org (full text, mbox, reply):

From: Dennis Boone <drb@msu.edu>
To: 676972@bugs.debian.org
Subject: 5.4.6 issues, also drupal7 weirdness
Date: Thu, 06 Sep 2012 14:21:50 -0400
Additional data points that may or may not be related:

For all of the following, the host system is sid i386.

I'm having Drupal7 weirdness since applying updates and ending up at (I
think) 5.4.4-7 on 8/22.  Drupal is at 7.14-1.  This setup runs under
nginx.  The error logs look like this:

Sep  5 15:31:56 www ool www: PHP Fatal error:  Call to undefined function <B0>K() in /usr/share/drupal7/index.php on line 17
Sep  5 15:31:57 www ool www: PHP Fatal error:  Call to undefined function <B0>K() in /usr/share/drupal7/index.php on line 17
Sep  5 15:32:05 www ool www: PHP Fatal error:  Call to undefined function (^N0BԂ
<9D>@() in /usr/share/drupal7/includes/bootstrap.inc on line 11
Sep  5 15:32:15 www ool www: PHP Fatal error:  Call to undefined function <B0>K() in /usr/share/drupal7/index.php on line 17

Note the control characters instead of actual function names, and that
they change from request to request.  A 500 is returned to the client.

I'm also having weirdness with Apache (2.2.22-11, mod-php loaded) not
stopping when asked, where the master process locks up and can only be
killed -9.  This doesn't occur every time.

====

So with this bug and the above as context, and knowing that surgery is
in progress to adapt to php4, prepare for apache 2.4, etc, I tried the
5.4.6 packages from experimental.

After applying the experimental packages, mod-php under apache
(mpm-prefork) sometimes (some workers, maybe?) throws errors similar to
the ones above, with garbage in the logged errors.  I also saw fpm hang
at startup a few times with
5.4.6.

I've gone back to all-sid packages for now, as this is a production
machine.

====

Sorry this is so disorganized.  Not sure what bits are relevant, and
what might belong in a different bug report.

De



Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 04 Jul 2014 14:39:10 GMT) (full text, mbox, link).


Notification sent to Andre Tomt <andre@tomt.net>:
Bug acknowledged by developer. (Fri, 04 Jul 2014 14:39:10 GMT) (full text, mbox, link).


Message #32 received at 676972-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 676972-done@bugs.debian.org
Subject: Re: Bug#676972: php5-fpm startup process crashy since 5.4.4-rc2
Date: Fri, 04 Jul 2014 16:37:07 +0200
Version: 5.4.4-14

I am closing this bug as expired, please provide full backtrace if you
can reproduce this with a recent php5 version from stable.

Cheers,
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Marked as fixed in versions php5/5.4.4-7. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 09 Jul 2014 08:51:33 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 07 Aug 2014 07:34:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:37:33 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.