Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 09:43:17 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jens Schweikhardt <schweikh@schweikhardt.net>
Cc:        current@freebsd.org
Subject:   Re: strace hangs waiting for lock
Message-ID:  <20040107154316.GO38169@dan.emsphone.com>
In-Reply-To: <20040106204306.GA2675@schweikhardt.net>
References:  <20040106204306.GA2675@schweikhardt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 06), Jens Schweikhardt said:
> it appears the devel/strace port's strace utility does not work
> anymore (haven't tried for a long time, so this could be long
> standing issue). To reproduce:
> 
> schweikh@hal9000:~ 1 $ strace -V
> strace -- version 4.5.1
> schweikh@hal9000:~ $ uname -a
> FreeBSD hal9000.schweikhardt.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Dec 22 15:03:45 CET 2003     toor@hal9000.schweikhardt.net:/usr/obj/usr/src/sys/HAL9000  i386
> schweikh@hal9000:~ $ strace ls       # does nothing, just waits.
> ^C

It's intermittent on my machine.  Sometimes it works, sometimes it
doesn't.  Sounds like there's a race being lost somewhere.  Stracing an
existing process with -p always works for me.

<plug> If you're using strace because truss doesn't decode what you
want, try applying the patches in PR 52190.  It adds support for 8 more
common syscalls. </plug>

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/52190

-- 
	Dan Nelson
	dnelson@allantgroup.com



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