Linking panic

Peter Kadau peter.kadau at tuebingen.mpg.de
Fri Nov 21 12:08:12 PST 2003


Hi !

    Also be sure that you have updated sources and compiled and installed
    a new kernel plus all the modules rather then just a new kernel.
OK, the system is uptodate with the exception of etc/rc.d/sysdb, v 1.2
which I checked out right now by doing cvsup.
I always go through the whole hassle, to wit:
++++snip
cvsup -L2 /etc/dragonfly-cvs-supfile
cd /usr
mv -f include LASTinclude
rm -rf include obj src
mkdir include obj
cvs -d /local/dragonfly co src
cp -p /local/config/STRAYCAT src/sys/i386/conf/
cd src
make installincludes
make buildworld
make buildkernel
make installkernel
rm -rf /usr/include /usr/share/man /usr/share/openssl
mkdir -p /usr/include /usr/share/{man,openssl}
make installworld
mergemaster -i
cp -p /usr/obj/usr/src/sys/STRAYCAT/kernel.debug /local/crash/
++++snip end
I'd call that rather paranoid except for
the skipping of rebooting into single-user mode
before installing the world.
Never had a problem with that though.
OK, here we go:
I attach a sectionized concatenation of
/etc/make.conf
/usr/src/sys/i386/conf/STRAYCAT
/boot/loader.conf
The panic is right after the "Preloaded .." stuff.
Here is what I scribbled down:
++++snip
Preloaded elf kernel "/kernel" at 0xc033200
Preloaded elf module "/modules/snd_cmi.ko" at 0xc0332238
Preloaded eld module "/module/snd_pcm.ko" at 0xc03322e0
Fatal trap 12: page fault while in kernel mode
fault virtual address      = 0x8063f728
fault code                 = supervisor read, page not present
instruction pointer        = 0x8:0xc015f77a
stack pointer              = 0x10:0xc0354d64
frame pointer              = 0x10:0xc0354d84
code segment               = base 0x0, limit 0xfffff, type 0x1b
                           = DPL 0, pres 1, def32 1, gran 1
processor eflags           = interrupt enabled, resume, IOPL = 0
current process            = 0 (thread 0)
current thread             = pri 44 (CRIT)
interrupt mask             = net tty bio cam
trap number                = 12
panic: page fault
Uptime: 0s
+++++snip end
If you need more information, let me know.

Cheers
Peter
--
<peter.kadau at xxxxxxxxxxxxxxxx>
Campus der Max-Planck-Institute Tübingen
Netzwerk- und Systemadministration
Tel: +49 7071 601 598
Fax: +49 7071 601 616
#### compendium
####
#### /etc/make.conf
####
# The CPUTYPE variable controls which processor should be targetted for
# generated code.  This controls processor-specific optimizations in
# certain code (currently only OpenSSL) as well as modifying the value
# of CFLAGS to contain the appropriate optimization directive to gcc.
# The automatic setting of CFLAGS may be overridden using the
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognised:
#   Intel x86 architecture:
#       (AMD CPUs)	k7 k6-2 k6 k5
#       (Intel CPUs)	p4 p3 p2 i686 i586/mmx i586 i486 i386
#   Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4
#
# If you experience any problems after setting this flag, please unset
# it again before submitting a bug report or attempting to modify code.
# It may be that certain types of software will become unstable after being
# compiled with processor-specific (or higher - see below) optimization flags.
# If in doubt, do not set CPUTYPE or CFLAGS to non-default values.
#
CPUTYPE=p3
# CFLAGS controls the compiler settings used when compiling C code.
# Note that optimization settings above -O (-O2, ...) are not recommended
# or supported for compiling the world or the kernel - please revert any
# nonstandard optimization settings to "-O" before submitting bug reports
# to the developers.
# Note also that at this time the -O2 setting is known to produce BROKEN
# CODE on the Alpha platform.
#
CFLAGS= -O -pipe 
#CFLAGS= -O2 -pipe 
#
# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
# for use in developing FreeBSD and testing changes.  They can be used by
# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.  -Wconversion is not
# included here due to compiler bugs, eg: mkdir()'s mode_t argument.
#
#BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
#		-Wcast-qual -Wchar-subscripts -Winline \
##		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
#		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
#
# To compile just the kernel with special optimizations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway).
# There is very little to gain by using higher optimization levels, and doing
# so can cause problems.
#
KERNCONF=STRAYCAT
COPTFLAGS= -O -pipe 
#
#
XFREE86_VERSION=	4
#
DOC_LANG=	en_US.ISO8859-1 de_DE.ISO8859-1
JADETEX=	yes
WITH_MOTIF=	yes
NO_I4B=	true	# do not build isdn4bsd package
#NO_LPR=	true	# do not build lpr and related programs
NOUUCP=	true	# do not build uucp related programs
NOPROFILE=	true	# Avoid compiling profiled libraries
WITH_LIBMAP=yes
#
#SUP_UPDATE= yo
#SUPFLAGS= -L2 
#SUPFILE= /etc/cvsup.src
#
# use good old tgz files
# otherwise lots of errors
PKG_SUFX=.tgz
# ruby
RUBY_DEFAULT_VER=1.8
RUBY_VER=1.8
#
WITH_XFT=yes
#
# -- use.perl generated deltas -- #
# Created: Sat Nov 15 15:43:05 2003
# Setting to use base perl from ports:
PERL_VER=5.8.2
PERL_VERSION=5.8.2
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
#### end of /etc/make.conf 
####
####
#### /usr/src/sys/i386/conf/STRAYCAT
####
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.54 2003/04/28 03:41:46 simokawa Exp $
# $DragonFly: src/sys/i386/conf/GENERIC,v 1.3 2003/10/02 19:45:40 drhodus Exp $

machine		i386
cpu		I686_CPU
ident		STRAYCAT
maxusers	0

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
#options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MFS			#Memory Filesystem
options 	MD_ROOT			#MD is a potential root device
#options 	NFS			#Network Filesystem
#options 	NFS_ROOT		#NFS usable as root device, NFS required
#options 	MSDOSFS			#MSDOS Filesystem
#options 	CD9660			#ISO 9660 Filesystem
#options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=1000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug 
					# output.  Adds ~215k to driver.

# To make an SMP kernel, the next two are needed
#options 	SMP			# Symmetric MultiProcessor Kernel
#options 	APIC_IO			# Symmetric (APIC) I/O

# To support HyperThreading, HTT is needed in addition to SMP and APIC_IO
#options 	HTT			# HyperThreading Technology

# Debugging for Development
#options         DDB
#options         INVARIANTS
#options         INVARIANT_SUPPORT



device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
#device		fd1	at fdc0 drive 1
#
# If you have a Toshiba Libretto with its Y-E Data PCMCIA floppy,
# don't use the above line for fdc0 but the following one:
#device		fdc0

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
#device		atapifd			# ATAPI floppy drives
#device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI Controllers

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

# RAID controllers interfaced to the SCSI subsystem

# RAID controllers

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa?
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options 	PCVT_SCANSET=2		# IBM keyboards are non-std

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0	at nexus? disable flags 0x20 # Advanced Power Management

# PCCARD (PCMCIA) support

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		ppi		# Parallel port interface device

# PCI Ethernet NICs.

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
device		rl		# RealTek 8129/8139
device		sis		# Silicon Integrated Systems SiS 900/SiS 7016

# ISA Ethernet NICs.
# 'device ed' requires 'device miibus'
# Xircom Ethernet
# PRISM I IEEE 802.11b wireless NIC.
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those parameters here.
# The probe order of these is presently determined by i386/isa/isa_compat.c.

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif		# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# USB support
# USB Ethernet, requires mii

# FireWire support
#

# local additions
# RANDOM_IP_ID causes the ID field in IP packets to be randomized
options 	RANDOM_IP_ID
# TCP_DROP_SYNFIN adds support for ignoring TCP packets with SYN+FIN. This
# prevents nmap et al. from identifying the TCP/IP stack, but breaks support
options 	TCP_DROP_SYNFIN		#drop TCP packets with SYN+FIN
# ICMP_BANDLIM enables icmp error response bandwidth limiting.   You
options 	ICMP_BANDLIM
#
options	DDB
options DDB_UNATTENDED
##
# dragonfly specifics
#### end of /usr/src/sys/i386/conf/STRAYCAT
####
####
#### /boot/loader.conf
####
# -- sysinstall generated deltas -- #
#userconfig_script_load="YES"
dumpdev="ad0s1b"	# Set device for crash dumps
if_sis_load="NO"		# Silicon Integrated Systems SiS 900/7016
snd_cmi_load="YES"		# cmi8738 pci
#### end of /boot/loader.conf
####
#### end of compendium




More information about the Kernel mailing list