Bug 49208 - ps (and killall, shutdown) hangs
Summary: ps (and killall, shutdown) hangs
Status: CLOSED DUPLICATE of bug 61503
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: procps
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-16 21:38 UTC by Mark H Johnson
Modified: 2007-04-18 16:34 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2002-07-01 13:27:29 UTC

Attachments (Terms of Use)

Description Mark H Johnson 2001-07-16 21:38:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2smp i686)

Description of problem:
We are developing a large multi-tasking application (using Linux Threads).
We use ps in scripts to kill jobs that are "hung" due to our own bugs.
After several runs/kills, the system gets into a state where ps will no
longer list all of the selected processes - it hangs. In a similar manner,
"killall -9 (our program here)" will also hang instead of killing the
selected application. Attempts to cleanly shut down the system also fail at
the step where it attempts to kill all the running jobs.

How reproducible:

Steps to Reproduce:
1. Run script to start our application. Debug, get stuck.
2. Run script to kill our application (killall -9 [our app]).
[repeat 1 & 2 until system begins to hang]

Actual Results:  Several iterations of these two steps work OK. After first
failure, always fails to kill the application. Other utilities like ps,
top, and shutdown also begin to fail to work. 

Expected Results:  Application runs after [1]. Application is dead after

Additional info:

If we use the reset button after attempting to shutdown the system, the
file system is not save properly [and e2fsck runs on next boot].

Comment 1 Joerg Krause 2001-07-19 13:27:05 UTC
We have the same problem here. After more than 200 processes ps stops to work. We could solve this problem after
switching back to a patched procps-2.06 instead of 2.07.

Comment 2 Wagner T. Correa 2002-03-23 02:02:13 UTC
I'm experiencing the same problem running kernel 2.4.9-31 and procps-2.0.7-11 on
a AMD Athlon.

Comment 3 Alexander Larsson 2002-06-20 13:35:14 UTC
Bug 61503 is likely related to this.

Comment 4 Alexander Larsson 2002-08-08 13:50:34 UTC

*** This bug has been marked as a duplicate of 61503 ***

Note You need to log in before you can comment on or make changes to this bug.