From owner-freebsd-hackers@FreeBSD.ORG Fri May 29 06:04:31 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620F51065672 for ; Fri, 29 May 2009 06:04:31 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7C08FC1B for ; Fri, 29 May 2009 06:04:30 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so3152794ana.13 for ; Thu, 28 May 2009 23:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=/XBaL5+jRvBLojIjxYAjYIiXiiAmewy7+Bf7jd/3V/4=; b=Y5w01pFFGEJkQB5CCj/ipF6Yj4ddf+VBDjW7++9vxeomTo1qWZa7CFbXsKqowTnrWL tYyuOh6aqNtSgNanSeNVZF8x5024RVJWa7C79icWHup4JRmi577QitGaxX5itXSC62z3 xr2KD+Tu8lNT0B7I5CLLzEjom5nFrMqfgo3QY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=TYRtygdAjFT5NE7nwH9U0rFaEuZP3PruP30o4VDxhY5BhIZOgApI1ajw7DKSb7F8ts 048+gIlaBsWd94DkUCgqm1Wn00TWa2WS2vw9MGxRDOkhWc9n42yrWZ8Cy0N2zaINKBO8 mlEYvqkUyQGA7P9CkDqXFnZqwbOHIyx/Bn1Xs= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.100.241.17 with SMTP id o17mr3100306anh.134.1243577069856; Thu, 28 May 2009 23:04:29 -0700 (PDT) In-Reply-To: <4d7dd86f0905282127u5215979akdd8ea286c73f090e@mail.gmail.com> References: <4d7dd86f0905282127u5215979akdd8ea286c73f090e@mail.gmail.com> Date: Thu, 28 May 2009 23:04:29 -0700 X-Google-Sender-Auth: 234b37b4925bbf8c Message-ID: <3c1674c90905282304s223349c4p8523abbbed8ade0b@mail.gmail.com> From: Kip Macy To: David N Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Debugging via DDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 06:04:31 -0000 On Thu, May 28, 2009 at 9:27 PM, David N wrote: > Hi, > > I know this might sound like a newbie question. > > I'm trying to debug a "Lockup" on 7.2-RELEASE. I've compiled DDB and > KDB into the kernel and make installkernel. (Can this be called a > deadlock?) > > The machine still response to pings, but it looks like all disk > activity has stopped. > > I can break into the debugger using CTRL-ALT-ESC, but after that, i > dont know what I'm looking for in particular. > > bt (backtrace) gives me the stuff like the keyboard mutex ( i assume > it was the last thing that happened, but obviously it was the break) > > Should I be including WITNESS? Include WITNESS. "ps" to list processes, "show proc" to see proc info, "thread " to switch to a thread, "show locks" to see locks held, show sleepc to see what you're blocked on (if a sleepq), and "show alllocks" to see all locks held -Kip