From owner-freebsd-stable@FreeBSD.ORG Fri Jul 20 00:00:53 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E6A6106566B for ; Fri, 20 Jul 2012 00:00:53 +0000 (UTC) (envelope-from greg@bonett.org) Received: from bonett.org (bonett.org [66.249.7.150]) by mx1.freebsd.org (Postfix) with ESMTP id 6123C8FC19 for ; Fri, 20 Jul 2012 00:00:53 +0000 (UTC) Received: from ubuntu (cpe-75-84-98-111.socal.res.rr.com [75.84.98.111]) by bonett.org (Postfix) with ESMTPSA id 04363124789; Fri, 20 Jul 2012 00:00:51 +0000 (UTC) Date: Thu, 19 Jul 2012 17:00:06 -0700 From: Greg Bonett To: Olivier Smedts Message-ID: <20120719170006.517bc9ea@ubuntu> In-Reply-To: References: <1342733091.12482.12.camel@home.bonett.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: kernel panic caused by zfs/sa.c X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 00:00:53 -0000 > > I'm experiencing a kernel panic that appears to be caused by zfs. > > > > No errors are making it into /var/log/messages, but here is the > > error message that appears on my screen after panic (transcribed): > > > > panic solaris assert BSWAP_32(sa_hdr_phys->sa_magic) == SA_MAGIC, > > file: /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c, > > line 1262 > > > > I can reproduce this by running "cd /usr/ports/www/webkit-ghtk2; > > make clean" > > If that's some sort of filesystem corruption, and you use portsnap, do > you still have a panic after "portsnap extract www/webkit-gtk2 && cd > /usr/ports/www/webkit-gtk2 && make clean" ? > Thanks for the suggestions, but "portsnap extract www/webkit-gtk2" causes a panic with the same error. Any other ideas? Also, in case it's relevant - this zpool is comprised of geli devices. Thanks. > > I looked at line 1262 in sa.c and it's part of a bit of code that > > checks if byte swapping is necessary. The code starting at line > > 1260: > > > > > > if (IS_SA_BONUSTYPE(bonustype) && sa_hdr_phys->sa_magic != SA_MAGIC > > && sa_hdr_phys->sa_magic != 0) { > > VERIFY(BSWAP_32(sa_hdr_phys->sa_magic) == > > SA_MAGIC); sa_byteswap(hdl, buftype); > > } > > > > As far as I can tell, my source is up to date and this code is the > > same as what is in 9-STABLE. > > > > I'm not sure what's causing the panic, does anyone have a > > suggestion? > > > > Thanks for the help. > > > > --Greg > > > >