Hi all,
My -STABLE machine blew up last night, about 3 hours into compiling
OpenOffice. I wasn't awake at the time, so I don't know exactly what
happened other than that I came in this morning to find a rebooted machine
and a crash dump. It happened around 2am - there might have been a mail
synchronisation going on at the same time, but nothing much else.
>From the comments in ffs_alloc.c it seems that there were no free blocks
anywhere in a particular cylinder group, although there presumably should
have been. I don't know enough about FFS to know if this is really a bug,
or a sign of some corruption in my filesystem that I should attend to.
The same machine locked up a couple of times last weekend - one when
compiling some part of KDE, then when encoding some MP3s. No panic for
either of these, just a hard lock. We were having a micro-heatwave here
that weekend so I figured it was a cooling problem I should look at before
the summer really got going.
Stack trace and dmesg attached. Machine is running -STABLE from last
Tuesday:
FreeBSD tuatara.fishballoon.org 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #0: Tue
Apr 27 22:25:24 BST 2004
scott@tuatara.fishballoon.org:/local/-STABLE/src/sys/compile/TUATARA i386
Cheers,
Scott
--
==========================================================================Scott
Mitchell | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England | 0x54B171B9 | don't get sucked into jet
engines"
scott at fishballoon.org | 0xAA775B8B | -- Anon
-------------- next part --------------
Script started on Sun May 2 12:08:29 2004
tuatara# gdb -k
GNU gdb 4.18 (FreeBSD)
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".
(kgdb) symbol-file /sys/compile/TUATARA/kernel.debug
Reading symbols from /sys/compile/TUATARA/kernel.debug...Deprecated bfd_read
called at
/local/-STABLE/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/local/-STABLE/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 933 in fill_symbuf
done.
(kgdb) exec-file /var/crash/kernel.1
(kgdb) core-file /var/crash/vmcore.1
IdlePTD at physical address 0x004ce000
initial pcb at physical address 0x00322280
panicstr: ffs_alloccg: map corrupted
panic messages:
---
panic: ffs_alloccg: map corrupted
syncing disks... 138 111 98 94 85 85 85 85 85 85 85 85 85 85 85 85 85 85 85 85
85 85 85 85
giving up on 84 buffers
Uptime: 15h19m46s
dumping to dev #ad/0x20001, offset 5243008
dump ata0: resetting devices .. done
[...]
---
#0 dumpsys () at ../../kern/kern_shutdown.c:487
487 if (dumping++) {
(kgdb) where
#0 dumpsys () at ../../kern/kern_shutdown.c:487
#1 0xc01be4e3 in boot (howto=256) at ../../kern/kern_shutdown.c:316
#2 0xc01be921 in panic (fmt=0xc02ddc7f "ffs_alloccg: map corrupted")
at ../../kern/kern_shutdown.c:595
#3 0xc02464b0 in ffs_mapsearch (fs=0xc2534000, cgp=0xcde7b000, bpref=16222216,
allocsiz=7)
at ../../ufs/ffs/ffs_alloc.c:1669
#4 0xc024512e in ffs_alloccg (ip=0xc26a0f00, cg=178, bpref=16222216, size=2048)
at ../../ufs/ffs/ffs_alloc.c:1044
#5 0xc0244c6f in ffs_hashalloc (ip=0xc26a0f00, cg=178, pref=16222216,
size=2048,
allocator=0xc0244f30 <ffs_alloccg>) at ../../ufs/ffs/ffs_alloc.c:863
#6 0xc0243e5d in ffs_alloc (ip=0xc26a0f00, lbn=0, bpref=16222216, size=2048,
cred=0xc3462b80,
bnp=0xda0bdc70) at ../../ufs/ffs/ffs_alloc.c:142
#7 0xc0246c1e in ffs_balloc (ap=0xda0bdd08) at ../../ufs/ffs/ffs_balloc.c:167
#8 0xc025616c in ufs_mkdir (ap=0xda0bde6c) at vnode_if.h:1056
#9 0xc0257105 in ufs_vnoperate (ap=0xda0bde6c) at
../../ufs/ufs/ufs_vnops.c:2376
#10 0xc01f2472 in mkdir (p=0xd9875400, uap=0xda0bdf80) at vnode_if.h:674
#11 0xc028d561 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi =
-1077939327, tf_esi = 80,
tf_ebp = -1077939056, tf_isp = -636756012, tf_ebx = 781, tf_edx =
134524928, tf_ecx = -774,
tf_eax = 136, tf_trapno = 7, tf_err = 2, tf_eip = 671774948, tf_cs = 31,
tf_eflags = 663,
tf_esp = -1077940156, tf_ss = 47}) at ../../i386/i386/trap.c:1175
#12 0xc0280c85 in Xint0x80_syscall ()
#13 0x8048506 in ?? ()
(kgdb) quit
tuatara# exit
Script done on Sun May 2 12:09:46 2004
-------------- next part --------------
Copyright (c) 1992-2004 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.10-PRERELEASE #0: Tue Apr 27 22:25:24 BST 2004
scott@tuatara.fishballoon.org:/local/-STABLE/src/sys/compile/TUATARA
Timecounter "i8254" frequency 1193182 Hz
CPU: AMD Athlon(tm) XP 1800+ (1535.22-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x662 Stepping = 2
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory = 536805376 (524224K bytes)
avail memory = 517521408 (505392K bytes)
Preloaded elf kernel "kernel" at 0xc04af000.
Preloaded elf module "cd9660.ko" at 0xc04af09c.
Preloaded elf module "msdos.ko" at 0xc04af13c.
Preloaded elf module "nfs.ko" at 0xc04af1dc.
Preloaded elf module "ntfs.ko" at 0xc04af278.
Preloaded elf module "if_dc.ko" at 0xc04af314.
Preloaded elf module "miibus.ko" at 0xc04af3b4.
Preloaded elf module "if_wi.ko" at 0xc04af454.
Preloaded elf module "snd_emu10k1.ko" at 0xc04af4f4.
Preloaded elf module "snd_pcm.ko" at 0xc04af598.
Preloaded elf module "usb.ko" at 0xc04af638.
Preloaded elf module "ugen.ko" at 0xc04af6d4.
Preloaded elf module "ums.ko" at 0xc04af770.
Preloaded elf module "umass.ko" at 0xc04af80c.
Preloaded elf module "if_aue.ko" at 0xc04af8ac.
Preloaded elf module "agp.ko" at 0xc04af94c.
Pentium Pro MTRR support enabled
Using $PIR table, 10 entries at 0xc00fde00
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <AMD-761 host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <AMD 761 host to AGP bridge> mem
0xd7004000-0xd7004fff,0xd0000000-0xd1ffffff at device 0.0 on pci0
pcib1: <AMD-761 PCI-PCI (4x AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva Vanta TNT2 graphics accelerator> at 5.0 irq 12
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0xd400-0xd40f at device 7.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 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
umass0: DMI MultiFlash, rev 1.10/1.00, addr 2
uhci1: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 10 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
ugen0: LEGO Group LEGO USB Tower, rev 1.10/1.00, addr 2
ums0: Logitech USB Receiver, rev 1.10/9.10, addr 3, iclass 3/1
ums0: 5 buttons and Z dir.
viapropm0: SMBus I/O base at 0x5000
viapropm0: <VIA VT82C686A Power Management Unit> port 0x5000-0x500f at
device 7.4 on pci0
viapropm0: SMBus revision code 0x40
smb0: <SMBus general purpose I/O> on smbus0
adw0: <AdvanSys 3550 Ultra SCSI Adapter> port 0xe000-0xe03f mem
0xd7007000-0xd70070ff irq 11 at device 9.0 on pci0
adw0: SCSI ID 7, adw0: Firmware load failed!
device_probe_and_attach: adw0 attach returned 6
dc0: <ADMtek AN985 10/100BaseTX> port 0xe400-0xe4ff mem
0xd7005000-0xd70053ff irq 10 at device 11.0 on pci0
dc0: Ethernet address: 00:20:78:0d:6b:6b
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: <Creative EMU10K1> port 0xe800-0xe81f irq 5 at device 13.0 on pci0
pcm0: <TriTech TR28023 AC97 Codec>
fwohci0: <Texas Instruments TSB12LV26> mem
0xd7000000-0xd7003fff,0xd7006000-0xd70067ff irq 5 at device 15.0 on pci0
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channel is 4.
fwohci0: EUI64 00:30:8d:01:00:01:7f:10
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)
orm0: <Option ROM> at iomem 0xcc000-0xcffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
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
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
ad0: 57241MB <ST360021A> [116301/16/63] at ata0-master UDMA100
acd0: DVD-ROM <Pioneer DVD-ROM ATAPIModel DVD-106S 0122> at ata1-master
UDMA66
Mounting root from ufs:/dev/ad0s1a
da4 at umass-sim0 bus 0 target 0 lun 0
da4: <DMI MultiFlash 3.00> Removable Direct Access SCSI-0 device
da4: 650KB/s transfers
da4: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted