bug-hurd
[Top][All Lists]
Advanced

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

Re: ps just hangs


From: Jeff Bailey
Subject: Re: ps just hangs
Date: Wed, 24 Oct 2001 23:16:23 -0700
User-agent: Mutt/1.2.5i

On Thu, Oct 25, 2001 at 02:03:35AM -0400, Roland McGrath wrote:

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

Sorry, sleepiness talking again.  =) I'm going to sleep after this
message.  I assume the system will be still stuck in the morning.  If
not, this isn't the first time it's happened.

> 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.

Ah, ok.

> 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.

hurd:~# ps -M --threads 743
USER       PID TH# STAT     TIME COMMAND
buildd     743     Sx    0:00.01 /usr/bin/tail -f daemon.log
                 0 S     0:00.01 
                 1 S     0:00.00 

GDB here seems to be stuck, and C-c won't break out back to the gdb prompt.

buildd@hurd:~$ gdb /usr/bin/tail
GNU gdb 5.0.90-cvs (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-gnu0.2"...(no debugging symbols 
found)...
(gdb) attach 743
Attaching to program `/usr/bin/tail', pid 743
^C^C 


-- 
Abandon the search for truth; settle for a good fantasy.




reply via email to

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