sysutils/strace wilderness on 6-CURRENT

From: Vladimir Grebenschikov <vova_at_fbsd.ru>
Date: Tue, 31 Aug 2004 14:28:00 +0400
Hi 

(fresh -CURREMT and fresh strace from ports, UP machine)

It silmple does nothing - sleeps foreaver in suspended:

# strace /bin/ls
^T
load: 0.14  cmd: strace 98957 [suspended] 0.00u 0.00s 0% 760k
^C
#

child program does not executed too.

But if do sometimes (often) if I do
# truss strace /bin/ls
(it works as expected)

and then 
# strace /bin/ls
execve(0xbfbfe0e0, [0xbfbfe5c4], [/* 0 vars */]) = 0
mmap(0, 3880, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28071000
munmap(0x28071000, 3880)                = 0
__sysctl([...], 0x2806da4c, 0xbfbfe378, NULL, 0) = 0
mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) =
0x28071000
issetugid(0)                            = 0
open("/etc/libmap.conf", O_RDONLY)      = 3
...

strace start work as expected, but only one time, second time it stick
again.

view from KDB:
[thread 100016]
Stopped at      kdb_enter+0x30: leave
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan
cmd
99035 c32448c0 d6a85000  207 99034 99034 0020002 stop[SUSP] strace
99034 c21f8a80 d7911000  207 98930 99034 0004002 [SLPQ pioctl
0xc32449e8][SLP] strace

-- 
Vladimir B. Grebenchikov
vova_at_fbsd.ru
Received on Tue Aug 31 2004 - 08:30:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:09 UTC