I: approaching 4.5.20 release

Roland McGrath roland at redhat.com
Tue Apr 13 07:42:15 UTC 2010

> I'm not sure what Andreas's PTRACE_SETOPTIONS patches are, as I've
> just joined the list.

It uses PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEEXEC to avoid both being
confused by, and interfering with, normal SIGTRAP signals used by the

> But I have just written a different PTRACE_SETOPTIONS patch to use
> PTRACE_O_TRACE{FORK,VFORK,CLONE}, so that it's possible to trace vfork
> without converting it to fork.  That is essential on uClinux where
> fork isn't an option, and tracing vfork just freezes with the current
> strace.  But it's also a cute improvement for regular Linux.

That is also worthwhile, though substantially more hairy to do perfectly.
This fits in with Andreas's changes and should happen after they are

> It works well and I've tried to keep it as tidy as one can given the
> messy strace starting point, but I'm sure that it needs a round of
> review before it is committed, if it ever is.
> What's the interested level in that kind of patch?

It's a fine thing to do.  As with the simpler patch, the hairiest part of
the problem is robustly handling varying levels of support in different
kernels without assuming you know what works until you've seen it work.
That is quite a lot more complex in the fork/clone case in ways we can get
into in the review.  I suspect those changes will be more than hairy enough
that we'd put them off past 4.5.21 even, assuming Andreas's simpler changes
go into 4.5.21.


More information about the Strace-devel mailing list