From owner-freebsd-current@FreeBSD.ORG Tue Jan 6 12:43:22 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 4B4DF16A4CE for ; Tue, 6 Jan 2004 12:43:22 -0800 (PST) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF48243D49 for ; Tue, 6 Jan 2004 12:43:18 -0800 (PST) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 2AD45FE34; Tue, 6 Jan 2004 21:43:17 +0100 (CET) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i06Kh6kC002710 for ; Tue, 6 Jan 2004 21:43:06 +0100 (CET) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.10/8.12.10/Submit) id i06Kh6US002709 for current@freebsd.org; Tue, 6 Jan 2004 21:43:06 +0100 (CET) (envelope-from schweikh) Date: Tue, 6 Jan 2004 21:43:06 +0100 From: Jens Schweikhardt To: current@freebsd.org Message-ID: <20040106204306.GA2675@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Mailman-Approved-At: Wed, 07 Jan 2004 05:14:32 -0800 Subject: 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: Tue, 06 Jan 2004 20:43:22 -0000 hello, world\n 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 During this, ps ax shows: schweikh@hal9000:~ $ psg strace UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 1001 2630 866 0 8 0 1356 828 pioctl I+ p1 0:00.00 strace ls 1001 2631 2630 0 96 0 1356 784 - TL+ p1 0:00.00 strace ls ps(1) says "L Marks a process that is waiting to acquire a lock." For some reason, the lock is never acquired. If however, I use ktrace *in addition*, everything works: schweikh@hal9000:~ 130 $ ktrace strace ls execve(0xbfbfe1fc, [0xbfbfe6c0], [/* 0 vars */]) = 0 mmap(0, 3568, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x2806f000 munmap(0x2806f000, 3568) = 0 __sysctl([...], 0x2806d46c, 0xbfbfe4a4, NULL, 0) = 0 mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0x2806f000 issetugid(0x2804d000) = 0 open("/etc/libmap.conf", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/run/ld-elf.so.hints", O_RDONLY) = 3 read(3, " file version\0%s: unsupported fi"..., 128) = 128 lseek(3, 128, SEEK_SET) = 128 [...] Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)