From owner-freebsd-stable Fri Nov 8 13:43:43 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD47237B404 for ; Fri, 8 Nov 2002 13:43:41 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-146.dsl.lsan03.pacbell.net [63.207.60.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0F9143E42 for ; Fri, 8 Nov 2002 13:43:40 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id B99D366B5E; Fri, 8 Nov 2002 13:43:39 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 03E61113D; Fri, 8 Nov 2002 13:45:16 -0800 (PST) Date: Fri, 8 Nov 2002 13:45:16 -0800 From: Kris Kennaway To: David Coder Cc: Kris Kennaway , freebsd-stable@FreeBSD.ORG Subject: Re: gettimeofday Message-ID: <20021108214516.GB26662@rot13.obsecurity.org> References: <20021107044635.GA19055@rot13.obsecurity.org> <20021107113822.C6531-100000@porky.dcoder.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021107113822.C6531-100000@porky.dcoder.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Nov 07, 2002 at 12:11:21PM -0500, David Coder wrote: > :> the passwd command hangs on my 4.7-stable system. truss shows that the > :> "gettimeofday()" call is not answered. why would that happen? > :Can you please post the truss output? It may be that the process is > :looping in userland, not hanging in the kernel via a system call (so > :truss wouldn't see it). > Here's the output. i don't know why the apparent call to yp. it's not enabled. It's not _configured_ on your system, but it's always present in the code (otherwise if you were to decide to set it up you'd need to recompile every binary on your system, including ports). > gettimeofday(0xbfbff414,0x0) = 0 (0x0) > SIGNAL 2 > SIGNAL 2 > SIGNAL 2 > process exit, rval = 2 As I guessed, the process is not hanging in gettimeofday(), but is doing something in userland. You'll need to rebuild/reinstall passwd with debugging symbols enabled (CFLAGS="-ggdb", STRIP=) and get a gdb backtrace of the running passwd program to work out where it's looping. Kris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message