PTRACE_GETEVENTMSG bug
Dmitry V. Levin
ldv at altlinux.org
Sat Feb 19 23:34:48 UTC 2011
On Sat, Feb 19, 2011 at 03:43:04PM -0500, Mike Frysinger wrote:
> On Saturday, February 19, 2011 15:06:06 Dmitry V. Levin wrote:
> > On Fri, Feb 18, 2011 at 09:52:54PM -0500, Mike Frysinger wrote:
> > > testing 65c1a81f6ad628240445ba24d888d25b2fd69c1e:
> > >
> > > ppc64: hangs hard when tracing forks
> >
> > Could you find out what
> > $ env -i strace -d -f /usr/bin/time /bin/true
> > prints on that system, please?
>
> # env -i ./strace -d -f /usr/bin/time /bin/true
> ptrace_setoptions = 0xe
[...]
> pid 11894 stopped, [SIGTRAP]
> clone( [wait(0x1057f) = 11894]
> pid 11894 stopped, [SIGTRAP]
> Process 0 attached
Thanks, this is enough. The bug is in the new PTRACE_GETEVENTMSG code,
I've pushed a commit that should hopefully fix it:
http://strace.git.sourceforge.net/git/gitweb.cgi?p=strace/strace;a=commitdiff;h=ldv/PTRACE_GETEVENTMSG
Please give it a try.
PTRACE_GETEVENTMSG should be automatically enabled on modern kernels,
so expected behavior on all architectures is
$ ./strace -df /bin/true 2>&1 |grep ^ptrace_setoptions
ptrace_setoptions = 0xe
and "strace -f /usr/bin/time /bin/true" should work properly everywhere.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110220/598e6c5f/attachment.bin>
More information about the Strace-devel
mailing list