From owner-freebsd-sparc64@FreeBSD.ORG Wed Jan 25 15:00:58 2012 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3CF61065673 for ; Wed, 25 Jan 2012 15:00:57 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 8DCCF8FC18 for ; Wed, 25 Jan 2012 15:00:57 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id q0PF0tfE015792; Wed, 25 Jan 2012 16:00:55 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id q0PF0shL015791; Wed, 25 Jan 2012 16:00:54 +0100 (CET) (envelope-from marius) Date: Wed, 25 Jan 2012 16:00:54 +0100 From: Marius Strobl To: Denny Schierz Message-ID: <20120125150054.GA15762@alchemy.franken.de> References: <5C638638-3D1A-417E-A574-9BCE51E08C59@4lin.net> <20120124202111.GB7731@alchemy.franken.de> <431CCA8C-2E5E-43BC-89EE-7F06CF8E8E8D@4lin.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <431CCA8C-2E5E-43BC-89EE-7F06CF8E8E8D@4lin.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Howto debug Kernel problems ? (jail -r -> freeze) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 15:00:58 -0000 On Wed, Jan 25, 2012 at 11:28:51AM +0100, Denny Schierz wrote: > hi, > > Am 24.01.2012 um 21:21 schrieb Marius Strobl: > > > On Mon, Jan 23, 2012 at 01:16:22PM +0100, Denny Schierz wrote: > >> hi, > >> > >> If I stop a jail (v2 with vnet), the jail doesn't completely disappear. "jls" shows the jail as active. If I try to remove the jail with "jail -r " the whole machine freezes. Other users with same options (i386) doesn't have this problem. So how can I debug it? > >> > > > > I'd start with a kernel built with BREAK_TO_DEBUGGER, DDB and KDB > > enabled. Then when it appears to hang try to break into the debugger > > by sending a break on the serial console. If that works try to bug > > virtualization@ and probably bz@ directly for information they > > want as given that you mention vnet it sounds like you're not > > seeing this problem without VIMAGE. > > > hmm, all debug options are active and I send the break signal from ALOM, but I think, that FreeBSD isn't configured to interpret the signal. Can I enter the kdb first (sysctl debug.kdb.enter=1) and than execute "jail -r 1" ? > Not that I'm aware of. Do you have a kernel built with options BREAK_TO_DEBUGGER? Does it work when the machine doesn't hang (you can resume via the "continue" command in the kernel debugger)? Do you send the break via the "break" command of the ALOM or by sending a break via a terminal attached to the ALOM console? Marius