bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-31 13:39 UTC
[Bug 1812] New: ControlPersist causes defunct/zombie processes
https://bugzilla.mindrot.org/show_bug.cgi?id=1812
Summary: ControlPersist causes defunct/zombie processes
Product: Portable OpenSSH
Version: 5.6p1
Platform: All
URL: http://bugs.debian.org/594687
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: cjwatson at debian.org
In the linked Debian bug, martin f krafft reported:
"Since switching on ControlPersist, I have dozens of defunct ssh
processes in the process table, e.g.:
madduck 28025 0.0 0.0 40612 2784 pts/8 S+ 09:17 0:00 ssh
pulse
madduck 28028 0.0 0.0 0 0 pts/8 Z+ 09:17 0:00
[ssh] <defunct>
madduck 28029 0.0 0.0 40704 1188 ? Ss 09:17 0:00 ssh
pulse
The PIDs suggest thatt hese are related. It looks to me that the
second process is the clone process, which, according to strace,
only does:
open("/dev/null", O_RDWR) = 5
dup2(5, 0) = 0
dup2(5, 1) = 1
close(5) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f901060c9f0) = 20475
exit_group(0) = ?
It looks like the parent is not reaping this clone after it
terminates."
I can reproduce this. Using -vvv shows that the process in question
forked by control_persist_detach, and exits in the daemon call in
fork_postauth. The ssh client doesn't appear to install a SIGCHLD
handler anywhere.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Oct-12 02:31 UTC
[Bug 1812] ControlPersist causes defunct/zombie processes
https://bugzilla.mindrot.org/show_bug.cgi?id=1812
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
Blocks| |1803
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Damien Miller <djm at mindrot.org> 2010-10-12 13:31:52
EST ---
ssh now installs a SIGCHILD handler to reap these.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Jan-24 01:33 UTC
[Bug 1812] ControlPersist causes defunct/zombie processes
https://bugzilla.mindrot.org/show_bug.cgi?id=1812
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> 2011-01-24 12:33:47
EST ---
Move resolved bugs to CLOSED after 5.7 release
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Maybe Matching Threads
- ssh -f and -O ControlPersist=yes, ControlMaster=yes leaves stderr open
- ControlMaster and ControlPersist leads to zombie processes
- [Bug 2000] when using ssh with ControlMaster/ControlPersist, one may get zombie processes
- [Bug 2000] when using ssh with ControlMaster/ControlPersist, one may get zombie processes
- [Bug 2000] when using ssh with ControlMaster/ControlPersist, one may get zombie processes