How do I kill a program that won't die??

Booting, installing, newbie
Post Reply
Message
Author
p310don
Posts: 1492
Joined: Tue 19 May 2009, 23:11
Location: Brisbane, Australia

How do I kill a program that won't die??

#1 Post by p310don »

I have a PC that is connected to my TV that I watch programs on. The programs are on a remote server.

It has been working fine for a long time, but as of yesterday my network seemed to hit a glitch, and in the process, the media players (both SMplayer and VLC) have hung.

I killed SMplayer but it will not restart. VLC will not kill from the notification area.

Both are still showing up as having phantom entries in HTOP and killing them from there does nothing. I also cannot unmount the network share as it says it is busy.

I want to know if there is a way to kill these phantom processes without restarting the PC. I am going for a record, so far I'm up to 260 days uptime, and it'd be a shame to restart now...

The PC is running Tahr 6.05

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Ways to reset Puppy

#2 Post by peterw »

If you know what programme causes the problem then the kill command will work.
However, I have found "Ctrl + Alt +backspace" resets the Window and the programmes dependent on it (I think) and that may achieve your desire.

p310don
Posts: 1492
Joined: Tue 19 May 2009, 23:11
Location: Brisbane, Australia

#3 Post by p310don »

If you know what programme causes the problem then the kill command will work.
However, I have found "Ctrl + Alt +backspace" resets the Window and the programmes dependent on it (I think) and that may achieve your desire.
Yep, that normally works. But isn't working this time for some reason.

puppytahruser
Posts: 63
Joined: Sun 02 Oct 2016, 20:17

re

#4 Post by puppytahruser »

You can try from task manager right click on process and select kill with following 'yes'. If it does not kill the process see the ppid i.e. parents pid, if you cant kill parent pid then unfortunately you may not kill the process. In worst case may be you cant even shutdown or restart, may need hard shutdown(pressing power button long).

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#5 Post by bigpup »

You have gotten to the time when the only good fix is: complete power off.
Wait 1 minute.
Power on boot up.

Looks to me like you have corrupted memory that is not going to completely let go of whatever it is causing this. It is probably more than one thing.
Just need to force a complete memory dump and clean, by doing a complete power off.

Why do you think they put the reset button on computers? They wanted an easy way to do the above.

You have probably been very lucky it took this long to happen.
Do not overlook you could have a piece of hardware going bad.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

mostly_lurking
Posts: 328
Joined: Wed 25 Jun 2014, 20:31

#6 Post by mostly_lurking »

None of these work?

Code: Select all

kill -9 <process id>

killall -9 <process name>

pkill -9 <process name>
https://ss64.com/bash/kill.html

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#7 Post by musher0 »

Hello, p310don.

Try typing in console

Code: Select all

kill -s 9 `pgrep vlc`
or

Code: Select all

kill -s 15 `pgrep vlc`
.
You can also do it with htop. Please see attached illustration.

Launch htop
highlight the program that's playing turkey with the down or up arrow
when you found it, hit F9
a column with all sorts of "kill" appear on the left-hand side of the htop window
It starts with # 15 highlighted.
Hit return to kill the program.

Recheck. If the turkey is still alive :), try repeating the above procedure with # 9
in the left column of htop.

Important Warning:
do not use any other number than 9 or 15 in that left column of htop.


Merry Christmas, BTW.

IHTH.
Attachments
htop-F9-15.jpg
(122.15 KiB) Downloaded 373 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Gordie
Posts: 153
Joined: Tue 23 Aug 2016, 15:26
Location: Nolalu, Ontario, Canada

#8 Post by Gordie »

ctrl +alt +esc

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

I once accidentally opened several instances of a media player, I forget which one, and wound up with a bunch of zombies that showed in Pprocess but couldn't be killed no matter what I tried. I finally had to reboot to get rid of them. There is a thread about that in the forum somewhere and I think it has a possible solution but I rebooted before I saw it.

mfb

#10 Post by mfb »

Flash,

Here is an excellent killer from a well known Forum member
Attachments
snap.png
(59.86 KiB) Downloaded 408 times
pzombie-0.2b.pet
(89.03 KiB) Downloaded 156 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#11 Post by Flash »

Thank you! That could be the solution I didn't try. :)

p310don
Posts: 1492
Joined: Tue 19 May 2009, 23:11
Location: Brisbane, Australia

#12 Post by p310don »

Thanks for all the suggestions. Not a single one worked, which is a bugger - so I've gone the reboot option.

262 days, 16 hrs uptime all gone... almost

The problem is network related. Tahr's shutdown process includes "unmounting stray filesystems" - it is stuck on not unmounting the server share, which is the cause of the problem it seems... Hard reset coming soon.. :evil:
Attachments
up time.jpg
(102.57 KiB) Downloaded 169 times

Post Reply