LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2017, 02:15 PM   #1
ttitoo96
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Rep: Reputation: Disabled
Exclamation Zombie process on Slackware 13.0 [sshd <defunct>]


Hi and thanks for reading.
I have a linux proxy with Slackware 13.0 kernel 2.6.29.6-smp, OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009.
When i connect from putty or another terminal via ssh(it doesn't matter) and close the session (with logout or exit command), automatically a zombie process appears. The strange thing is that i have another server with very different harwdware but the same OS and software and it doesn't have this problem.

This is what i see:

root@host:~# ps fax | grep Z | grep -v grep
5037 ? Z 0:00 | \_ [sshd] <defunct>
8181 ? Z 0:00 | \_ [sshd] <defunct>
8651 ? Z 0:00 | \_ [sshd] <defunct>
9358 ? Z 0:00 | \_ [sshd] <defunct>
9469 ? Z 0:00 | \_ [sshd] <defunct>
10074 ? Z 0:00 | \_ [sshd] <defunct>
10519 ? Z 0:00 \_ [sshd] <defunct>

Feel free to ask me for any information.
Thanks!
 
Old 06-10-2017, 02:03 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Hi ttitoo96.

Welcome to LQ!

You can kill the zombies if it makes you feel better. One thing you can try is deleting everything in /tmp and rebooting. I'm not exactly sure why that works, but it does.
 
Old 06-10-2017, 03:59 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
obviously it is a configuration issue, most probably the sshd config is not ok
 
Old 06-11-2017, 02:32 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If it is configuration issue it is quite common.
 
Old 06-12-2017, 06:25 AM   #5
ttitoo96
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you all for your replies.
My /etc/ssh/ssh_config file is by default. No changes has been made.
Here is my /etc/ssh/sshd_config file

root@surfer:/etc/ssh# grep -v "^#" sshd_config | grep .
Port 32460
Protocol 2
PermitRootLogin no
PermitEmptyPasswords no
Subsystem sftp /usr/libexec/sftp-server
 
Old 06-12-2017, 04:05 PM   #6
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
AFAIR there was such a problem with openssh 5.2.
Might also be a problem with udev or with a "network manager", see this bug.
 
Old 06-13-2017, 09:00 AM   #7
ttitoo96
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Something else?

Quote:
Originally Posted by MadeInGermany View Post
AFAIR there was such a problem with openssh 5.2.
Might also be a problem with udev or with a "network manager", see this bug.
I've read the whole post. I am not an expert, but from reading about this bug i understood that was a problem with the "Sigmask". So i checked that:

cat /proc/`pidof sshd| awk '{print $1}'`/status | grep Sig
SigQ: 0/26543
SigPnd: 0000000000000000
SigBlk: 0000000000000000 # This is right
SigIgn: 0000000000001000
SigCgt: 0000000000010000


I don't think my problem is related to this bug.
Is there something else that i can test?
Thanks so much.
 
Old 06-13-2017, 09:30 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
who is the parent?
do you have anything in ~/.bash_logout (or something similar?)
 
Old 06-13-2017, 11:31 AM   #9
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Lightbulb ptree script - show a partial process tree

Do the defunct processes have child processes?
Using the attached ptree script you can do
Code:
ptree `pgrep -ox sshd`
Attached Files
File Type: txt ptree.txt (792 Bytes, 18 views)
 
Old 06-13-2017, 02:33 PM   #10
ttitoo96
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MadeInGermany View Post
Do the defunct processes have child processes?
Using the attached ptree script you can do
Code:
ptree `pgrep -ox sshd`
The defunct processes does not have child processes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kill zombie process via C program without killing main process aj1991 Linux - Newbie 3 04-17-2015 12:04 PM
sshd trojan? keys / passwds written in /var/run.defunct, /etc/httpd/run/.defunct raymor Linux - Security 8 08-11-2011 11:25 AM
How to check memory consumed by hidden/defunct/zombie process rajaniyer123 Solaris / OpenSolaris 11 05-27-2009 02:11 AM
Sshd defunct`s problem on lInux Cherep33 Linux - Server 4 05-26-2007 12:12 PM
shell script terminates as zombie, ie, <defunct> Kropotkin Linux - Newbie 3 02-20-2007 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration