Re: strace hangs waiting for lock

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Wed, 7 Jan 2004 09:43:17 -0600
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_at_hal9000:~ 1 $ strace -V
> strace -- version 4.5.1
> schweikh_at_hal9000:~ $ uname -a
> FreeBSD hal9000.schweikhardt.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Dec 22 15:03:45 CET 2003     toor_at_hal9000.schweikhardt.net:/usr/obj/usr/src/sys/HAL9000  i386
> schweikh_at_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_at_allantgroup.com
Received on Wed Jan 07 2004 - 06:43:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC