kern/109571: kernel panic after update to newest -current kernel

dhchen dhchen at dhchen.com
Mon Feb 26 17:00:13 UTC 2007


>Number:         109571
>Category:       kern
>Synopsis:       kernel panic after update to newest -current kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 26 17:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     dhchen
>Release:        7.0 current
>Organization:
>Environment:
FreeBSD equinox.dhchen.com 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Mon Jan 22 12:54:35 CST 2007     root at equinox.dhchen.com:/usr/obj/usr/src/sys/EQUINOX  i386

>Description:
On a kernel build at Jan 22, everything goes fine. On a kernel built with recent
source (I csuped at about 200702261610 GMT), kernel panics at booting. If the 
machine is attached with a usb keyboard, kernel will panic after:

Timecounter "TSC" frequency 1399850815 Hz quality 800
Timecounters tick every 1.000 msec

line, and no crash dump avaliable. If I boot machine without usb keyboard, it will enter /etc/rc script and when setting ip address, kernel panics again. The backtrace:

..
orm0: <ISA Option ROMs> at iomem 0xc0000-0xce7ff,0xd0000-0xd0fff,0xd1000-0xd1fff pnpid ORM0000 on is
a0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
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
Timecounter "TSC" frequency 1399846538 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 117800MB <HDS722512VLAT80 V33OA6MA> at ata0-master UDMA100
ad4: 238475MB <HDT722525DLA380 V44OA96A> at ata2-master SATA150
Trying to mount root from ufs:/dev/ad4s1a
<118>Loading configuration files.
<118>kernel dumps on /dev/ad4s1b
<118>Entropy harvesting:
<118> interrupts
<118> ethernet
<118> point_to_point
<118> kickstart
<118>.
<118>swapon: adding /dev/ad4s1b as swap device
<118>Starting file system checks:
<118>/dev/ad4s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
<118>/dev/ad4s1a: clean, 87593 free (1961 frags, 10704 blocks, 0.8% fragmentation)
<118>/dev/ad4s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS
<118>/dev/ad4s1f: clean, 13837405 free (34925 frags, 1725310 blocks, 0.2% fragmentation)
<118>/dev/ad4s1g: FILE SYSTEM CLEAN; SKIPPING CHECKS
<118>/dev/ad4s1g: clean, 34009610 free (2266 frags, 4250918 blocks, 0.0% fragmentation)
<118>/dev/ad4s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
<118>/dev/ad4s1d: clean, 1295324 free (103764 frags, 148945 blocks, 3.4% fragmentation)
<118>/dev/ad4s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
<118>/dev/ad4s1e: clean, 50916 free (884 frags, 6254 blocks, 0.7% fragmentation)
<118>Mounting local file systems:
<118>.
<118>Setting hostname: equinox.dhchen.com.
<118>net.inet6.ip6.auto_linklocal:
<118>1
<118> ->
<118>0
<118>
module_register: module msk/miibus already exists!
Module msk/miibus failed to register: 17
module_register: module mskc/msk already exists!
Module mskc/msk failed to register: 17
module_register: module pci/mskc already exists!
Module pci/mskc failed to register: 17
module_register: module msk/miibus already exists!
Module msk/miibus failed to register: 17
module_register: module mskc/msk already exists!
Module mskc/msk failed to register: 17
module_register: module pci/mskc already exists!
Module pci/mskc failed to register: 17
module_register: module msk/miibus already exists!
Module msk/miibus failed to register: 17
module_register: module mskc/msk already exists!
Module mskc/msk failed to register: 17
module_register: module pci/mskc already exists!
Module pci/mskc failed to register: 17
module_register: module msk/miibus already exists!
Module msk/miibus failed to register: 17
module_register: module mskc/msk already exists!
Module mskc/msk failed to register: 17
module_register: module pci/mskc already exists!
Module pci/mskc failed to register: 17
module_register: module fxp/miibus already exists!
Module fxp/miibus failed to register: 17
module_register: module cardbus/fxp already exists!
Module cardbus/fxp failed to register: 17
module_register: module pci/fxp already exists!
Module pci/fxp failed to register: 17
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0x0
stack pointer           = 0x28:0xd521fca8
frame pointer           = 0x28:0xd521fcd0
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         = 30 (irq12: mskc1 fxp1)
trap number             = 12
panic: page fault
KDB: stack backtrace:
db_trace_self_wrapper(c06db468,d521fb58,c0533917,c06d996e,c0744b80,...) at db_trace_self_wrapper+0x26
kdb_backtrace(c06d996e,c0744b80,c06cd240,d521fb64,100,...) at kdb_backtrace+0x2e
panic(c06cd240,c06ee968,c2a0a1b0,1,1,...) at panic+0xb7
trap_fatal(d521fc68,0,1,0,0,...) at trap_fatal+0x342
trap_pfault(d521fc68,0,0,306173,0,...) at trap_pfault+0x225
trap(d521fc68) at trap+0x3dc
calltrap() at calltrap+0x6
--- trap 0xc, eip = 0, esp = 0xd521fca8, ebp = 0xd521fcd0 ---
(null)(c2a0a000,c28df680,c2a0a000,c2a07bd0,c2abb330,...) at 0
ithread_loop(c2abb330,d521fd38,38373635,3c3b3a39,403f3e3d,...) at ithread_loop+0x76
fork_exit(c05197a0,c2abb330,d521fd38) at fork_exit+0x80
fork_trampoline() at fork_trampoline+0x8
--- trap 0, eip = 0, esp = 0xd521fd70, ebp = 0 ---
Uptime: 2s
Physical memory: 494 MB
Dumping 37 MB: 22 6

#0  doadump () at pcpu.h:147
147             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt full
#0  doadump () at pcpu.h:147
No locals.
#1  0xc0533646 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:411
        first_buf_printf = 1
#2  0xc05339ad in panic (fmt=0xc06cd240 "%s") at /usr/src/sys/kern/kern_shutdown.c:567
        td = (struct thread *) 0xc2a07bd0
        bootopt = 256
        newpanic = 1
        ap = 0xc2a07bd0 ""
        buf = "page fault", '\0' <repeats 245 times>
#3  0xc06a8c22 in trap_fatal (frame=0xd521fc68, eva=0) at /usr/src/sys/i386/i386/trap.c:868
        code = 0
        type = 12
        ss = 40
        esp = 0
        softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1,
  ssd_xx = 9, ssd_xx1 = 2, ssd_def32 = 1, ssd_gran = 1}
        msg = 0x0
#4  0xc06a88b5 in trap_pfault (frame=0xd521fc68, usermode=0, eva=0)
    at /usr/src/sys/i386/i386/trap.c:777
        va = 0
        vm = (struct vmspace *) 0x0
        map = 0x1
        rv = 1
        ftype = 1 '\001'
        td = (struct thread *) 0xc2a07bd0
        p = (struct proc *) 0xc2a0a000
#5  0xc06a842c in trap (frame=0xd521fc68) at /usr/src/sys/i386/i386/trap.c:462
        td = (struct thread *) 0xc2a07bd0
        p = (struct proc *) 0xc2a0a000
        i = 0
        ucode = 0
        type = 12
        code = 0
        addr = 0
        eva = 0
        ksi = {ksi_link = {tqe_next = 0xc2adc8c0, tqe_prev = 0x0}, ksi_info = {si_signo = 0,
    si_errno = 0, si_code = 1145653248, si_pid = 0, si_uid = 0, si_status = 0,
    si_addr = 0xc2adc900, si_value = {sival_int = 0, sival_ptr = 0x0}, _reason = {_fault = {
        _trapno = -1028805548}, _timer = {_timerid = -1028805548, _overrun = 0}, _mesgq = {
        _mqd = -1028805548}, _poll = {_band = -1028805548}, __spare__ = {__spare1__ = -1028805548,
        __spare2__ = {0, 1918988325, 7630437, 0, 0, 1701994864, 1663071342}}}},
  ksi_flags = 1936941420, ksi_sigq = 0x0}
#6  0xc06961fb in calltrap () at /usr/src/sys/i386/i386/exception.s:139
No locals.
#7  0x00000000 in ?? ()
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)


Machine hardware: dmesg from successful boot using Jan 22's kernel:

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 7.0-CURRENT #4: Mon Jan 22 12:54:35 CST 2007
    root at equinox.dhchen.com:/usr/obj/usr/src/sys/EQUINOX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) M processor         1.40GHz (1399.85-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6d8  Stepping = 8
  Features=0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
  AMD Features=0x100000<NX>
real memory  = 527302656 (502 MB)
avail memory = 506507264 (483 MB)
acpi0: <IntelR AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xe400-0xe407 mem 0xd0600000-0xd067ffff,0xc0000000-0xcfffffff,0xd0680000-0xd06bffff irq 10 at device 2.0 on pci0
agp0: <Intel 82915GM (915GM GMCH) SVGA controller> on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
pci0: <multimedia> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 10 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
mskc0: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0xb000-0xb0ff mem 0xd0020000-0xd0023fff irq 10 at device 0.0 on pci1
msk0: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x01> on mskc0
msk0: Ethernet address: 00:13:d3:50:f5:b9
miibus0: <MII bus> on msk0
e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
mskc0: [FAST]
pcib2: <ACPI PCI-PCI bridge> irq 12 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
mskc1: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0xc000-0xc0ff mem 0xd0120000-0xd0123fff irq 12 at device 0.0 on pci2
msk1: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x01> on mskc1
msk1: Ethernet address: 00:13:d3:50:f5:b8
miibus1: <MII bus> on msk1
e1000phy1: <Marvell 88E1111 Gigabit PHY> PHY 0 on miibus1
e1000phy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
mskc1: [FAST]
pci0: <serial bus, USB> at device 29.0 (no driver attached)
pci0: <serial bus, USB> at device 29.1 (no driver attached)
pci0: <serial bus, USB> at device 29.2 (no driver attached)
pci0: <serial bus, USB> at device 29.3 (no driver attached)
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xd000-0xd03f mem 0xd0500000-0xd0500fff,0xd0200000-0xd02fffff irq 10 at device 0.0 on pci3
miibus2: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> PHY 1 on miibus2
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:b3:07:08:94
fxp1: <Intel 82559 Pro/100 Ethernet> port 0xd100-0xd13f mem 0xd0502000-0xd0502fff,0xd0300000-0xd03fffff irq 12 at device 1.0 on pci3
miibus3: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> PHY 1 on miibus3
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:02:b3:0c:21:b3
pci3: <serial bus, FireWire> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH6 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <Intel ICH6 SATA150 controller> port 0xe500-0xe507,0xe600-0xe603,0xe700-0xe707,0xe800-0xe803,0xe900-0xe90f irq 11 at device 31.2 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
ichsmb0: <SMBus controller> port 0x500-0x51f irq 11 at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
acpi_tz0: <Thermal Zone> on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FAST]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FAST]
orm0: <ISA Option ROMs> at iomem 0xc0000-0xce7ff,0xd0000-0xd0fff,0xd1000-0xd1fff pnpid ORM0000 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
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
Timecounter "TSC" frequency 1399850815 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 117800MB <HDS722512VLAT80 V33OA6MA> at ata0-master UDMA100
ad4: 238475MB <HDT722525DLA380 V44OA96A> at ata2-master SATA150
Trying to mount root from ufs:/dev/ad4s1a

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list