From owner-svn-src-head@FreeBSD.ORG Tue May 31 21:15:31 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A71021065672; Tue, 31 May 2011 21:15:31 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 054918FC1F; Tue, 31 May 2011 21:15:30 +0000 (UTC) Received: by vxc34 with SMTP id 34so5055905vxc.13 for ; Tue, 31 May 2011 14:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=norq3zd7oRlULio52RpsFziP0Dm+A6M9tDASJLMQyvk=; b=HbLpzu8tvswMW0VMVwqnKJMXlU9e10td4f8b4nSVgfjaMtL/4rMUVSitioqFXbW+H6 eUBZ8J/OZaE+XWc9LPfoBa0t8sM2zzsf4NdzMNe/ub8IOSzEp/zc8HaNS/IXnrocRVD8 dtQStnCPWXITSYuHMzRLD15zO3FQanDrrR2wg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ULEhFbvtbhfDN6ZQ9FEI68AX7kkj0iw70YeyGsR25Hn45SyoSnuv3/qKN5tyg/DpkN wv7ynPp2KsHFHLTn1j3Lmu7eNjZWMOcB2r424fs78IqQ23PJXLJzio5fwXecw7oeKc47 4jLrbQ/wP+2rqk/i5JJUK+7Aa/MKOPPLEbFqk= MIME-Version: 1.0 Received: by 10.220.124.71 with SMTP id t7mr2469370vcr.38.1306876530252; Tue, 31 May 2011 14:15:30 -0700 (PDT) Received: by 10.220.183.11 with HTTP; Tue, 31 May 2011 14:15:30 -0700 (PDT) In-Reply-To: References: <201105311729.p4VHTwrZ033296@svn.freebsd.org> Date: Tue, 31 May 2011 14:15:30 -0700 Message-ID: From: Garrett Cooper To: mdf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, "Kenneth D. Merry" Subject: Re: svn commit: r222537 - in head/sys: kern sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 21:15:31 -0000 On Tue, May 31, 2011 at 2:14 PM, Garrett Cooper wrote: > On Tue, May 31, 2011 at 2:00 PM, =A0 wrote: >> On Tue, May 31, 2011 at 10:29 AM, Kenneth D. Merry wro= te: >>> Author: ken >>> Date: Tue May 31 17:29:58 2011 >>> New Revision: 222537 >>> URL: http://svn.freebsd.org/changeset/base/222537 >>> >>> Log: >>> =A0Fix apparent garbage in the message buffer. >>> >>> =A0While we have had a fix in place (options PRINTF_BUFR_SIZE=3D128) to= fix >>> =A0scrambled console output, the message buffer and syslog were still g= etting >>> =A0log messages one character at a time. =A0While all of the characters= still >>> =A0made it into the log (courtesy of atomic operations), they were ofte= n >>> =A0interleaved when there were multiple threads writing to the buffer a= t the >>> =A0same time. >> >> This seems to panic my box with "lock "msgbuf" 0xfffffe0127ffffe0 >> already initialized". >> >> Unfortunately, though I booted with a fresh CURRENT this morning >> successfully, both /boot/kernel and /boot/kernel.old give this panic. >> To add insult to injury, when the kernel drops into the debugger, my >> keyboard input no longer works so I can't get a stack, etc. >> >> So: >> >> 1) Is there anything else I can do to help debug this? > > 1. sysctl debug.debugger_on_panic=3D1 ? Sorry.. I meant 'debug.debugger_on_panic=3D0'. >> 2) how can I resurrect this box without a reinstall? > > 2. Best way is to probably to use the bsdinstall CD, use the LiveCD > mode, setup the system as usual (mount /, mount devfs, chroot, mount > -a), rewind to an earlier version of svn (shouldn't be too hard if you > run /etc/rc.d/network restart from inside the chroot), rebuild the > kernel (and potentially world), and install the kernel to the chroot, > then exit and reboot (this is a method I picked up from installing > Gentoo Linux multiple times, but it should work for FreeBSD as well). > > This is part of the reason why I'm an avid using of make installkernel > INSTKERNNAME=3D$KERNCONF.$SVN_REVISION , symlink /boot/kernel to the > latest one I want to boot, and I only go through every once in a blue > moon to reap the kernels I don't need anymore -- I don't know until > after a few weeks soak on my workstation whether or not a regression > is present in the kernel. > >> I will try to repro on a virtual machine so I have a snapshot to come ba= ck to.