From owner-freebsd-stable@FreeBSD.ORG Sun May 2 04:28:25 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D6D416A4CF for ; Sun, 2 May 2004 04:28:25 -0700 (PDT) Received: from mta04-svc.ntlworld.com (mta04-svc.ntlworld.com [62.253.162.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F51243D2F for ; Sun, 2 May 2004 04:28:24 -0700 (PDT) (envelope-from scott@tuatara.fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta04-svc.ntlworld.comESMTP <20040502112749.EVGQ11990.mta04-svc.ntlworld.com@llama.fishballoon.org> for ; Sun, 2 May 2004 12:27:49 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.32; FreeBSD) id 1BKF8w-000GEK-8w for freebsd-stable@FreeBSD.ORG; Sun, 02 May 2004 12:28:22 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.11/8.12.11/Submit) id i42BSLCC015085 for freebsd-stable@FreeBSD.ORG; Sun, 2 May 2004 12:28:21 +0100 (BST) (envelope-from scott) Date: Sun, 2 May 2004 12:28:21 +0100 From: Scott Mitchell To: freebsd-stable@FreeBSD.ORG Message-ID: <20040502112821.GB14823@tuatara.fishballoon.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-PRERELEASE i386 Subject: 4.10-PRERELEASE panic in FFS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 11:28:25 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gdb.log" 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 ) 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 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" 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 AMD Features=0xc0480000 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: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xd7004000-0xd7004fff,0xd0000000-0xd1ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 5.0 irq 12 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xd400-0xd40f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd800-0xd81f irq 10 at device 7.2 on pci0 usb0: 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: port 0xdc00-0xdc1f irq 10 at device 7.3 on pci0 usb1: 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: port 0x5000-0x500f at device 7.4 on pci0 viapropm0: SMBus revision code 0x40 smb0: on smbus0 adw0: 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: port 0xe400-0xe4ff mem 0xd7005000-0xd70053ff irq 10 at device 11.0 on pci0 dc0: Ethernet address: 00:20:78:0d:6b:6b miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcm0: port 0xe800-0xe81f irq 5 at device 13.0 on pci0 pcm0: fwohci0: 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: on fwohci0 sbp0: 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: