[Bug 940290] Re: console log consumes fds upon job restart/respawn
Launchpad Bug Tracker
940290 at bugs.launchpad.net
Fri Mar 23 18:40:08 UTC 2012
This bug was fixed in the package upstart - 1.5-0ubuntu1
---------------
upstart (1.5-0ubuntu1) precise; urgency=low
* FFe. LP: #962124.
* New upstream 1.5 release.
- fix boot failure when /dev/pts is not mounted before upstart starts.
LP: #936667.
- fix a file descriptor leak on job restarts. LP: #940290.
* debian/conf/failsafe.conf: Added missing "emits" which breaks
'initctl check-config'.
* debian/manpages/upstart-events.7: Added 'failsafe-boot' and
'recovery' events.
-- James Hunt <james.hunt at ubuntu.com> Thu, 22 Mar 2012 13:50:31 +0000
** Changed in: upstart (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/940290
Title:
console log consumes fds upon job restart/respawn
Status in Upstart:
Fix Released
Status in “upstart” package in Ubuntu:
Fix Released
Bug description:
Upstart is consuming more and more fds for restarted/respawned jobs.
It is not losing the references, as fds are closed upon stopping the
job.
Test case:
sudo cat >/etc/init/test.conf <<EOF
console log
respawn
script
echo "foo"
sleep 9999
end script
post-start exec echo "bar"
EOF
sudo start test
sudo ls -l /proc/1/fd | grep test (one fd)
sudo restart test
sudo ls -l /proc/1/fd | grep test (two fds)
sudo killall sleep
sudo ls -l /proc/1/fd | grep test (three fds)
sudo stop test
sudo ls -l /proc/1/fd | grep test (zero fds)
Tested on Ubuntu 12.04, Upstart 1.4-0ubuntu8, also upstream 1.4.
To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/940290/+subscriptions
More information about the foundations-bugs
mailing list