Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 1998 17:28:32 -0800 (PST)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        jonny@coppe.ufrj.br
Cc:        stable@FreeBSD.ORG
Subject:   Re: blkfree: freeing free block
Message-ID:  <199802180128.RAA27745@vader.cs.berkeley.edu>
In-Reply-To: <199802172123.TAA14746@gaia.coppe.ufrj.br> (message from Joao Carlos Mendes Luis on Tue, 17 Feb 1998 19:23:33 -0200 (EDT))

next in thread | previous in thread | raw e-mail | index | archive | help
 * Funny you say this.  I've just got one of these:
 * 
 * panic: blkfree: freeing free frag
 * 
 * After upgrading to -stable from 12 Feb.
 * 
 * This happened while I was cleaning (rm) a 1.5G squid cache that was
 * corrupted.  I though the corruption was a sideeffect of an ungraceful
 * shutdown, but now I'm curious.

That sounds exactly like my problem.  Finally someone else is seeing
the same thing I am!

Anyway, here's more info for those who would want to look at it.
First, the dmesg:

===
Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.5-STABLE #0: Tue Feb 10 07:54:51 PST 1998
    asami2@leia.cs.berkeley.edu:/ccd/src/sys/compile/CCD
CPU: Pentium Pro (199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x616  Stepping=6
  Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 268435456 (262144K bytes)
avail memory = 261328896 (255204K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 0 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
vga0 <VGA-compatible display device> rev 3 on pci0:11
fxp0 <Intel EtherExpress Pro 10/100B Ethernet> rev 2 int a irq 10 on pci0:15
fxp0: Ethernet address 00:a0:c9:72:96:8b
chip3 <DEC 21050 PCI-PCI bridge> rev 2 on pci0:17
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 11 on pci0:19
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
ahc0 waiting for scsi devices to settle
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
ahc0: target 0 Tagged Queuing Device
(ahc0:0:0): "SEAGATE ST15150W 0023" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4095MB (8388315 512 byte sectors)
Probing for devices on PCI bus 1:
ahc1 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci1:4
ahc1: aic7880 Wide Channel A, SCSI Id=7, 16 SCBs
ahc1 waiting for scsi devices to settle
ahc1: target 8 synchronous at 20.0MHz, offset = 0x8
ahc1: target 8 Tagged Queuing Device
(ahc1:8:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd1(ahc1:8:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 9 synchronous at 20.0MHz, offset = 0x8
ahc1: target 9 Tagged Queuing Device
(ahc1:9:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd2(ahc1:9:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 10 synchronous at 20.0MHz, offset = 0x8
ahc1: target 10 Tagged Queuing Device
(ahc1:10:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd3(ahc1:10:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 11 synchronous at 20.0MHz, offset = 0x8
ahc1: target 11 Tagged Queuing Device
(ahc1:11:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd4(ahc1:11:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 12 synchronous at 20.0MHz, offset = 0x8
ahc1: target 12 Tagged Queuing Device
(ahc1:12:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd5(ahc1:12:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 13 synchronous at 20.0MHz, offset = 0x8
ahc1: target 13 Tagged Queuing Device
(ahc1:13:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd6(ahc1:13:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 14 synchronous at 20.0MHz, offset = 0x8
ahc1: target 14 Tagged Queuing Device
(ahc1:14:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd7(ahc1:14:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc1: target 15 synchronous at 20.0MHz, offset = 0x8
ahc1: target 15 Tagged Queuing Device
(ahc1:15:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd8(ahc1:15:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2 <Adaptec 3940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci1:5
ahc2: aic7880 Wide Channel B, SCSI Id=7, 16 SCBs
ahc2 waiting for scsi devices to settle
ahc2: target 8 synchronous at 20.0MHz, offset = 0x8
ahc2: target 8 Tagged Queuing Device
(ahc2:8:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd9(ahc2:8:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 9 synchronous at 20.0MHz, offset = 0x8
ahc2: target 9 Tagged Queuing Device
(ahc2:9:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd10(ahc2:9:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 10 synchronous at 20.0MHz, offset = 0x8
ahc2: target 10 Tagged Queuing Device
(ahc2:10:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd11(ahc2:10:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 11 synchronous at 20.0MHz, offset = 0x8
ahc2: target 11 Tagged Queuing Device
(ahc2:11:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd12(ahc2:11:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 12 synchronous at 20.0MHz, offset = 0x8
ahc2: target 12 Tagged Queuing Device
(ahc2:12:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd13(ahc2:12:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 13 synchronous at 20.0MHz, offset = 0x8
ahc2: target 13 Tagged Queuing Device
(ahc2:13:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd14(ahc2:13:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 14 synchronous at 20.0MHz, offset = 0x8
ahc2: target 14 Tagged Queuing Device
(ahc2:14:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd15(ahc2:14:0): Direct-Access 8689MB (17796077 512 byte sectors)
ahc2: target 15 synchronous at 20.0MHz, offset = 0x8
ahc2: target 15 Tagged Queuing Device
(ahc2:15:0): "IBM OEM DCHS09Y 2424" type 0 fixed SCSI 2
sd16(ahc2:15:0): Direct-Access 8689MB (17796077 512 byte sectors)
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 not found at 0x1f0
npx0 on motherboard
npx0: INT 16 interface
changing root device to sd0a
ccd0-7: Concatenated disk drivers
===

And the trackback:

===
## gdb -k kernel /var/crash/vmcore.31
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd), 
Copyright 1996 Free Software Foundation, Inc...
IdlePTD 1fd000
current pcb at 1e3b58
panic: blkfree: freeing free block
#0  boot (howto=256) at ../../kern/kern_shutdown.c:266
266                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) bt
#0  boot (howto=256) at ../../kern/kern_shutdown.c:266
#1  0xf0111722 in panic (fmt=0xf0194d51 "blkfree: freeing free block")
    at ../../kern/kern_shutdown.c:390
#2  0xf0194f23 in ffs_blkfree (ip=0xf1477e00, bno=19080, size=8192)
    at ../../ufs/ffs/ffs_alloc.c:1230
#3  0xf0196ee3 in ffs_truncate (ap=0xefbffd0c) at ../../ufs/ffs/ffs_inode.c:343
#4  0xf019a8c9 in ufs_inactive (ap=0xefbffd38) at vnode_if.h:1003
#5  0xf012ff7f in vrele (vp=0xf1568e80) at vnode_if.h:699
#6  0xf01acf61 in vnode_pager_dealloc (object=0xf1750600)
    at ../../vm/vnode_pager.c:203
#7  0xf01ac466 in vm_pager_deallocate (object=0xf1750600)
    at ../../vm/vm_pager.c:177
#8  0xf01a81f0 in vm_object_terminate (object=0xf1750600)
    at ../../vm/vm_object.c:416
#9  0xf01a802b in vm_object_deallocate (object=0xf1750600)
    at ../../vm/vm_object.c:353
#10 0xf012fec8 in vrele (vp=0xf1568e80) at ../../kern/vfs_subr.c:881
#11 0xf012fe73 in vput (vp=0xf1568e80) at ../../kern/vfs_subr.c:858
#12 0xf019e7bf in ufs_rename (ap=0xefbffea0) at ../../ufs/ufs/ufs_vnops.c:1128
#13 0xf0133634 in rename (p=0xf0e5b400, uap=0xefbfff94, retval=0xefbfff84)
    at vnode_if.h:519
#14 0xf01b8553 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = -272643953, 
      tf_esi = -272644520, tf_ebp = -272645732, tf_isp = -272629788, 
      tf_ebx = -272644528, tf_edx = 0, tf_ecx = -272643994, tf_eax = 128, 
      tf_trapno = 12, tf_err = 7, tf_eip = 19093, tf_cs = 31, tf_eflags = 514, 
      tf_esp = -272645868, tf_ss = 39}) at ../../i386/i386/trap.c:914
#15 0x4a95 in ?? ()
#16 0x122e in ?? ()
#17 0x107e in ?? ()
(kgdb) 
===

As I said before, the system was already behaving funny before the
crash (sudo dying with seg fault), so this may or may not be the real
problem.

Satoshi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802180128.RAA27745>