From owner-freebsd-current@FreeBSD.ORG Tue Feb 27 22:43:19 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2FA816A401; Tue, 27 Feb 2007 22:43:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7D31E13C4A8; Tue, 27 Feb 2007 22:43:19 +0000 (UTC) (envelope-from jhb@freebsd.org) 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 l1RMhHiw054168; Tue, 27 Feb 2007 17:43:17 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 27 Feb 2007 15:26:08 -0500 User-Agent: KMail/1.9.1 References: <20070227084214.Y56223@fledge.watson.org> <20070227090505.K56223@fledge.watson.org> In-Reply-To: <20070227090505.K56223@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702271526.09457.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]); Tue, 27 Feb 2007 17:43:18 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2665/Tue Feb 27 11:26:03 2007 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: Robert Watson , Jiawei Ye Subject: Re: Processes stuck in *unp_m after recent uipc changes 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: Tue, 27 Feb 2007 22:43:19 -0000 On Tuesday 27 February 2007 04:05, Robert Watson wrote: > On Tue, 27 Feb 2007, Robert Watson wrote: > > > On Tue, 27 Feb 2007, Jiawei Ye wrote: > > > >> With the latest uipc locking changes, I experienced a hard lockup on my > >> -current machine. Many processes got stuck in *unp_m state and > >> ctrl-alt-delete at the console cannot properly restart the machine and I > >> had to hard-reset (no coredump available). Is there anyway to diagnose > >> this? > > > > Please configure WITNESS, DDB, and BREAK_TO_DEBUGGER on a box with a serial > > console. Then attach the output of "ps", "show alllocks", and "alltrace" to > > an e-mail. With any luck, this is a leaked lock in some missed error case > > and we can just add a missing unlock. Thanks! > > Obviously, INVARIANTS also good on general principle. :-) > > See the handbook chapter on debugging, and in particular live DDB debugging, > if you're running into any problems. 'show allchains' also considered helpful as it will reveal any deadlocks. -- John Baldwin