Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2004 14:28:00 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        "current@freebsd.org" <current@freebsd.org>
Subject:   sysutils/strace wilderness on 6-CURRENT
Message-ID:  <1093948080.29903.14.camel@localhost>

next in thread | raw e-mail | index | archive | help

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@fbsd.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1093948080.29903.14.camel>