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
pgpCSrNLuJdPI.pgp
Description: PGP signature
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
