From owner-freebsd-current@FreeBSD.ORG Mon Jun 19 19:08:45 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7E2F16A474 for ; Mon, 19 Jun 2006 19:08:45 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1609743D66 for ; Mon, 19 Jun 2006 19:08:37 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail22.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k5JJ8Mki005792 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 20 Jun 2006 05:08:23 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k5JJ8MNa023842; Tue, 20 Jun 2006 05:08:22 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k5JJ8MD8023841; Tue, 20 Jun 2006 05:08:22 +1000 (EST) (envelope-from peter) Date: Tue, 20 Jun 2006 05:08:22 +1000 From: Peter Jeremy To: Yar Tikhiy Message-ID: <20060619190822.GE966@turion.vk2pj.dyndns.org> References: <20060618192011.GF715@turion.vk2pj.dyndns.org> <20060618152428.A36995@fledge.watson.org> <20060619184540.GJ23729@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="27ZtN5FSuKKSZcBU" Content-Disposition: inline In-Reply-To: <20060619184540.GJ23729@comp.chem.msu.su> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: current@freebsd.org Subject: Re: NULL pointer dereference panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 19 Jun 2006 19:08:45 -0000 --27ZtN5FSuKKSZcBU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 2006-Jun-19 22:45:41 +0400, Yar Tikhiy wrote: >Peter, what gcc options did you build the kernel with? My question >is unrelated to the panic, I'd just like to make stack traces look >sane in common cases :-) In /etc/make.conf: CPUTYPE?=3Dathlon-xp CFLAGS=3D-O -pipe COPTFLAGS=3D-O -pipe This gives a generic gcc line like: cc -c -O -pipe -march=3Dathlon-xp -Wall -Wredundant-decls -Wnested-externs = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-q= ual -Wundef -fformat-extensions -std=3Dc99 -g -nostdinc -I- -I. -I/usr/sr= c/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -i= nclude opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-g= rowth=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -= mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-= sse3 -ffreestanding -Werror /usr/src/sys/cam/cam_xpt.c Also, since some of the comments have mentioned timing windows, I should to mention that this is a UP system with PREEMPTION enabled. --=20 Peter Jeremy --27ZtN5FSuKKSZcBU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFElvYl/opHv/APuIcRAhLZAJ9+T3u1teo/PEPSdpGYahsHpCrhpACeKYaz 65R5D01DjEGZofedNplYdM4= =iXzo -----END PGP SIGNATURE----- --27ZtN5FSuKKSZcBU--