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
 [wait(0x137f) = 11894]
pid 11894 stopped, [SIGSTOP]
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
geteuid( [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)                               = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
kill(11894, SIGSTOP [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)                    = 0
 [wait(0x137f) = 11894]
pid 11894 stopped, [SIGSTOP]
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
 [wait(0x137f) = 11894]
pid 11894 stopped, [SIGSTOP]
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
execve("/usr/bin/time", ["/usr/bin/time", "/bin/true"], [/* 0 vars */] 
[wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
brk(0 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)                                  = 0x10015000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 
[wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x40000027000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
access("/etc/ld.so.preload", R_OK [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)      = -1 ENOENT (No such file or directory)
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
open("/etc/ld.so.cache", O_RDONLY [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)      = 3
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
fstat(3,  [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
{st_mode=S_IFREG|0644, st_size=17083, ...}) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(NULL, 17083, PROT_READ, MAP_PRIVATE, 3, 0 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x40000028000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
close(3 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)                                = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
open("/lib/libc.so.6", O_RDONLY [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)        = 3
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
read(3,  [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
"\177ELF\2\2\1\0\0\0\0\0\0\0\0\0\0\3\0\25\0\0\0\1\0\0\0\0\0\32Mp"..., 832) = 
832
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
fstat(3,  [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
{st_mode=S_IFREG|0755, st_size=1753152, ...}) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 
[wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x4000002d000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(NULL, 1829592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0 
[wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x4000003b000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mprotect(0x400001cc000, 61440, PROT_NONE [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(0x400001db000, 110592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x190000 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x400001db000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(0x400001f6000, 15064, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x400001f6000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
close(3 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)                                = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 
[wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0x4000002e000
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mprotect(0x400001db000, 16384, PROT_READ [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mprotect(0x10013000, 4096, PROT_READ [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)   = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
mprotect(0x40000036000, 4096, PROT_READ [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
munmap(0x40000028000, 17083 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
)            = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
clone( [wait(0x1057f) = 11894]
pid 11894 stopped, [SIGTRAP]
Process 0 attached
 [wait(0x137f) = 11895]
Process 11895 attached (waiting for parent)
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x4000002d820) = 11895
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
[pid 11894] rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTART},  [wait(0x57f) = 
11894]
pid 11894 stopped, [SIGTRAP]
{SIG_DFL, [], 0}, 8) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
[pid 11894] rt_sigaction(SIGQUIT, {SIG_IGN, [QUIT], SA_RESTART},  [wait(0x57f) 
= 11894]
pid 11894 stopped, [SIGTRAP]
{SIG_DFL, [], 0}, 8) = 0
 [wait(0x57f) = 11894]
pid 11894 stopped, [SIGTRAP]
[pid 11894] wait4(-1, Process 11894 suspended
^Ccleanup: looking at pid 11894
 <unfinished ...>
cleanup: looking at pid 0
detach: checking sanity: Invalid argument
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Z
[1]+  Stopped                 env -i ./strace -d -f /usr/bin/time /bin/true
# kill -9 %1

[1]+  Stopped                 env -i ./strace -d -f /usr/bin/time /bin/true
# uname -a
[1]+  Killed                  env -i ./strace -d -f /usr/bin/time /bin/true
Linux rooster 2.6.28-gentoo #2 SMP Tue Dec 28 08:41:26 PST 2010 ppc64 POWER5+ 
(gs) CHRP IBM,9133-55A GNU/Linux
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
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

Reply via email to