From owner-svn-src-all@FreeBSD.ORG Tue May 31 21:14:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC77A106564A; Tue, 31 May 2011 21:14:55 +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 1CB7F8FC08; Tue, 31 May 2011 21:14:54 +0000 (UTC) Received: by vxc34 with SMTP id 34so5055329vxc.13 for ; Tue, 31 May 2011 14:14:54 -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=aMrjjS1X2rDOerO49Qj8AWvPjAZLTxy3XTRh/cqL/ZU=; b=cpK7RRCk8Yob1LJYYw4wq21jwEBJ7V+u1EjcXeS8NJ73vEY2zVBm6/Skxkj6mKk0TG TUz2//QrUH0fIQkR6DJFvdLL8KRoexZbRJAyQIaIf/LwI8leIWjtdw9YZm5Ztnx7R8XR IC4UeHx4p3Z2DF+WbAYAc5UqMpErnpjce0pbI= 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=rhidkrZPfMMMXweZRtxQifZCpMRCThYsMHeFy9Yk1eniSRfwsiseA6DS93pwHSbyWP efPi1AX/ouys45Ra4Dj8Wu/kjuhLSHgV00SeLC1dHMfuJobOyzxeTCzzpKKy36a/bJFG nT6fYr4n6Fa8rmX1oUfaPj785EXX5ElG90TVk= MIME-Version: 1.0 Received: by 10.52.67.146 with SMTP id n18mr992090vdt.232.1306876494211; Tue, 31 May 2011 14:14:54 -0700 (PDT) Received: by 10.220.183.11 with HTTP; Tue, 31 May 2011 14:14:54 -0700 (PDT) In-Reply-To: References: <201105311729.p4VHTwrZ033296@svn.freebsd.org> Date: Tue, 31 May 2011 14:14:54 -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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 21:14:56 -0000 On Tue, May 31, 2011 at 2:00 PM, wrote: > On Tue, May 31, 2011 at 10:29 AM, Kenneth D. Merry wrot= e: >> 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 ge= tting >> =A0log messages one character at a time. =A0While all of the characters = still >> =A0made it into the log (courtesy of atomic operations), they were often >> =A0interleaved when there were multiple threads writing to the buffer at= 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 ? > 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 bac= k to. HTH! -Garrett