Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 22:03:09 +0000 (GMT)
From:      Gavin Atkinson <gavin@ury.york.ac.uk>
To:        <stable@freebsd.org>, <qa@freebsd.org>
Subject:   4.5-PRE panic in vfs_cache with softupdates, via chipset
Message-ID:  <Pine.BSF.4.33.0201092138440.89714-400000@ury.york.ac.uk>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

Hi,

My machine, a Duron 800 Sony VAIO laptop, paniced while running buildworld
under 4.5-PRERELEASE cvsupped 14:00 on 08/01/2002. I'm no kernel debugger
and freely admit i have no idea what to do, but hopefully the gdb output
below will help somebody.  kernel core file can be uploaded somewhere if
specific people want to see it.

I was running buildworld, with /usr/src and /usr/obj on seperate
partitions, both with softupdates on. I have the problematic VIA
southbridge. I was building world, then suspended it (ctrl-z) before
suspending the laptop with 'apm -z'. Later, woke it up, and about 20
seconds later resumed the build. Two or three more files were compiled
before the kernel panic occured.

I've attached a dmesg and the gdb output, as well as the output from
'pciconf -r -b pci0:0:0 0x0 0xff', in case it is some problem with the via
chipset. The laptop has run stable except for this one panic and has
compiled world several times. the debug kernel and vmcore are available
for download if someone wants to look at them. Email me privately for the
url.

Thanks!

gavin


[-- Attachment #2 --]
epsilon# gdb -k /usr/obj/usr/src/sys/VAIO/kernel.debug -c /var/crash/vmcore.0
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
IdlePTD at phsyical address 0x003d4000
initial pcb at physical address 0x00315d00
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x7200738
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01887a0
stack pointer           = 0x10:0xc9a1ecd8
frame pointer           = 0x10:0xc9a1ece4
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         = 75518 (cpp0)
interrupt mask          = none
panic: from debugger
panic: from debugger
Uptime: 7h7m39s
dumping to dev #ad/0x20001, offset 761856
dump ata0: resetting devices .. done
128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109
108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85
 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 5
8 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3
2 1
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:473
473             if (dumping++) {
(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:473
#1  0xc015fef7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:313
#2  0xc01602e5 in panic (fmt=0xc02afbe4 "from debugger")
    at /usr/src/sys/kern/kern_shutdown.c:581
#3  0xc0138a01 in db_panic (addr=-1072134240, have_addr=0, count=1,
    modif=0xc9a1eb44 "") at /usr/src/sys/ddb/db_command.c:435
#4  0xc01389a1 in db_command (last_cmdp=0xc02ebfe4, cmd_table=0xc02ebe24,
    aux_cmd_tablep=0xc0310ef8) at /usr/src/sys/ddb/db_command.c:333
#5  0xc0138a66 in db_command_loop () at /usr/src/sys/ddb/db_command.c:457
#6  0xc013ab83 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:71
#7  0xc02834ee in kdb_trap (type=12, code=0, regs=0xc9a1ec98)
    at /usr/src/sys/i386/i386/db_interface.c:158
#8  0xc0292e60 in trap_fatal (frame=0xc9a1ec98, eva=119539512)
    at /usr/src/sys/i386/i386/trap.c:951
#9  0xc0292b39 in trap_pfault (frame=0xc9a1ec98, usermode=0, eva=119539512)
    at /usr/src/sys/i386/i386/trap.c:849
#10 0xc02926df in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16,
      tf_edi = -912623936, tf_esi = -912134412, tf_ebp = -912134940,
      tf_isp = -912134972, tf_ebx = 119539488, tf_edx = 7283,
      tf_ecx = -912623916, tf_eax = -1058316288, tf_trapno = 12, tf_err = 0,
      tf_eip = -1072134240, tf_cs = 8, tf_eflags = 66050, tf_esp = 0,
      tf_ss = -912623936}) at /usr/src/sys/i386/i386/trap.c:448
#11 0xc01887a0 in cache_lookup (dvp=0xc99a76c0, vpp=0xc9a1eee0, cnp=0xc9a1eef4)
    at /usr/src/sys/kern/vfs_cache.c:210
#12 0xc0188cbc in vfs_cache_lookup (ap=0xc9a1ed74)
    at /usr/src/sys/kern/vfs_cache.c:471
#13 0xc02352b1 in ufs_vnoperate (ap=0xc9a1ed74)
    at /usr/src/sys/ufs/ufs/ufs_vnops.c:2423
#14 0xc018bd51 in lookup (ndp=0xc9a1eecc) at vnode_if.h:52
#15 0xc018b84c in namei (ndp=0xc9a1eecc) at /usr/src/sys/kern/vfs_lookup.c:153
#16 0xc0194143 in vn_open (ndp=0xc9a1eecc, fmode=1, cmode=0)
    at /usr/src/sys/kern/vfs_vnops.c:138
#17 0xc019024c in open (p=0xc840ca00, uap=0xc9a1ef80)
    at /usr/src/sys/kern/vfs_syscalls.c:999
#18 0xc029313d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
      tf_edi = 0, tf_esi = 134777536, tf_ebp = -1077939820,
      tf_isp = -912134188, tf_ebx = 0, tf_edx = 134687620, tf_ecx = 134777565,
      tf_eax = 5, tf_trapno = 0, tf_err = 2, tf_eip = 134597472, tf_cs = 31,
      tf_eflags = 659, tf_esp = -1077939880, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1155
#19 0xc02842a5 in Xint0x80_syscall ()
#20 0x804d5f9 in ?? ()
#21 0x804caf8 in ?? ()
#22 0x804af97 in ?? ()
#23 0x804a623 in ?? ()
#24 0x8048135 in ?? ()
(kgdb) f 11
#11 0xc01887a0 in cache_lookup (dvp=0xc99a76c0, vpp=0xc9a1eee0, cnp=0xc9a1eef4)
    at /usr/src/sys/kern/vfs_cache.c:210
210                     numchecks++;
(kgdb) p numchecks
$1 = 32266723
(kgdb)
Suspended
epsilon# head -220 /usr/src/sys/kern/vfs_cache.c |tail -20
                        }
                        *vpp = dvp->v_dd;
                        return (-1);
                }
        }
        hash = fnv_32_buf(cnp->cn_nameptr, cnp->cn_namelen, FNV1_32_INIT);
        hash = fnv_32_buf(&dvp->v_id, sizeof(dvp->v_id), hash);
        LIST_FOREACH(ncp, (NCHHASH(hash)), nc_hash) {
                numchecks++;
                if (ncp->nc_dvp == dvp && ncp->nc_nlen == cnp->cn_namelen &&
                    !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen))
                        break;
        }
        /* We failed to find an entry */
        if (ncp == 0) {
                if ((cnp->cn_flags & MAKEENTRY) == 0) {
                        nummisszap++;
                } else {
epsilon# fg
gdb -k /usr/obj/usr/src/sys/VAIO/kernel.debug -c /var/crash/vmcore.0
(kgdb) p ncp
$2 = (struct namecache *) 0x0


[-- Attachment #3 --]
Copyright (c) 1992-2002 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 4.5-PRERELEASE #4: Tue Jan  8 16:03:14 GMT 2002
    root@epsilon.ury.york.ac.uk:/usr/obj/usr/src/sys/VAIO
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Duron(tm) Processor (800.03-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x670  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
real memory  = 134217728 (131072K bytes)
config> q
avail memory = 126672896 (123704K bytes)
Preloaded elf kernel "kernel" at 0xc03b5000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b509c.
Preloaded elf module "snd_via82c686.ko" at 0xc03b50ec.
Preloaded elf module "snd_pcm.ko" at 0xc03b5194.
module_register_init: MOD_LOAD (vesa, c029fee0, 0) error 6
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00fdf60
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <VIA 8363 (Apollo KT133) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mobility-1 graphics accelerator> at 0.0 irq 5
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0x1c40-0x1c4f at device 7.1 on pci0
atapci0: Correcting VIA config for southbridge data corruption bug
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0x1c00-0x1c1f irq 9 at device 7.2 on pci0
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 0x1c20-0x1c3f irq 9 at device 7.3 on pci0
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
isab1: <PCI to ISA bridge (vendor=1106 device=3057)> at device 7.4 on pci0
pcm0: <VIA VT82C686A> port 0x1c50-0x1c53,0x1c54-0x1c57,0x1000-0x10ff irq 5 at device 7.5 on pci0
chip1: <VIA 82C686 AC97 Modem> port 0x1400-0x14ff irq 5 at device 7.6 on pci0
pcic0: <TI PCI-1420 PCI-CardBus Bridge> irq 9 at device 10.0 on pci0
pcic0: PCI Memory allocated: 0x44000000
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1420 PCI-CardBus Bridge> irq 10 at device 10.1 on pci0
pcic1: PCI Memory allocated: 0x44001000
pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <unknown card> (vendor=0x104c, dev=0x8020) at 14.0 irq 9
rl0: <RealTek 8139 10/100BaseTX> port 0x1800-0x18ff mem 0xe8004800-0xe80048ff irq 10 at device 16.0 on pci0
rl0: Ethernet address: 08:00:46:2f:8b:01
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd3fff,0xd4000-0xd67ff,0xdc000-0xdffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pcf0: can't reserve irq, polled mode.
pcf0: <PCF8584 I2C bus controller> at port 0x320-0x321 irq 5 on isa0
iicbus0: <Philips I2C bus> on pcf0 addr 0xaa
iicsmb0: <I2C to SMB bridge> on iicbus0
smbus0: <System Management Bus> on iicsmb0
smb0: <SMBus general purpose I/O> on smbus0
iic0: <I2C general purpose I/O> on iicbus0
ad0: 14403MB <HITACHI_DK23CA-15> [29264/16/63] at ata0-master UDMA100
acd0: DVD-ROM <QSI DVD-ROM SDR-081> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s1a


[-- Attachment #4 --]
0x00000006 0x00000011 0x00000005 0x00000003
0x00000006 0x00000000 0x00000010 0x00000022
0x00000003 0x00000000 0x00000000 0x00000006
0x00000000 0x00000008 0x00000000 0x00000000
0x00000008 0x00000000 0x00000000 0x000000f0
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x0000004d 0x00000010 0x000000f6 0x00000080
0x00000000 0x00000000 0x00000000 0x00000000
0x000000a0 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000016 0x000000f4 0x000000fb 0x000000b4
0x00000047 0x0000008d 0x00000008 0x00000008
0x000000e8 0x000000e0 0x00000000 0x00000000
0x00000004 0x00000008 0x00000008 0x00000008
0x0000003f 0x000000aa 0x000000cb 0x000000e0
0x00000000 0x00000012 0x00000000 0x00000000
0x00000040 0x0000002c 0x00000065 0x0000000f
0x00000000 0x0000007f 0x00000000 0x00000000
0x000000d6 0x00000088 0x000000cc 0x0000000c
0x0000000e 0x00000080 0x000000d2 0x00000000
0x00000001 0x000000f4 0x00000011 0x00000002
0x00000000 0x00000000 0x00000000 0x00000001
0x0000000f 0x00000040 0x00000000 0x00000000
0x00000080 0x00000000 0x00000000 0x00000000
0x00000002 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000011 0x00000000 0x00000000
0x00000002 0x000000c0 0x00000020 0x00000000
0x00000003 0x00000002 0x00000000 0x0000001f
0x00000000 0x00000000 0x00000000 0x00000000
0x0000002b 0x00000022 0x00000000 0x00000063
0x000000db 0x000000dd 0x00000022 0x00000050
0x00000011 0x000000ff 0x00000000 0x0000000d
0x00000047 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000001 0x00000000 0x00000002 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000040 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000003 0x00000004 0x00000000
0x00000022 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0201092138440.89714-400000>