From owner-freebsd-current Wed Nov 20 9: 1:46 2002 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 A25D737B401 for ; Wed, 20 Nov 2002 09:01:45 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9674443E77 for ; Wed, 20 Nov 2002 09:01:43 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id gAKH1fBF047385; Wed, 20 Nov 2002 12:01:41 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 20 Nov 2002 12:01:41 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Joel M. Baldwin" Cc: current@freebsd.org Subject: Re: panic: sleeping thread owns a mutex - with debug traceback In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 20 Nov 2002, Robert Watson wrote: > Hmm. Another thread has decided to sleep while holding an inpcb mutex. > Any chance this can be reproduced while running WITNESS? If so, you > should get a panic earlier when the other thread sleeps in the first > place. The easiest way to do that is if you can reproduce the panic with > WITNESS. If you can't reproduce the panic, you may be able to extract > this from your system core using gdb -- you want to figure out what the > thread owner of the mutex is doing -- in the context of the kassert() > below, td is the pointer to the thread that owns the mutex. I'm not sure > how to extract a stack trace from that information, unfortunately, perhaps > someone can give us pointers. (note: td from the priority_propagate() > argument is shadowed, which is annoying). Ack. I mis-read. You want the stack from thread td1 (the mutex owner), not thread td. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message