Date: Tue, 20 Jun 2006 05:08:22 +1000 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Yar Tikhiy <yar@comp.chem.msu.su> Cc: current@freebsd.org Subject: Re: NULL pointer dereference panic Message-ID: <20060619190822.GE966@turion.vk2pj.dyndns.org> In-Reply-To: <20060619184540.GJ23729@comp.chem.msu.su> References: <20060618192011.GF715@turion.vk2pj.dyndns.org> <20060618152428.A36995@fledge.watson.org> <20060619184540.GJ23729@comp.chem.msu.su>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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?=athlon-xp CFLAGS=-O -pipe COPTFLAGS=-O -pipe This gives a generic gcc line like: cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -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. -- Peter Jeremy [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFElvYl/opHv/APuIcRAhLZAJ9+T3u1teo/PEPSdpGYahsHpCrhpACeKYaz 65R5D01DjEGZofedNplYdM4= =iXzo -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060619190822.GE966>
