kernel trap 12 while reloading pf + altq

Volker volker at vwsoft.com
Fri May 18 11:11:13 UTC 2007


Hi!

I'm wondering if any of the hackers is able to take a look at this panic?

The following panic occurred while trying to reload pf rules. The
reload was needed as `pfctl -sq' gave me something like 'bad file
descriptor'. I haven't seen these panics for a while now but months
ago I've had a lot of trouble using altq + netgraph/mpd and the system
panic'ed every time reloading rules (with queuing). Probably this is
also netgraph related again.

Also I'm wondering why kgdb doesn't give me the panic message on
startup (it's taken from dmesg, the backtrace is taken from kgdb as it
also contains source code line numbers).

Machine is 6-STABLE, csup'ed and compiled 20 days ago.

Thx!

Volker

Following: panic message, backtrace, uname, dmesg


kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x100
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc05ae2ec
stack pointer	        = 0x28:0xdac91920
frame pointer	        = 0x28:0xdac91934
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= resume, IOPL = 0
current process		= 6033 (pfctl)
trap number		= 12
panic: page fault
cpuid = 0



(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc05b9af1 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:409
#2  0xc05b9f13 in panic (fmt=0xc07f0c85 "%s")
    at /usr/src/sys/kern/kern_shutdown.c:565
#3  0xc07aec9e in trap_fatal (frame=0xdac918e0, eva=0)
    at /usr/src/sys/i386/i386/trap.c:837
#4  0xc07ae1f4 in trap (frame=
      {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -998496384, tf_esi
= 0, tf_ebp = -624355020, tf_isp = -624355060, tf_ebx = -1018739444,
tf_edx = 0, tf_ecx = 2, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip
= -1067785492, tf_cs = 32, tf_eflags = 65606, tf_esp = -1018739444,
tf_ss = -624355004})
    at /usr/src/sys/i386/i386/trap.c:270
#5  0xc07951fa in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#6  0xc05ae2ec in _mtx_lock_sleep (m=0xc347450c, tid=3296470912, opts=0,
    file=0x0, line=0) at /usr/src/sys/kern/kern_mutex.c:546
#7  0xc0472a8e in rmc_delete_class (ifd=0xc4174c04, cl=0xc577aa00)
    at /usr/src/sys/contrib/altq/altq/altq_rmclass.c:572
#8  0xc046cd70 in cbq_class_destroy (cbqp=0xc4174800, cl=0xc577aa00)
    at /usr/src/sys/contrib/altq/altq/altq_cbq.c:116
#9  0xc046ce6f in cbq_clear_interface (cbqp=0xc4174800)
    at /usr/src/sys/contrib/altq/altq/altq_cbq.c:179
#10 0xc046d165 in cbq_remove_altq (a=0x0)
    at /usr/src/sys/contrib/altq/altq/altq_cbq.c:299
---Type <return> to continue, or q <return> to quit---
#11 0xc0474eb4 in altq_remove (a=0x0)
    at /usr/src/sys/contrib/altq/altq/altq_subr.c:642
#12 0xc048ade4 in pf_commit_altq (ticket=1)
    at /usr/src/sys/contrib/pf/net/pf_ioctl.c:1123
#13 0xc048eea5 in pfioctl (dev=0xc3482600, cmd=4,
    addr=0x3 <Address 0x3 out of bounds>, flags=3, td=0x1)
    at /usr/src/sys/contrib/pf/net/pf_ioctl.c:3056
#14 0xc0556727 in devfs_ioctl_f (fp=0xc396f798, com=3222029394,
    data=0xc3dc40d0, cred=0xc57a8900, td=0xc47c2780)
    at /usr/src/sys/fs/devfs/devfs_vnops.c:479
#15 0xc05e7e6b in ioctl (td=0xc47c2780, uap=0xdac91d04) at file.h:265
#16 0xc07af0c0 in syscall (frame=
      {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = -1077944964,
tf_esi = 0, tf_ebp = -1077944952, tf_isp = -624353948, tf_ebx =
-1077942400, tf_edx = 134737920, tf_ecx = 0, tf_eax = 54, tf_trapno =
0, tf_err = 2, tf_eip = 672821475, tf_cs = 51, tf_eflags = 582, tf_esp
= -1077944996, tf_ss = 59})
    at /usr/src/sys/i386/i386/trap.c:983
#17 0xc079524f in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:200
#18 0x00000033 in ?? ()


uname -a:
FreeBSD bellona.sz.vwsoft.com 6.2-STABLE FreeBSD 6.2-STABLE #20: Fri
Apr 27 16:41:22 CEST 2007
root at bellona.sz.vwsoft.com:/usr/obj/usr/src/sys/BELLONA  i386


dmesg:
Copyright (c) 1992-2007 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-STABLE #20: Fri Apr 27 16:41:22 CEST 2007
    root at bellona.sz.vwsoft.com:/usr/obj/usr/src/sys/BELLONA
ACPI APIC Table: <AMIINT VIA_K7  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2400+ (1998.06-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1

Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
real memory  = 536805376 (511 MB)
avail memory = 515674112 (491 MB)
ioapic0 <Version 0.3> irqs 0-23 on motherboard
wlan: mac acl policy registered
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <AMIINT VIA_K7> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge> mem
0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
ath0: <Atheros 5212> mem 0xdffe0000-0xdffeffff irq 18 at device 10.0
on pci0
ath0: Ethernet address: 00:09:5b:89:7d:1f
ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
ifpi0: <AVM Fritz!Card PCI> port 0xd400-0xd41f mem
0xdfffbfe0-0xdfffbfff irq 19 at device 11.0 on pci0
ifpi0: [GIANT-LOCKED]
ifpi0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2)
ifpi0: passive stack unit 0
ahc0: <Adaptec 29160N Ultra160 SCSI adapter> port 0xd000-0xd0ff mem
0xdfffa000-0xdfffafff irq 16 at device 12.0 on pci0
ahc0: [GIANT-LOCKED]
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
cbb0: <RF5C475 PCI-CardBus Bridge> at device 13.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
atapci0: <VIA 6420 SATA150 controller> port
0xec00-0xec07,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc0f,0xd800-0xd8ff
irq 20 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 21 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 21 at device
16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdfffbd00-0xdfffbdff irq
21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xb800-0xb8ff mem
0xdfffbc00-0xdfffbcff irq 23 at device 18.0 on pci0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0b:6a:7d:a9:a2
acpi_button1: <Sleep Button> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10
on acpi0
sio0: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcafff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <12 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
aue0: ADMtek USB To LAN Converter, rev 1.10/1.01, addr 2
miibus1: <MII bus> on aue0
acphy0: <ACXXX 10/100 media interface> on miibus1
acphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aue0: Ethernet address: 00:00:4e:11:16:c6
aue0: if_start running deferred for Giant
ucom0: Lucent Technologies, Inc. ELSA Modem Board, rev 1.00/1.00, addr
2, iclass 2/2
ucom0: data interface 1, has CM over data, has break
ucom0: status change notification available
aue1: NETGEAR NETGEAR FA101 Adapter, rev 1.10/1.01, addr 3
miibus2: <MII bus> on aue1
acphy1: <ACXXX 10/100 media interface> on miibus2
acphy1:  100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX,
100baseTX-FDX, auto
aue1: Ethernet address: 00:09:5b:0a:ad:55
aue1: if_start running deferred for Giant
ubt0: vendor 0x0f4d product 0x1000, rev 1.10/4.01, addr 2
ubt0: vendor 0x0f4d product 0x1000, rev 1.10/4.01, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x3
ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x84,
isoc-out=0x5; wMaxPacketSize=49; nframes=6, buffer size=294
Timecounter "TSC" frequency 1998058984 Hz quality 800
Timecounters tick every 1.000 msec
i4brbch: 2 raw B channel access device(s) attached
i4btel: 1 ISDN telephony interface device(s) attached
i4bctl: ISDN system control port attached
i4b: ISDN call control device attached
i4btrc: 1 ISDN trace device(s) attached
Fast IPsec: Initialized Security Association Processing.
Waiting 5 seconds for SCSI devices to settle
acd0: CDRW <LITE-ON LTR-24102B/5S07> at ata0-master UDMA33
ad4: 238475MB <SAMSUNG SP2504C VT100-50> at ata2-master SATA150
ad6: 238475MB <WDC WD2500KS-00MJB0 02.01C03> at ata3-master SATA150
GEOM_MIRROR: Device gm1s1 created (id=4094255700).
GEOM_MIRROR: Device gm1s1: provider ad4s1 detected.
GEOM_MIRROR: Device gm1s2 created (id=3538945394).
GEOM_MIRROR: Device gm1s2: provider ad4s2 detected.
GEOM_MIRROR: Device gm1s3 created (id=1220332722).
GEOM_MIRROR: Device gm1s3: provider ad4s3 detected.
GEOM_MIRROR: Device gm1s1: provider ad6s1 detected.
GEOM_MIRROR: Device gm1s1: provider ad6s1 activated.
GEOM_MIRROR: Device gm1s1: provider ad4s1 activated.
GEOM_MIRROR: Device gm1s1: provider mirror/gm1s1 launched.
GEOM_MIRROR: Device gm1s2: provider ad6s2 detected.
GEOM_MIRROR: Device gm1s2: provider ad6s2 activated.
GEOM_MIRROR: Device gm1s2: provider ad4s2 activated.
GEOM_MIRROR: Device gm1s2: provider mirror/gm1s2 launched.
GEOM_MIRROR: Device gm1s3: provider ad6s3 detected.
GEOM_MIRROR: Device gm1s3: provider ad6s3 activated.
GEOM_MIRROR: Device gm1s3: provider ad4s3 is stale.
GEOM_MIRROR: Device gm1s3: provider mirror/gm1s3 launched.
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
sa0 at ahc0 bus 0 target 12 lun 0
sa0: <HP C5683A C305> Removable Sequential Access SCSI-3 device
sa0: 40.000MB/s transfers (20.000MHz, offset 32, 16bit)
cd0 at ata0 bus 0 target 0 lun 0
cd0: <LITE-ON LTR-24102B 5S07> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present



More information about the freebsd-stable mailing list