From owner-freebsd-current@FreeBSD.ORG Wed Jan 7 07:43:19 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44A4B16A4CE for ; Wed, 7 Jan 2004 07:43:19 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2916443D5F for ; Wed, 7 Jan 2004 07:43:18 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i07FhHAa010579; Wed, 7 Jan 2004 09:43:17 -0600 (CST) (envelope-from dan) Date: Wed, 7 Jan 2004 09:43:17 -0600 From: Dan Nelson To: Jens Schweikhardt Message-ID: <20040107154316.GO38169@dan.emsphone.com> References: <20040106204306.GA2675@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040106204306.GA2675@schweikhardt.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: current@freebsd.org Subject: Re: strace hangs waiting for lock X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 15:43:19 -0000 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. 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. http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/52190 -- Dan Nelson dnelson@allantgroup.com