LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-27-2005, 02:03 PM   #1
bratch
Member
 
Registered: Nov 2004
Location: Jersey, British Isles
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
<defunct>ed process


XMMS keeps crashing, and killing it ends up leaving one of the two processes it creates as defuncted, this is the second time it's crashed like this today, the first time I had to reboot to solve it.

How can I get rid of a <defunct>ed process?
 
Old 04-27-2005, 04:34 PM   #2
damicatz
Member
 
Registered: May 2004
Distribution: FreeBSD 7, Debian "Squeeze", OpenBSD 4.5
Posts: 167

Rep: Reputation: 30
Technically it isn't really a process anymore, just a listing of one. In order to get rid of a defunct or zombie process you'll have to kill it's host process.

You can find that out by using the command ps axjf. Once you find the host process just type kill -9 <process number>

If there is no host process you'll either have to reboot the system or wait for the system to clean it up, however a few zombie processes generally aren't anything to worry about as they aren't taking up resources.
 
Old 04-27-2005, 04:36 PM   #3
bratch
Member
 
Registered: Nov 2004
Location: Jersey, British Isles
Distribution: Gentoo
Posts: 44

Original Poster
Rep: Reputation: 15
It seems to have no host process, therefore didn't have anything to kill.

Also, I was going to leave it, but xmms wouldn't start again with it there, and it was also seemingly occupying the soundcard still, as I couldn't run audio from anything else either.
 
Old 04-27-2005, 04:37 PM   #4
damicatz
Member
 
Registered: May 2004
Distribution: FreeBSD 7, Debian "Squeeze", OpenBSD 4.5
Posts: 167

Rep: Reputation: 30
Quote:
Originally posted by bratch
It seems to have no host process, therefore didn't have anything to kill.

Also, I was going to leave it, but xmms wouldn't start again with it there, and it was also seemingly occupying the soundcard still, as I couldn't run audio from anything else either.
What does XMMS output when you try to run it from the command line?
 
Old 04-28-2005, 11:21 AM   #5
bratch
Member
 
Registered: Nov 2004
Location: Jersey, British Isles
Distribution: Gentoo
Posts: 44

Original Poster
Rep: Reputation: 15
Currently, with the defunct process still there, I get:
Code:
bash-2.05b$ xmms
Message: fmt 5, channels: 2
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave

** WARNING **: alsa_setup(): Failed to open pcm device (swmixer): Device or resource busy
xmms-mad-Message: failed to open audio output: ALSA 1.2.10 output plugin
bash-2.05b$
It seems the defunct process is still using the audio device.

I know this is a day later, and I have since rebooted. The problem has however happened again. Clearly something is broken - how can I resolve this?
 
Old 04-28-2005, 04:55 PM   #6
marcheikens
Member
 
Registered: Aug 2003
Location: Cleveland, OH
Distribution: Ubuntu 6.06
Posts: 66

Rep: Reputation: 15
I dont' know a whole lot about this stuff, but you might try running XMMS from the commandline exclusively for a bit. Tedious, yes, but when something goes wrong you can see any errors right there in front of you. I had trouble with this before, and I can't remember exactly, but I think at least when I ran it from the commandline if I had to Ctrl-C it, I didn't have to wait for the defunct process to clean itself up.

Might also check ~/.xsession-errors after it crashes, if you didn't run it from the commandline, and see if there's any info there.

marc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to kill a defunct process guarriman Linux - Software 4 05-15-2009 11:09 AM
how to tell exactly when a process went defunct beeblequix Linux - Enterprise 1 11-21-2005 11:49 PM
[cp <defunct>] teeno Linux - Software 2 02-23-2005 04:47 AM
defunct linuxprogrammer Linux - Newbie 1 07-23-2004 12:07 PM
SYSLOG-NG <defunct> process icw_sec Linux - Software 0 04-26-2004 05:21 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration