From owner-freebsd-stable Sat Dec 28 6:44:15 2002 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 342D537B401 for ; Sat, 28 Dec 2002 06:44:12 -0800 (PST) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFDBA43EA9 for ; Sat, 28 Dec 2002 06:44:10 -0800 (PST) (envelope-from andre.albsmeier@siemens.com) Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.11.6/8.11.6) with ESMTP id gBSEi4E22095 for ; Sat, 28 Dec 2002 15:44:04 +0100 (MET) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail3.siemens.de (8.11.6/8.11.6) with ESMTP id gBSEi4F12114 for ; Sat, 28 Dec 2002 15:44:04 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mars.cert.siemens.de (8.12.6/8.12.6/Siemens CERT [ $Revision: 1.33 ]) with ESMTP id gBSEi3Os017954 for ; Sat, 28 Dec 2002 15:44:03 +0100 (CET) (envelope-from andre@curry.mchp.siemens.de) Received: (from localhost) by curry.mchp.siemens.de (8.12.6/8.12.6) id gBSEi3oJ051291 for freebsd-stable@freebsd.org; Sat, 28 Dec 2002 15:44:03 +0100 (CET) Date: Sat, 28 Dec 2002 15:44:03 +0100 From: Andre Albsmeier To: freebsd-stable@freebsd.org Subject: 4.7-STABLE: panic: ffs_blkfree: freeing free block, softupdates related? Message-ID: <20021228154403.A28699@curry.mchp.siemens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Echelon: Military, VHF, White House, MSNBC, ISS Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In case anyone wants to dig into this... 4.7-STABLE #0: Mon Dec 23 15:41:17 CET 2002 using softupdates. /dev/ad2a is a 120GB hard drive, 96GB were in use. 75 of these 96GB were rm -rf'ed. The rm command returned quickly since the 75GB were stored in few big files. The box crashed during the delayed softupdates writes. The kernel and core are available for debugging... I can also do simple debugging if someone tells me what to do :-) root@romfix:/var/crash>gdb -k /usr/obj/src/src-4/sys/romfix/kernel.debug vmcore.0 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"...Deprecated bfd_read called at /src/src-4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /src/src-4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf IdlePTD at phsyical address 0x002dd000 initial pcb at physical address 0x002606e0 panicstr: ffs_blkfree: freeing free block panic messages: --- panic: ffs_blkfree: freeing free block syncing disks... 7 5 4 4 2 2 2 2 2 2 2 dev = #ad/16, block = 94920, fs = /cdroms panic: ffs_blkfree: freeing free block Uptime: 4d22h14m1s dumping to dev #ad/1, offset 99280 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 58 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 /src/src-4/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) where #0 dumpsys () at /src/src-4/sys/kern/kern_shutdown.c:487 #1 0xc01454df in boot (howto=260) at /src/src-4/sys/kern/kern_shutdown.c:316 #2 0xc0145904 in poweroff_wait (junk=0xc02360c0, howto=-1071423328) at /src/src-4/sys/kern/kern_shutdown.c:595 #3 0xc01d6d56 in ffs_blkfree (ip=0xc83d1bb8, bno=94920, size=16384) at /src/src-4/sys/ufs/ffs/ffs_alloc.c:1444 #4 0xc01db68b in indir_trunc (ip=0xc83d1bb8, dbn=125477504, level=0, lbn=12, countp=0xc83d1ba8) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:2233 #5 0xc01db445 in handle_workitem_freeblocks (freeblks=0xc1149400) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:2133 #6 0xc01d994b in process_worklist_item (matchmnt=0x0, flags=0) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:723 #7 0xc01d97de in softdep_process_worklist (matchmnt=0x0) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:622 #8 0xc014533d in boot (howto=256) at /src/src-4/sys/kern/kern_shutdown.c:261 #9 0xc0145904 in poweroff_wait (junk=0xc02360c0, howto=-1071423328) at /src/src-4/sys/kern/kern_shutdown.c:595 #10 0xc01d6d56 in ffs_blkfree (ip=0xc83d1e0c, bno=94984, size=16384) at /src/src-4/sys/ufs/ffs/ffs_alloc.c:1444 #11 0xc01db68b in indir_trunc (ip=0xc83d1e0c, dbn=127975424, level=0, lbn=12, countp=0xc83d1dfc) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:2233 #12 0xc01db445 in handle_workitem_freeblocks (freeblks=0xc1149380) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:2133 #13 0xc01d994b in process_worklist_item (matchmnt=0x0, flags=0) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:723 #14 0xc01d97de in softdep_process_worklist (matchmnt=0x0) at /src/src-4/sys/ufs/ffs/ffs_softdep.c:622 #15 0xc01729bf in sched_sync () at /src/src-4/sys/kern/vfs_subr.c:1177 (kgdb) And the dmesg: 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.7-STABLE #0: Mon Dec 23 15:41:17 CET 2002 root@bali.ofw.tld:/src/obj-4/src/src-4/sys/romfix Timecounter "i8254" frequency 1192977 Hz Timecounter "TSC" frequency 501050245 Hz CPU: AMD-K6(tm) 3D processor (501.05-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf AMD Features=0x80000800 real memory = 134217728 (131072K bytes) avail memory = 127889408 (124892K bytes) Preloaded elf kernel "kernel" at 0xc02be000. K6-family MTRR support enabled (2 registers) Using $PIR table, 6 entries at 0xc00fddf0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x1106, dev=0x3040) at 7.3 pci0: at 8.0 fxp0: port 0xe800-0xe81f mem 0xdf000000-0xdf0fffff,0xdf100000-0xdf100fff irq 11 at device 11.0 on pci0 fxp0: Ethernet address 00:a0:c9:ca:9c:85 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib1: on motherboard pci2: on pcib1 orm0: