From owner-freebsd-current@FreeBSD.ORG Thu Jan 10 20:02:23 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C175C16A417 for ; Thu, 10 Jan 2008 20:02:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 4712A13C448 for ; Thu, 10 Jan 2008 20:02:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8q) with ESMTP id 228052825-1834499 for multiple; Thu, 10 Jan 2008 15:03:47 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id m0AK2DK2006062; Thu, 10 Jan 2008 15:02:14 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 10 Jan 2008 15:02:18 -0500 User-Agent: KMail/1.9.6 References: <189878.45301.qm@web57002.mail.re3.yahoo.com> <200801101345.18691.jhb@freebsd.org> In-Reply-To: <200801101345.18691.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801101502.21286.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 10 Jan 2008 15:02:14 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5471/Thu Jan 10 13:35:34 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Unga , tabthorpe@freebsd.org Subject: Re: strace broken in 7.0? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 10 Jan 2008 20:02:23 -0000 On Thursday 10 January 2008 01:45:18 pm John Baldwin wrote: > On Thursday 10 January 2008 11:47:55 am Unga wrote: > > Hi all > > > > strace (v4.5.5) works well in 6.2. But strace (v4.5.6) > > develops following error in 7.0-PRERELEASE: > > $ strace pwd > > execve(0xbfbfe92c, [0xbfbfedf4], [/* 0 vars > > */]PIOCWSTOP: Input/output error > > > > Best Regards > > Unga > > I have lots of patches to strace at work to make it autogenerate most of its > tables and support amd64 (including i386 on amd64) as well as making it > reliably work in the fork-a-new-process case. I just don't have time to > work on getting them into the port. I think you are running into the latter > issue and I largely fixed it by using the same strategy in strace that truss > now uses for the fork-a-new-process case. You can find my strace patches at www.freebsd.org/~jhb/patches/strace.patch this has been tested on 4.x, 6.x, and 7.x. The 'ymakefile' is what we use to actually build strace and it invokes several scripts to build several of the tables (like the ioctl, errno, and syscall tables) at build-time from the current machine rather than trying to provide hardcoded versions that would have had to have a maze of #ifdef's to handle different versions and constant updates for new syscalls, etc. It is relative to strace-4.5.1. You can basically apply the patch to the 4.5.1 tarball and do 'make -f ymakefile' to get an strace binary. Again, I don't have time to get this into the port or even better, upstream into the strace sources, but I've cc'd the devel/strace maintainer if he wants to look at it. -- John Baldwin