LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 05-02-2005, 01:49 AM   #1
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Rep: Reputation: 30
Problems killing process


That is first time I've seen that happening in Linux in Debian distro.

I've got Xine or other multimedia player stuck. I've killed it.
I used xkill, then kill PID, kill -9 PID but the process remains I also tryed as root.
It is still in the list of process.
The problem is that it uses audio output and other process can't use it.
If I got Xine stuck and I can't kill it then I can't use any other multimedia application. In any way only possible solution is reboot.

I've got it number of times... Why I can't kill the process (I havn't seen this before)
 
Old 05-02-2005, 11:51 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
When you do ps ax and get the list of processes, does this one show up as a "zombie" process?

If so, normal means of killing it don't work; you have to kill its parent process to get rid of it.

To do that, issue

Code:
ps aln | grep "Z"
And under the column "PPID" will be the number you need to use with your kill command. That should get rid of it.

If it isn't showing up as a zombie process, though, I'm sorry to say I don't know how to solve the problem.
 
Old 05-03-2005, 03:21 AM   #3
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Original Poster
Rep: Reputation: 30
Ok there is example of problem:
Code:
$ ps ax | grep mplayer
12867 ?        D      0:01 [mplayer]
12868 ?        Z      0:00 [mplayer] <defunct>
in the pstree process init is parent of mplayer 12867 and it is parent of mplayer<defunct> 12868 .

I can't kill 12867 or kill -9 12867 (the parent) of kill 12868 or kill -9 12868 - the zombie

What can I do in this case. I got my audio stuck playing short sequence of music.

My audio is stuck... and I can't run any other audio application.

I can't kill init process I assume

After trying to do something.... I've run xmms - it got stuck...
tryed ro run totem.... the annoying constant musiic sequence had stopped and totem start playing... and mplayer exited by itself...

What is going on here? Can somone explaing what is it and why I can't kill a process?

The situation is quite easy to recreate... if someone have any ideas how to debug this or solve... you are wellcome.

Thanks.
Artik
 
Old 05-03-2005, 09:46 AM   #4
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
If I'm interpreting this right, you still haven't identified the parent of the zombie process 12868. Have you tried the below?

Code:
ps aln | grep "Z"
This should show you the parent process ID (PPID), which is the one to kill.

Or maybe I'm just not understanding...
 
Old 05-03-2005, 10:32 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
or "ps -h", which shows processes in a "tree" - it's good for ID'ing parents
 
Old 05-03-2005, 10:55 AM   #6
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Original Poster
Rep: Reputation: 30
Code:
ps aln -U username | grep Z
give me PPID = 1 --> it is init process... You can't kill this parent...
 
Old 05-03-2005, 11:29 AM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I think at this point I would try uninstalling the trouble-making application and then reinstalling it. Or replacing it with a similar application and trying it out.

I would also use Google to search for other users who may have experienced this same problem--but you've probably already done that.
 
  


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
Killing a process by its name rabeea Linux - Networking 3 03-17-2005 06:30 AM
Killing a process on startup...... har5ha Linux - Software 3 07-24-2004 01:52 PM
help with killing all java process idandl Linux - Newbie 2 02-02-2004 06:32 AM
Killing/Ending a process james_cwy Linux - Newbie 6 12-16-2003 10:45 PM
Really Killing a Process! lazlow69 Linux - Newbie 14 05-10-2003 11:31 PM


All times are GMT -5. The time now is 04:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration