reload -> unable to read what child say: Bad file descriptor (9)

Bug #1288129 reported by Florian Engelmann
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
php
Unknown
Unknown
php5 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

OS: Ubuntu 12.04.2 LTS
Kernel: 3.5.0-43-generic #66~precise1-Ubuntu x86_64 GNU/Linux
php5-fpm: 5.3.10-1ubuntu3.10

Sometimes php-fpm crashes with:

[04-Mar-2014 06:47:45] NOTICE: Finishing ...
[04-Mar-2014 06:47:45] ERROR: unable to read what child say: Bad file descriptor (9)
[04-Mar-2014 06:47:45] ERROR: unable to read what child say: Bad file descriptor (9)
[04-Mar-2014 06:47:45] NOTICE: exiting, bye-bye!

"service php5-fpm reload" also causes a crash (sometimes):

[05-Mar-2014 09:56:04] NOTICE: Reloading in progress ...
[05-Mar-2014 09:56:04] ERROR: unable to read what child say: Bad file descriptor (9)
[05-Mar-2014 09:56:04] ERROR: unable to read what child say: Bad file descriptor (9)
[05-Mar-2014 09:56:04] NOTICE: reloading: execvp("/usr/sbin/php5-fpm", {"/usr/sbin/php5-fpm", "--fpm-config", "/etc/php5/fpm/php-fpm.conf"})
[05-Mar-2014 09:56:04] NOTICE: PHP message: PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/fpm/conf.d/ming.ini on line 1 in Unknown on line 0
[05-Mar-2014 09:56:04] NOTICE: using inherited socket fd=9, "/var/run/php-fpm-jti.sock"
[...]
[05-Mar-2014 09:57:02] NOTICE: Reloading in progress ...
[05-Mar-2014 09:57:02] ERROR: unable to read what child say: Bad file descriptor (9)
[05-Mar-2014 09:57:36] NOTICE: fpm is running, pid 61663
[05-Mar-2014 09:57:36] NOTICE: ready to handle connections

This might be ralted to bug:
https://bugs.php.net/bug.php?id=65800

And could be fixed with:
http://us-east.manta.joyent.com/bcantrill/public/OS-2517.diff.txt

Changed in php5 (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php5 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.