Re: [Hampshire] kill -9 pid now working

2009-05-12 Thread The Holy ettlz
On Tue, 2009-05-12 at 12:43 +0100, James Courtier-Dutton wrote:
> Hi,
> 
> I have a system where "kill -9 pid" as root, is not working.
> As a result, even the reboot command also does nothing.
> 
> Does anyone know why this might happen?

If a program gets caught in uninterruptible sleep, it cannot be killed.
I believe that this usually happens when the process is in kernel mode
doing waiting on some I/O and killing it at that point would result in
an inconsistency. Generally D-sleep shouldn't last long...

> renice seems to work, in that reading the new priority shows that the
> priority has changed.
> 
> I can remotely connect to the system so it is functioning quite well
> up to a point.
> "sync" also just hangs.

This should not happen. Perhaps some part of the kernel is deadlocked?!
If you find out what's gone wrong, you should probably report a kernel
bug. Is any part of the filesystem remote?

James

-- 
The Holy ettlz  theholyet...@googlemail.com
PGP key ID: 03F94B5D
---



signature.asc
Description: This is a digitally signed message part
-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] kill -9 pid now working

2009-05-12 Thread Isaac Close

--- On Tue, 12/5/09, James Courtier-Dutton  wrote:

> Hi,
> 
> I have a system where "kill -9 pid" as root, is not
> working.
> As a result, even the reboot command also does nothing.

Sounds like a possible rootkit says paranoia.

Are you able to kill processes with signal 9 in 'top' ?

Are any commands segfaulting ? * use '> output 2>&1' as STDERR may not be going 
to where expected. 
 
> 
> Does anyone know why this might happen?
> 
strace is your friend.

> renice seems to work, in that reading the new priority
> shows that the
> priority has changed.
> 
> I can remotely connect to the system so it is functioning
> quite well
> up to a point.
> "sync" also just hangs.

You have enough disk space and have fsck'd ? i've seen errornous filesystems 
report 'no space left' incorrectly, this had a knock on effect
to many programs producing un-expected results.

> 
> "dmesg" shows nothing wrong with the system. I.e. no stack
> traces, or
> HD sector errors.
> 
> Any ideas?



Isaac.


  

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


[Hampshire] kill -9 pid now working

2009-05-12 Thread James Courtier-Dutton
Hi,

I have a system where "kill -9 pid" as root, is not working.
As a result, even the reboot command also does nothing.

Does anyone know why this might happen?

renice seems to work, in that reading the new priority shows that the
priority has changed.

I can remotely connect to the system so it is functioning quite well
up to a point.
"sync" also just hangs.

"dmesg" shows nothing wrong with the system. I.e. no stack traces, or
HD sector errors.

Any ideas?

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--