* strange signal on new clone creation under ptrace?
@ 2005-09-08 11:53 Tom Horsley
0 siblings, 0 replies; only message in thread
From: Tom Horsley @ 2005-09-08 11:53 UTC (permalink / raw)
To: linux-kernel; +Cc: bugsy
I'm seeing this on a redhat enterprise 4 system (so the kernel is
older than dirt in lkml time :-), but I wondered if it might
strike a familiar note to anyone working on ptrace issues.
In my debugger, I'm following clone and fork creation around
to debug children using PTRACE_SETOPTIONS. Normally when I get
the waitpid() status for a new clone, it shows up with SIGSTOP
as the initial reported signal. My debugger is expecting this
and handles it no problem.
In a hairy complex threads program a user has (which is apparently
using SIGUSR1 a lot), the very first status that ever shows up for
a brand new clone reports SIGUSR1 rather than SIGSTOP.
When I teach the debugger to deal with that and get the new clone
started up, it immediately gets the SIGSTOP I didn't get on the
initial status.
I haven't been able to create any test program to reproduce this
behavior, so I have no idea how it could happen, but it appears
as though the kernel managed to queue up the signals in the wrong
order.
Does this sound like a bug anyone remembers fixing? Does anyone
have an idea how I could make it happen? Just curious about what
the heck could be going on here (I can probably teach the debugger
to work around this as well).
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-08 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 11:53 strange signal on new clone creation under ptrace? Tom Horsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox