GDB and sleeping processes
From: Aleksi Asikainen (aleksi.asikainen_at_infire.com)
Date: 08/26/03
- Previous message: Frank Sweetser: "Re: SOS - why does an application work fine with a hub but not a switch box?"
- Next in thread: Paul Pluzhnikov: "Re: GDB and sleeping processes"
- Reply: Paul Pluzhnikov: "Re: GDB and sleeping processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Aug 2003 18:07:09 +0300
Hi,
I have a server with a couple hundred of processes which I need attach with
gdb every now and then. The processes being 'live', I can't start them from
gdb, and I believe this is somewhat part of the problem; Linux wishes to
keenly put all of these processes to sleeping state and once they've gotten
to the sleeping state, gdb naturally has problems attaching itself to them.
Google suggested that sending SIGALRM to the process might wake it up, but
this doesn't seem to be so; if kill -s SIGALRM is sent to a process that
doesn't handle the signal, the process will quit. If it's sent to a process
that does handle the signal ('handle' here means using the signal(2) call),
then the process does not wake up.
What should I do to make sure the process will wake up? I'm running on
RedHat 7.3 with 2.4.20-13.8smp.
Aleksi Asikainen
- Previous message: Frank Sweetser: "Re: SOS - why does an application work fine with a hub but not a switch box?"
- Next in thread: Paul Pluzhnikov: "Re: GDB and sleeping processes"
- Reply: Paul Pluzhnikov: "Re: GDB and sleeping processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|