From grog@lemis.com  Thu Feb 19 15:36:44 1998
Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA17119
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Feb 1998 15:36:39 -0800 (PST)
          (envelope-from grog@lemis.com)
Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137])
	by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id KAA01504
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Feb 1998 10:06:35 +1030 (CST)
Received: (from grog@localhost)
          by freebie.lemis.com (8.8.8/8.8.7) id KAA29757;
          Fri, 20 Feb 1998 10:06:35 +1030 (CST)
          (envelope-from grog)
Message-Id: <199802192336.KAA29757@freebie.lemis.com>
Date: Fri, 20 Feb 1998 10:06:35 +1030 (CST)
From: grog@lemis.com
Reply-To: grog@lemis.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Panic: "bremfree: removing a buffer when not on a queue" with tunefs on a block device
X-Send-Pr-Version: 3.2

>Number:         5795
>Category:       kern
>Synopsis:       Panic: "bremfree: removing a buffer when not on a queue" with tunefs on a block device
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 15:40:08 PST 1998
>Closed-Date:    Thu Jan 4 13:03:56 PST 2001
>Last-Modified:  Thu Jan 04 13:05:44 PST 2001
>Originator:     Greg Lehey
>Release:        
>Organization:
LEMIS, PO Box 460, Echunga SA 5153, Australia
>Environment:
Any

>Description:

If tunefs is run against a block disk device, the system panics with the message

   bremfree: removing a buffer when not on a queue

Here's a trace:

#0  Debugger (msg=0xf011bbfc "panic") at ../../i386/i386/db_interface.c:317
#1  0xf011bc5e in panic (fmt=0xf0133c06 "bremfree: removing a buffer when not on a queue")
    at ../../kern/kern_shutdown.c:423
#2  0xf0133c9a in bremfree (bp=0xf24ed990) at ../../kern/vfs_bio.c:258
#3  0xf01349fa in vfs_bio_awrite (bp=0xf24ed990) at ../../kern/vfs_bio.c:926
#4  0xf01465d4 in spec_write (ap=0xf3e87ef8) at ../../miscfs/specfs/spec_vnops.c:401
#5  0xf01c2675 in ufsspec_write (ap=0xf3e87ef8) at ../../ufs/ufs/ufs_vnops.c:1784
#6  0xf01c2b79 in ufs_vnoperatespec (ap=0xf3e87ef8) at ../../ufs/ufs/ufs_vnops.c:2242
#7  0xf01404b7 in vn_write (fp=0xf053ea00, uio=0xf3e87f40, cred=0xf0544e00) at vnode_if.h:331
#8  0xf012385b in write (p=0xf3df2440, uap=0xf3e87f94) at ../../kern/sys_generic.c:268
#9  0xf01e999f in syscall (frame={tf_es = 0x27, tf_ds = 0x27, tf_edi = 0x0, tf_esi = 0x2000, tf_ebp = 0xefbfd01c, 
      tf_isp = 0xf3e87fe4, tf_ebx = 0x2000, tf_edx = 0x0, tf_ecx = 0x2000, tf_eax = 0x4, tf_trapno = 0xc, 
      tf_err = 0x7, tf_eip = 0xbb05, tf_cs = 0x1f, tf_eflags = 0x246, tf_esp = 0xefbfd000, tf_ss = 0x27})
    at ../../i386/i386/trap.c:993
#10 0xbb05 in ?? ()
#11 0x1956 in ?? ()
#12 0x107e in ?? ()
(kgdb) 

>How-To-Repeat:

	tunefs -a 10 /dev/wd0e

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Thu Jan 4 13:03:56 PST 2001 
State-Changed-Why:  
Greg says I can close this; we no longer have block devices. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=5795 
>Unformatted:
