Date: 17 Apr 2007 13:07:09 -0000 From: Alex Mogilnikov <alx@alx2.intellectronika.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/111766: "panic: ffs_blkfree: freeing free block" during disk activity Message-ID: <20070417130709.5434.qmail@alx2.intellectronika.ru> Resent-Message-ID: <200704171340.l3HDe2nD069430@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111766 >Category: kern >Synopsis: "panic: ffs_blkfree: freeing free block" during disk activity >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 17 13:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Alex Mogilnikov >Release: FreeBSD 6.2-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD alx2.intellectronika.ru 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #3: Tue Apr 3 03:12:35 YEKST 2007 alx@alx2.intellectronika.ru:/usr/obj/usr/src/sys/MYKERNEL i386 MB: ASUS A8N-VM HDD: Seagate ST320014A 3.07 >Description: panic: ffs_blkfree: freeing free block during heavy disk activity (while converting large video files, doing filesystem dump, etc.) This appears after 6.1-R -> 6.2-RC2 upgrade (with the same hardware). alx2# kgdb kernel.debug /usr/crashdump/vmcore.0 kgdb: kvm_nlist(_stopped_cpus): kgdb: kvm_nlist(_stoppcbs): [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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-marcel-freebsd". Unread portion of the kernel message buffer: dev = ad0s1d, block = 67, fs = /var panic: ffs_blkfree: freeing free block Uptime: 13d23h44m54s Dumping 959 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 959MB (245440 pages) 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt full #0 doadump () at pcpu.h:165 No locals. #1 0xc06dd3ac in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 first_buf_printf = 1 #2 0xc06dd6f9 in panic (fmt=0xc098aa7b "ffs_blkfree: freeing free block") at /usr/src/sys/kern/kern_shutdown.c:565 td = (struct thread *) 0xc5220900 bootopt = 260 newpanic = 0 ap = 0xc5220900 "" buf = "ffs_blkfree: freeing free block", '\0' <repeats 224 times> #3 0xc083f55a in ffs_blkfree (ump=0xc5481200, fs=0xc52f7800, devvp=0xc54ab440, bno=67, size=16384, inum=165) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1869 cgp = (struct cg *) 0xdb68a000 bp = (struct buf *) 0xd87492b8 fragno = 8 cgbno = 67 cgblkno = Unhandled dwarf expression opcode 0x93 (kgdb) list *0xc083f55a 0xc083f55a is in ffs_blkfree (/usr/src/sys/ufs/ffs/ffs_alloc.c:1869). 1864 brelse(bp); 1865 return; 1866 } 1867 printf("dev = %s, block = %jd, fs = %s\n", 1868 devtoname(dev), (intmax_t)bno, fs->fs_fsmnt); 1869 panic("ffs_blkfree: freeing free block"); 1870 } 1871 ffs_setblock(fs, blksfree, fragno); 1872 ffs_clusteracct(ump, fs, cgp, fragno, 1); 1873 cgp->cg_cs.cs_nbfree++; dmesg: 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 6.2-RELEASE-p3 #3: Tue Apr 3 03:12:35 YEKST 2007 alx@alx2.intellectronika.ru:/usr/obj/usr/src/sys/MYKERNEL WARNING: MPSAFE network stack disabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3200+ (2009.16-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20ff2 Stepping = 2 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x1<SSE3> AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow> AMD Features2=0x1<LAHF> real memory = 1006370816 (959 MB) avail memory = 967323648 (922 MB) MPTable: <TEMPLATE > ioapic0: Assuming intbase of 0 ioapic0 <Version 1.1> irqs 0-23 on motherboard kbd1 at kbdmux0 ACPI-0397: *** Error: NsSearchAndEnter: Bad character in ACPI Name: 43035350 ACPI-0381: *** Error: Looking up [0x43035350] (NON-ASCII) in namespace, AE_BAD_CHARACTER ACPI-0204: *** Error: AcpiLoadTables: Could not load namespace: AE_BAD_CHARACTER ACPI-0213: *** Error: AcpiLoadTables: Could not load tables: AE_BAD_CHARACTER ACPI: table load failed: AE_BAD_CHARACTER cpu0 on motherboard pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard pci0: <PCI bus> on pcib0 pci0: <memory, RAM> at device 0.0 (no driver attached) pci0: <memory, RAM> at device 0.1 (no driver attached) pci0: <memory, RAM> at device 0.2 (no driver attached) pci0: <memory, RAM> at device 0.3 (no driver attached) pci0: <memory, RAM> at device 0.4 (no driver attached) pci0: <memory, RAM> at device 0.5 (no driver attached) pci0: <memory, RAM> at device 0.6 (no driver attached) pci0: <memory, RAM> at device 0.7 (no driver attached) pcib1: <PCI-PCI bridge> at device 2.0 on pci0 pci1: <PCI bus> on pcib1 pcib2: <PCI-PCI bridge> at device 3.0 on pci0 pci2: <PCI bus> on pcib2 pcib3: <PCI-PCI bridge> at device 4.0 on pci0 pci3: <PCI bus> on pcib3 nvidia0: <GeForce 6100> mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfc000000-0xfcffffff irq 11 at device 5.0 on pci0 nvidia0: [GIANT-LOCKED] pci0: <memory, RAM> at device 9.0 (no driver attached) isab0: <PCI-ISA bridge> at device 10.0 on pci0 isa0: <ISA bus> on isab0 pci0: <serial bus, SMBus> at device 10.1 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xfebde000-0xfebdefff irq 5 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfebdfc00-0xfebdfcff irq 5 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: <EHCI (generic) USB 2.0 controller> on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered umass0: Myson Century, Inc. CS8819A2-105, rev 2.00/a2.04, addr 2 atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 13.0 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 pcib4: <PCI-PCI bridge> at device 16.0 on pci0 pci4: <PCI bus> on pcib4 pcm0: <NVidia MCP51 High Definition Audio Controller> mem 0xfebd8000-0xfebdbfff irq 5 at device 16.1 on pci0 nve0: <NVIDIA nForce MCP13 Networking Adapter> port 0xdc00-0xdc07 mem 0xfebdc000-0xfebdcfff irq 5 at device 20.0 on pci0 nve0: Ethernet address 00:15:f2:5a:6c:da miibus0: <MII bus> on nve0 rlphy0: <RTL8201L 10/100 media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nve0: Ethernet address: 00:15:f2:5a:6c:da nve0: [GIANT-LOCKED] pmtimer0 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] 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/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 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A 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 unknown: <PNP0c01> can't assign resources (memory) unknown: <PNP0700> can't assign resources (port) unknown: <PNP0401> can't assign resources (port) unknown: <PNP0c02> can't assign resources (port) ucom0: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 2 ulpt0: HP Photosmart 8000 series, rev 2.00/1.00, addr 3, iclass 7/1 ulpt0: using bi-directional mode umass1: HP Photosmart 8000 series, rev 2.00/1.00, addr 3 ugen0: American Power Conversion Back-UPS CS 350 FW:807.q5.I USB FW:q5, rev 1.10/0.06, addr 4 Timecounter "TSC" frequency 2009158022 Hz quality 800 Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default ad0: 19092MB <Seagate ST320014A 3.07> at ata0-master UDMA100 acd0: DVDROM <DVD-ROM DDU1621/VER S1.6> at ata1-master UDMA33 acd1: DVDR <NEC DVD RW ND-3500AG/2.16> at ata1-slave UDMA33 pcm0: <HDA Codec: Analog Device AD1986A> pcm0: <HDA Driver Revision: 20061210_0037> cd0 at ata1 bus 0 target 0 lun 0 cd0: <SONY DVD-ROM DDU1621 S1.6> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: <_NEC DVD_RW ND-3500AG 2.16> Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Myson CS8819A2-105 00 1.01> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da4 at umass-sim1 bus 1 target 0 lun 0 da4: <HP Photosmart 8000 1.00> Removable Direct Access SCSI-2 device da4: 1.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 target 0 lun 1 da1: <Myson CS8819A2-105 10 1.01> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim0 bus 0 target 0 lun 2 da2: <Myson CS8819A2-105 20 1.01> Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 target 0 lun 3 da3: <Myson CS8819A2-105 30 1.01> Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:1): SCSI Status: Check Condition (da1:umass-sim0:0:0:1): NOT READY asc:3a,0 (da1:umass-sim0:0:0:1): Medium not present (da1:umass-sim0:0:0:1): Unretryable error Opened disk da1 -> 6 (da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:1): SCSI Status: Check Condition (da1:umass-sim0:0:0:1): NOT READY asc:3a,0 (da1:umass-sim0:0:0:1): Medium not present (da1:umass-sim0:0:0:1): Unretryable error Opened disk da1 -> 6 (da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:1): SCSI Status: Check Condition (da1:umass-sim0:0:0:1): NOT READY asc:3a,0 (da1:umass-sim0:0:0:1): Medium not present (da1:umass-sim0:0:0:1): Unretryable error Opened disk da1 -> 6 (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:2): SCSI Status: Check Condition (da2:umass-sim0:0:0:2): NOT READY asc:3a,0 (da2:umass-sim0:0:0:2): Medium not present (da2:umass-sim0:0:0:2): Unretryable error Opened disk da2 -> 6 (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:2): SCSI Status: Check Condition (da2:umass-sim0:0:0:2): NOT READY asc:3a,0 (da2:umass-sim0:0:0:2): Medium not present (da2:umass-sim0:0:0:2): Unretryable error Opened disk da2 -> 6 (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:2): SCSI Status: Check Condition (da2:umass-sim0:0:0:2): NOT READY asc:3a,0 (da2:umass-sim0:0:0:2): Medium not present (da2:umass-sim0:0:0:2): Unretryable error Opened disk da2 -> 6 (da3:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da3:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da3:umass-sim0:0:0:3): SCSI Status: Check Condition (da3:umass-sim0:0:0:3): NOT READY asc:3a,0 (da3:umass-sim0:0:0:3): Medium not present (da3:umass-sim0:0:0:3): Unretryable error Opened disk da3 -> 6 (da3:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da3:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da3:umass-sim0:0:0:3): SCSI Status: Check Condition (da3:umass-sim0:0:0:3): NOT READY asc:3a,0 (da3:umass-sim0:0:0:3): Medium not present (da3:umass-sim0:0:0:3): Unretryable error Opened disk da3 -> 6 (da3:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da3:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da3:umass-sim0:0:0:3): SCSI Status: Check Condition (da3:umass-sim0:0:0:3): NOT READY asc:3a,0 (da3:umass-sim0:0:0:3): Medium not present (da3:umass-sim0:0:0:3): Unretryable error Opened disk da3 -> 6 (da4:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da4:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da4:umass-sim1:1:0:0): SCSI Status: Check Condition (da4:umass-sim1:1:0:0): NOT READY asc:3a,0 (da4:umass-sim1:1:0:0): Medium not present (da4:umass-sim1:1:0:0): Unretryable error Opened disk da4 -> 6 (da4:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da4:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da4:umass-sim1:1:0:0): SCSI Status: Check Condition (da4:umass-sim1:1:0:0): NOT READY asc:3a,0 (da4:umass-sim1:1:0:0): Medium not present (da4:umass-sim1:1:0:0): Unretryable error Opened disk da4 -> 6 (da4:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da4:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da4:umass-sim1:1:0:0): SCSI Status: Check Condition (da4:umass-sim1:1:0:0): NOT READY asc:3a,0 (da4:umass-sim1:1:0:0): Medium not present (da4:umass-sim1:1:0:0): Unretryable error Opened disk da4 -> 6 Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted >How-To-Repeat: Make heavy filesystem load. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070417130709.5434.qmail>