panic and fs corruption in -current

From: A. Rios <cosasvarias_at_gmail.com>
Date: Sun, 5 Aug 2007 12:32:04 +0200
I compiled yesterday's kernel without problems, and it restarted fine. I
applied jeff roberson's ulehtt.diff (P4 with hyperthreading and 2GB RAM
here)
and disabled all kernel debugging (I was testing performance)

Earlier this morning I was portupgrading and everything start to fail. One
of the
(random) panics was:

[...]
SHA256 Checksum OK for ghostscript/gdechl12.c.

start = 0, len = 2930, fs = /usr
panic: ffs_alloccg: map corrupted
cpuid = 0
Uptime: 21m 10s
Physical memory: 2035 MB
Dumping 276 MB

and now the boot is not so clean (I have highlited the cores and one PCI
Express error, look for the ^^^ near the bottom). I've restored the old
kernel and the panics have stopped and now the daemons start fine again.
I'll try to compile a new kernel with debugging this afternoon.

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 #1: Sat Aug  4 11:20:33 CEST 2007
   root_at_cycorp.molino:/usr/obj/usr/src/sys/7.agosto
module_register: module pci/ichss_pci already exists!
Module pci/ichss_pci failed to register: 17
module_register: module cpu/ichss already exists!
Module cpu/ichss failed to register: 17
module_register: module cpu/powernow already exists!
Module cpu/powernow failed to register: 17
module_register: module cpu/est already exists!
Module cpu/est failed to register: 17
module_register: module cpu/p4tcc already exists!
Module cpu/p4tcc failed to register: 17
ACPI APIC Table: <A M I  OEMAPIC >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3010.69-MHz K8-class CPU)
 Origin = "GenuineIntel"  Id = 0xf43  Stepping = 3

Features=0xbfebfbff<FPU,VME,DE
,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
 Features2=0x649d<SSE3,RSVD2,MON,DS_CPL,EST,CNXT-ID,CX16,xTPR>
 AMD Features=0x20000800<SYSCALL,LM>
 Logical CPUs per core: 2
usable memory = 2134102016 (2035 MB)
avail memory  = 2059386880 (1963 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112,
RF2413, RF5413)
acpi0: <A M I OEMXSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7ff00000 (3) failed
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on
acpi0
cpu0: <ACPI CPU> on acpi0
ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] -  8D,
should be
 80 [20070320]
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
ACPI Warning (tbutils-0243): Incorrect checksum in table [SSDT] -  C9,
should be
 CF [20070320]
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci4: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem
0xd0000000-0xdfffffff,0
xcffe0000-0xcffeffff irq 16 at device 0.0 on pci4
vgapci1: <VGA-compatible display> mem 0xcfff0000-0xcfffffff at device
0.1 on pci
4
pcm0: <Intel 82801F High Definition Audio Controller> mem
0xcfdf4000-0xcfdf7fff
irq 16 at device 27.0 on pci0
pcm0: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci3: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib3
mskc0: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0xc800-0xc8ff mem
0xcfefc00
0-0xcfefffff irq 17 at device 0.0 on pci2
msk0: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02> on mskc0
msk0: Ethernet address: 00:13:d4:55:ab:62
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: [FILTER]
uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port
0x8000-0x801f
irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port
0x8400-0x841f
irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port
0x8800-0x881f
irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port
0x9000-0x901f
irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem
0xcfdff800-0xcfdffbff irq 2
3 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib4
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,0x37
6,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <Intel ICH6 SATA150 controller> port
0xa800-0xa807,0xa400-0xa403,0xa000
-0xa007,0x9800-0x9803,0x9400-0x940f mem 0xcfdffc00-0xcfdfffff irq 19 at
device 3
1.2 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
speaker0: <PC speaker> port 0x61 on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2
on acpi0
fdc0: [FILTER]
ppc0: <Parallel 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
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model MouseMan+, device ID 0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
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
sio0: [FILTER]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounters tick every 1.000 msec
ad0: 76319MB <Seagate ST380021A 3.19> at ata0-master UDMA100
acd0: DVDR <HL-DT-ST DVDRAM GSA-H10N/JL10> at ata0-slave UDMA33
ad4: 194481MB <Maxtor 6L200S0 BANC1G10> at ata2-master SATA150
pcm0: <HDA Codec: Realtek ALC880>
pcm0: <HDA Driver Revision: 20070710_0047>
SMP: AP CPU #1 Launched!
GEOM_LABEL: Label for provider ad0s1 is msdosfs/POI.
GEOM_LABEL: Label for provider ad0s2 is msdosfs/COZASH.
Trying to mount root from ufs:/dev/ad4s3a
WARNING: / was not properly dismounted
Loading configuration files.
kernel dumps on /dev/ad4s3b
Entropy harvesting: interrupts ethernet point_to_point kickstart.
swapon: adding /dev/ad4s3b as swap device
Starting file system checks:
/dev/ad4s3a: 2286 files, 90141 used, 163674 free (914 frags, 20345
blocks, 0.4%
fragmentation)
/dev/ad4s3e: DEFER FOR BACKGROUND CHECKING
/dev/ad4s3f: DEFER FOR BACKGROUND CHECKING
/dev/ad4s3d: DEFER FOR BACKGROUND CHECKING
Setting hostuuid: 58a55b8b-9e0a-da11-a01e-5071b78b3c18.
Setting hostid: 0x91b872b6.
Mounting local file systems:WARNING: /tmp was not properly dismounted
/tmp: mount pending error: blocks 4 files 1
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 0 files 34
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 4 files 1
GEOM_LABEL: Label msdosfs/POI removed.

Setting hostname:
cycorp.molino.
net.inet6.ip6.auto_linklocal: 1 -> 0
vfs.usermount: 0 -> 1
mskc0: Uncorrectable PCI Express error
^^^^^^^^^^^^^^^^^^^^^^^^
msk0: link state changed to DOWN
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
       inet6 ::1 prefixlen 128
       inet 127.0.0.1 netmask 0xff000000
msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500
       options=19a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
       ether 00:13:d4:55:ab:62
       inet 172.26.0.3 netmask 0xfffffff0 broadcast 172.26.0.15
       media: Ethernet autoselect (none)
       status: no carrier
add net default: gateway 172.26.0.1
Additional routing options:.
Starting devd.
hw.acpi.cpu.cx_lowest: C1 -> C1
Additional IP options:.
Mounting NFS file systems:msk0: link state changed to UP
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
/usr/local/lib/c
ompat/pkg /usr/local/lib/compat/pkg /usr/local/lib/gcc-4.2.1
/usr/local/lib/kde3
 /usr/local/lib/mysql /usr/local/lib/nss /usr/local/lib/pth
32-bit compatibility ldconfig path: /usr/lib32
Clearing /tmp (X related).
Creating and/or trimming log files:.
Starting syslogd.
Checking for core dump on /dev/ad4s3b...
savecore: no dumps found
Initial amd64 initialization:.
Additional ABI support:.
NFS access cache time=60
Recovering vi editor sessions:.
Starting local daemons:.
Updating motd.
Mounting late file systems:mount_msdosfs: /dev/da0s1: : No such file or
directory

Starting powerd.
Removing stale Samba tdb files:  done
Starting slim.
Starting dbus.
Starting polkitd.
Segmentation fault (core dumped)
^^^^^^^^^^^^^^^^^^^^^^^^
Starting hald.
Segmentation fault (core dumped)
^^^^^^^^^^^^^^^^^^^^^^^^
Configuring syscons: keymap font8x16 font8x14 font8x8 blanktime.
Starting cron.
Local package initialization: rtc.
Starting default moused:.
Starting background file system checks in 60 seconds.
Received on Sun Aug 05 2007 - 08:56:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:15 UTC