From owner-freebsd-current@FreeBSD.ORG Wed Jun 12 20:39:53 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 78F79FC7 for ; Wed, 12 Jun 2013 20:39:53 +0000 (UTC) (envelope-from dim@freebsd.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id EEC9F10C5 for ; Wed, 12 Jun 2013 20:39:52 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::9d49:a585:bd3b:11af] (unknown [IPv6:2001:7b8:3a7:0:9d49:a585:bd3b:11af]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BA6A45C44; Wed, 12 Jun 2013 22:39:49 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: zfs kernel panic, known incompatibilities with clang & CPUTYPE/COPTFLAGS? From: Dimitry Andric In-Reply-To: <20130612223024.00003980@unknown> Date: Wed, 12 Jun 2013 22:39:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130612223024.00003980@unknown> To: Alexander Leidinger X-Mailer: Apple Mail (2.1508) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2013 20:39:53 -0000 On Jun 12, 2013, at 22:30, Alexander Leidinger = wrote: > I try to update from a pre-clang world (r242511M) to "now" (r251618M). > The resulting kernel boots, but while starting some jails (with ezjail > from ports, so fairly late in the boot process) I get a kernel panic > (IIRC zfs trying to access page 0). If you are running on i386, it might be a stack overflow? Try increasing the stack a little, it might help in that case. In any case, please try to get a backtrace. > Before I try to get some time to debug this, I would like to know if > there are some known incompatibilities with my make.conf settings. = With > gcc I used successfully this: > ---snip--- > COPTFLAGS=3D -O2 -pipe > CPUTYPE?=3Dcore2 > ---snip--- >=20 > With those settings I first did a buildworld, then a buildkernel with > the r251618 sources. >=20 > Are there some known issues with those settings? If yes, any = suggestions > what I should use instead? If not, would it be beneficial to try with > different settings (which ones)? "-O2 -pipe" is the default setting, so it should work. I personally also always use CPUTYPE core2, and I have never seen any panics. Then again, I do not usually use jails intensively... -Dimitry