bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ps just hangs


From: Roland McGrath
Subject: Re: ps just hangs
Date: Thu, 25 Oct 2001 02:03:35 -0400 (EDT)

> On Thu, Oct 25, 2001 at 01:42:48AM -0400, Roland McGrath wrote:
> > Whenever ps hangs, try ps -M and then narrow down if it hangs only querying
> > specific processes without -M.
> 
> Got one.  What do I do next?
> 
> buildd@hurd:~$ ps -M
>   PID STAT     TIME COMMAND
>   656 Sw    0:00.35 gdb tail
>   743 Sx    0:00.01 /usr/bin/tail -f daemon.log
> buildd@hurd:~$ ps 656
>   PID TT STAT     TIME COMMAND
>   656 p1 Sw    0:00.35 gdb tail
> buildd@hurd:~$ ps 743
> ^C
> buildd@hurd:~$ 

Well don't be shy man, take your gdb there and attach it to the tail process!

What this means is that process 743 is not responding on its message port.
The -M flag to ps tells it not to try to use message ports.

So, you need to attach to that process and figure out what it's trouble is.
First you can do ps -M --threads 743 to see what you can see about its
threads.  There should be two.  The second one is the signal thread, and if
it is halted or something then that is bad.  With gdb, you can see what
this thread is doing and why it doesn't properly handle the message port RPCs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]