This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
race between attach and signal
- From: Andrew Cagney <cagney at redhat dot com>
- To: frysk at sources dot redhat dot com
- Date: Fri, 23 Jun 2006 13:02:06 -0400
- Subject: race between attach and signal
just fyi,
Nurden and I just figured out why:
http://sourceware.org/bugzilla/show_bug.cgi?id=2819
occurs. Briefly, the frysk process sends the kernel the sequence:
ptrace ATTACH PID
signal PID SIGNAL
The kernel, via waitpid, then either returns stopped-for-no-reason
matching the ATTACH, but occasionally the SIGNAL is delivered leading to
a stopped-with-signal.
I don't think it's possible to create a deterministic test for this.
Andrew