strace and clone

Wichert Akkerman wichert at
Sun Sep 3 22:16:34 UTC 2000

I finally got around to looking at clone() support in strace. It
seems that changing the argument like it did doesn't work since the
kernel has already decoded it by then. So, out goes setargs (it's still
in the code but might as well be removed), and in goes the breakpoint
trick (needed anyway) and the normal fork() handling.

Also had to make a minor change in file.c to get things compiling
again with the latest libc (haven't checked glibc 2.1.93 yet),
and the end result seems to be that strace handles clone. At
least it handles the testcase (test/clone.c) nicely.

Can people please test if clone tracing works for them? I'm interested
in both success and failure reports, preferably with kernel version
and architecture mentioned.


 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert at          |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <>

More information about the Strace-devel mailing list