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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-09-2017, 03:15 PM
|
#1
|
LQ Newbie
Registered: Jun 2017
Posts: 4
Rep:
|
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!
|
|
|
06-10-2017, 03:03 AM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
06-10-2017, 04:59 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,444
|
obviously it is a configuration issue, most probably the sshd config is not ok
|
|
|
06-11-2017, 03:32 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
If it is configuration issue it is quite common.
|
|
|
06-12-2017, 07:25 AM
|
#5
|
LQ Newbie
Registered: Jun 2017
Posts: 4
Original Poster
Rep:
|
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
|
|
|
06-12-2017, 05:05 PM
|
#6
|
Senior Member
Registered: Dec 2011
Location: Simplicity
Distribution: Mint/MATE
Posts: 3,010
|
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.
|
|
|
06-13-2017, 10:00 AM
|
#7
|
LQ Newbie
Registered: Jun 2017
Posts: 4
Original Poster
Rep:
|
Something else?
Quote:
Originally Posted by MadeInGermany
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.
|
|
|
06-13-2017, 10:30 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,444
|
who is the parent?
do you have anything in ~/.bash_logout (or something similar?)
|
|
|
06-13-2017, 12:31 PM
|
#9
|
Senior Member
Registered: Dec 2011
Location: Simplicity
Distribution: Mint/MATE
Posts: 3,010
|
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`
|
|
|
06-13-2017, 03:33 PM
|
#10
|
LQ Newbie
Registered: Jun 2017
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by MadeInGermany
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.
|
|
|
All times are GMT -5. The time now is 01:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|