panic when portupgrade in jail (devfs related?)

Brock Johnson wildefire at brotay.net
Mon Nov 13 01:51:00 UTC 2006


Hi all,

I'm seeing this crash too. Trying to build pfSense while chrooted 
following the directions at 
http://wiki.pfsense.com/wikka.php?wakka=BuildingpFSense

I've got a dump and can reproduce this fairly reliably by running the 
build_embedded script. (1 in ~3 tries does it). I'll try to come up with 
a script that can reproduce it faster.

Backtrace follows:
Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 01
fault virtual address   = 0x3b3057d8
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc059b250
stack pointer           = 0x28:0xf1315a94
frame pointer           = 0x28:0xf1315aa0
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         = 24988 (script)
Dumping 1023 MB (3 chunks)
  chunk 0: 1MB (158 pages) ... ok
  chunk 1: 1022MB (261616 pages) 1006 990 974 958 942 926 910 894 878 
862 846 830 814 798 782 766 750 734 718 702 686 670 654 638 622 606 590 
574 558 542 526 510 494 478 462 446 430 414 398 382 366 350 334 318 302 
286 270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14 ... ok
  chunk 2: 1MB (128 pages)

#0  doadump () at pcpu.h:165
165     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc04573c9 in db_fncall (dummy1=0, dummy2=0, dummy3=1999, 
dummy4=0xf131589c "") at /usr/src/sys/ddb/db_command.c:492
#2  0xc0457142 in db_command (last_cmdp=0xc07b1cc4, cmd_table=0x0, 
aux_cmd_tablep=0xc0774d84, aux_cmd_tablep_end=0xc0774d88)
    at /usr/src/sys/ddb/db_command.c:350
#3  0xc045724a in db_command_loop () at /usr/src/sys/ddb/db_command.c:458
#4  0xc045930a in db_trap (type=12, code=0) at 
/usr/src/sys/ddb/db_main.c:222
#5  0xc057af8e in kdb_trap (type=0, code=0, tf=0xf1315a54) at 
/usr/src/sys/kern/subr_kdb.c:473
#6  0xc070d64b in trap_fatal (frame=0xf1315a54, eva=0) at 
/usr/src/sys/i386/i386/trap.c:828
#7  0xc070d337 in trap_pfault (frame=0xf1315a54, usermode=0, 
eva=993023960) at /usr/src/sys/i386/i386/trap.c:745
#8  0xc070cf1d in trap (frame=
      {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -991068160, tf_esi = 
-981443664, tf_ebp = -248423776, tf_isp = -248423808, tf_ebx = 
-991536128, tf_edx = -987051008, tf_ecx = -1065648064, tf_eax = 
-559038242, tf_trapno = 12, tf_err = 0, tf_eip = -1067863472, tf_cs = 
32, tf_eflags = 66178, tf_esp = 6, tf_ss = -986671872}) at 
/usr/src/sys/i386/i386/trap.c:435
#9  0xc06f667a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#10 0xc059b250 in ptcclose (dev=0xdeadc0de, flags=3, fmt=8192, 
td=0xc4ed8000) at linedisc.h:136
#11 0xc052e44f in giant_close (dev=0xc5309500, fflag=-559038242, 
devtype=-559038242, td=0xdeadc0de)
    at /usr/src/sys/kern/kern_conf.c:284
#12 0xc04f6919 in devfs_close (ap=0xf1315b44) at 
/usr/src/sys/fs/devfs/devfs_vnops.c:357
#13 0xc07220be in VOP_CLOSE_APV (vop=0xdeadc0de, a=0xf1315b44) at 
vnode_if.c:426
#14 0xc05d112c in vn_close (vp=0xc5805bb0, flags=3, 
file_cred=0xdeadc0de, td=0xc4ed8000) at vnode_if.h:227
#15 0xc05d2189 in vn_closefile (fp=0xc5bd0d80, td=0xdeadc0de) at 
/usr/src/sys/kern/vfs_vnops.c:867
#16 0xc04f6979 in devfs_close_f (fp=0xdeadc0de, td=0xdeadc0de) at 
/usr/src/sys/fs/devfs/devfs_vnops.c:369
#17 0xc053931e in fdrop_locked (fp=0xc5bd0d80, td=0xdeadc0de) at file.h:295
#18 0xc053924c in fdrop (fp=0xc5bd0d80, td=0xdeadc0de) at 
/usr/src/sys/kern/kern_descrip.c:2134
#19 0xc0537747 in closef (fp=0xc5bd0d80, td=0xc4ed8000) at 
/usr/src/sys/kern/kern_descrip.c:1954
#20 0xc053460e in close (td=0xc4ed8000, uap=0xdeadc0de) at 
/usr/src/sys/kern/kern_descrip.c:1012
#21 0xc070d9d2 in syscall (frame=
      {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 1, tf_esi = 0, 
tf_ebp = -1077944904, tf_isp = -248423068, tf_ebx = -1077944872, tf_edx 
= 672570784, tf_ecx = 0, tf_eax = 6, tf_trapno = 12, tf_err = 2, tf_eip 
= 672420611, tf_cs = 51, tf_eflags = 582, tf_esp = -1077944932, tf_ss = 
59}) at /usr/src/sys/i386/i386/trap.c:983
#22 0xc06f66cf in Xint0x80_syscall () at 
/usr/src/sys/i386/i386/exception.s:200
#23 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)


My system's RELENG_6 as of Nov. 4th around 7:30 CST.

dmesg.boot/kernel config/kldstat attached.



-------------- next part --------------
#
# 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 ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.441 2006/04/10 20:04:22 ps Exp $

machine		i386
cpu		I686_CPU
ident		SARCASM

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look for devices.

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

#options 	SCHED_ULE		# ULE scheduler
options 	SCHED_4BSD		# 4BSD scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_GPT		# GUID Partition Tables.
options		GEOM_MIRROR		# Gmirror
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

# Debugging for use in -current
options 	KDB			# Enable kernel debugger support.
options 	DDB			# Support DDB.
options 	GDB			# Support remote GDB.
options 	INVARIANTS		# Enable calls of extra sanity checking
options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
#options 	WITNESS			# Enable checks to detect deadlocks and cycles
#options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed

# To make an SMP kernel, the next two lines are needed
options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# Bus support.
device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		atapicd		# ATAPI CDROM drives
#device		ataraid		# ATA RAID drives
#device		atapifd		# ATAPI floppy drives
#device		atapist		# ATAPI tape drives
options 	ATA_STATIC_ID	# Static device numbering

# SCSI Controllers
device		mpt		# LSI-Logic MPT-Fusion
device		sym		# NCR/Symbios Logic (newer chipsets + those of `ncr')

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Add suspend/resume support for the i8254.
device		pmtimer

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports
device		uart		# Generic UART driver

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		ppi		# Parallel port interface device

# 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		dc		# DEC/Intel 21143 and various workalikes
device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		uscanner	# Scanners

# FireWire support
device		firewire	# FireWire bus code
device		sbp		# SCSI over FireWire (Requires scbus and da)
-------------- next part --------------
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-PRERELEASE #0: Sat Nov  4 19:47:37 CST 2006
    root at sarcasm.brotay.net:/usr/obj/usr/src/sys/SARCASM
ACPI APIC Table: <PTLTD  	 APIC  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Processor (1200.05-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480800<SYSCALL,MP,MMX+,3DNow+,3DNow>
real memory  = 1073217536 (1023 MB)
avail memory = 1041010688 (992 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x8000-0x807f,0x8080-0x80ff iomem 0xd8000-0xdbfff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <AMD 762 host to AGP bridge> port 0x1410-0x1413 mem 0xea000000-0xebffffff,0xe9b00000-0xe9b00fff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 768 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <bridge> at device 7.3 (no driver attached)
pcib2: <PCI-PCI bridge> at device 8.0 on pci0
pci2: <PCI bus> on pcib2
pcib3: <PCI-PCI bridge> at device 0.0 on pci2
pci3: <PCI bus> on pcib3
amr0: <LSILogic MegaRAID 1.53> mem 0xf0000000-0xf7ffffff irq 20 at device 0.0 on pci3
amr0: <LSILogic MegaRAID Elite 1600> Firmware G170, BIOS F316, 128MB RAM
pci2: <mass storage, SCSI> at device 1.0 (no driver attached)
mpt0: <LSILogic FC909 FC Adapter> port 0x1000-0x10ff mem 0xe8020000-0xe803ffff,0xe8000000-0xe800ffff irq 21 at device 9.0 on pci0
mpt0: [GIANT-LOCKED]
mpt0: MPI Version=1.0.0.0
mpt0: mpt_read_cfg_page: Config Info Status 20
mpt0: failed to read FC page 1
mpt0: WARN: mpt_intr index == 65535 (reply_desc == 0x9f4c4380)
mpt0: mpt_wait_req(14) timed out
mpt0: personality mpt_cam attached but would not enable (5)
pcib4: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci4: <ACPI PCI bus> on pcib4
ohci0: <OHCI (generic) USB controller> mem 0xe8220000-0xe8220fff irq 19 at device 0.0 on pci4
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pcib5: <PCI-PCI bridge> at device 4.0 on pci4
pci5: <PCI bus> on pcib5
dc0: <Intel 21143 10/100BaseTX> port 0x4000-0x407f mem 0xe9800000-0xe98003ff irq 16 at device 4.0 on pci5
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> on miibus0
dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:c0:95:e2:33:d0
dc1: <Intel 21143 10/100BaseTX> port 0x4080-0x40ff mem 0xe9800400-0xe98007ff irq 17 at device 5.0 on pci5
miibus1: <MII bus> on dc1
dcphy1: <Intel 21143 NWAY media interface> on miibus1
dcphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc1: Ethernet address: 00:c0:95:e2:33:d1
sym0: <875> port 0x3000-0x30ff mem 0xe8223800-0xe82238ff,0xe8221000-0xe8221fff irq 17 at device 5.0 on pci4
sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: [GIANT-LOCKED]
sym1: <875> port 0x3400-0x34ff mem 0xe8223c00-0xe8223cff,0xe8222000-0xe8222fff irq 18 at device 5.1 on pci4
sym1: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: [GIANT-LOCKED]
pci4: <display, VGA> at device 6.0 (no driver attached)
fwohci0: <VIA Fire II (VT6306)> port 0x3800-0x387f mem 0xe8223000-0xe82237ff irq 19 at device 7.0 on pci4
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:50:22:66:00:22:33:a3
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0x3880-0x38ff mem 0xe8224000-0xe822407f irq 19 at device 8.0 on pci4
miibus2: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus2
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:e0:81:29:3d:9b
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <Hewlett-Packard HP LaserJet 1100.1.0> PRINTER MLC,MFPDTF1,PCL,PJL
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc87ff,0xca000-0xcd7ff,0xe0000-0xe3fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
umass0: Lexar Media CF READER   ?, rev 1.00/0.01, addr 2
Timecounters tick every 1.000 msec
acd0: CDRW <YAMAHA CRW2100E/1.0D> at ata1-master PIO4
Waiting 5 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
(noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
amrd0: <LSILogic MegaRAID logical drive> on amr0
amrd0: 350030MB (716861440 sectors) RAID 5 (optimal)
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE ST318404LW 0006> Fixed Direct Access SCSI-3 device 
da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da1 at sym0 bus 0 target 1 lun 0
da1: <SEAGATE ST318404LW 0006> Fixed Direct Access SCSI-3 device 
da1: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
SMP: AP CPU #1 Launched!
da2 at umass-sim0 bus 0 target 0 lun 0
da2: <LEXAR CF READER 1.00> Removable Direct Access SCSI-2 device 
da2: 1.000MB/s transfers
da2: 122MB (250368 512 byte sectors: 64H 32S/T 122C)
GEOM_MIRROR: Device sys0 created (id=3225984353).
GEOM_MIRROR: Device sys0: provider da0s1 detected.
GEOM_MIRROR: Device sys0: provider da1s1 detected.
GEOM_MIRROR: Device sys0: provider da1s1 activated.
GEOM_MIRROR: Device sys0: provider da0s1 activated.
GEOM_MIRROR: Device sys0: provider mirror/sys0 launched.
Trying to mount root from ufs:/dev/mirror/sys0a
-------------- next part --------------
Id Refs Address    Size     Name
 1    4 0xc0400000 4884f8   kernel
 2    1 0xc0889000 b43c     amr.ko
 3    1 0xc0895000 65f9c    acpi.ko


More information about the freebsd-stable mailing list