LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2009, 01:23 PM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Kill a hung task when kill -9 doesn't help


I try this command: 'cat /proc/bus/usb/001/001' It shoudn't do any harm to my system... But, 'cat' process hangs forever, and can't be killed by 'killall -9 cat' command. How can i stop such processes?
I can't even enter hibernation state because of kernel's inability to stop all tasks such as this one.
 
Old 01-14-2009, 01:42 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
EDIT: Solution provided by bkorb.

Last edited by indienick; 01-14-2009 at 02:11 PM. Reason: Can't read.
 
Old 01-14-2009, 01:48 PM   #3
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Rep: Reputation: 17
Your request is inside a kernel call and the kernel has locked the calling stack as unkillable. The SIGKILL is held pending return from the call. Reboot. Sorry.
 
Old 04-02-2009, 10:07 AM   #4
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
request is inside a kernel call and the kernel has locked the calling stack as unkillable
Maybe there is some way to force interruption of a kernel call, making it return an error to the process and unlock the process by writing a kernel module, or something... or such a module already exists?

Last edited by 10110111; 04-02-2009 at 10:12 AM.
 
Old 04-02-2009, 11:10 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If you look at the process in top, it will be in state "D", or uninterruptible sleep. It is off in a driver call and is actually uninterruptible. Reboot, sorry.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic -- not syncing: attempted to kill idle task oraclerg Linux - Distributions 16 11-25-2018 01:32 PM
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 03:47 PM
Attempted to kill idle task dasy2k1 Slackware 7 12-03-2005 06:55 PM
kernel panic : attempted to kill the idle task abirami Linux - Software 0 09-06-2004 03:56 AM
Cannot shutdown computer or kill -9 hung rsync JLindenmuth Linux - General 0 05-05-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:10 AM.

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
Open Source Consulting | Domain Registration