NetBSD Problem Report #39914
From rmind@NetBSD.org Thu Nov 13 17:21:30 2008
Return-Path: <rmind@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id B37A863B898
for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Nov 2008 17:21:30 +0000 (UTC)
Message-Id: <20081113172129.2EF1765D04@ftp.NetBSD.org>
Date: Thu, 13 Nov 2008 17:21:29 +0000 (UTC)
From: rmind@netbsd.org
Reply-To: rmind@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed when unmounting ext2fs
X-Send-Pr-Version: 3.95
>Number: 39914
>Category: kern
>Synopsis: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed when unmounting ext2fs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 13 17:25:00 +0000 2008
>Closed-Date: Sat Dec 19 02:33:02 +0000 2015
>Last-Modified: Sat Dec 19 02:33:02 +0000 2015
>Originator: Mindaugas Rasiukevicius
>Release: 5.99.1
>Organization:
The NetBSD Foundation
>Environment:
>Description:
Could not get core dump, but:
panic: kernel diagnostic assertion "LIST_EMPTY(&vp->v_dirtyblkhd) failed:
file "/home/netbsd/src-shm/sys/kern/vfs_subr.c", line 872
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c017c81c cs 8 eflags 246 cr2 bb903000 ilevel 0
Stopped in pid 6442.1 (umount) at netbsd:breakpoint+0x4: popl %ebp
db{1}> bt
breakpoint() at netbsd:breakpoint+0x4
panic() at netbsd:panic+x1aa
__kernassert() at netbsd:__kernassert+0x39
vinvalbuf(cbfacad4,1,ffffffff,cc486a20,0,0,cc2cbbcc,80000001,cc2cbbbc,4000) at netbsd:spec_close+0x87
VOP_CLOSE() at 0x68
ext2fs_unmount() at netbsd:ext2fd_unmount+0x9e
VFS_UNMOUNT() at netbsd:VFS_UNMOUNT+0x26
dounmount() at netbsd:dounmount+0xb0
sys_unmount() at netbsd:sys_unmount+0x10b
syscall() at netbsd:syscall+0xb1
db{1}> show vnode cbfacad4
OBJECT 0xcbfacad4: locked=0, pgops=0xc0481420, npages=0, refs=1
VNODE flags 4030<MPSAFE,LOCKSWORK,ONWORKLST>
mp 0xcbe0861c numoutput 0 size 0x0 writesize 0x0
data 0xcbfaa938 writecount 0 holdcnt 740
tag VT_UFS(1) type VBLK(3) mount 0xcbe0861c typedata 0xcbfaa938
v_lock 0xcbfacb74 v_vnlock 0xcbfacb74
>How-To-Repeat:
mount ext2 file system
some activity on file system (eg. build)
umount
>Fix:
>Release-Note:
>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
tsutsui@ceres.dti.ne.jp
Subject: Re: kern/39914: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed when
unmounting ext2fs
Date: Sat, 12 Sep 2009 12:34:29 +0900
>>Synopsis: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed when unmounting ext2fs
:
> panic() at netbsd:panic+x1aa
> __kernassert() at netbsd:__kernassert+0x39
> vinvalbuf(cbfacad4,1,ffffffff,cc486a20,0,0,cc2cbbcc,80000001,cc2cbbbc,4000) at netbsd:spec_close+0x87
> VOP_CLOSE() at 0x68
> ext2fs_unmount() at netbsd:ext2fd_unmount+0x9e
> VFS_UNMOUNT() at netbsd:VFS_UNMOUNT+0x26
> dounmount() at netbsd:dounmount+0xb0
> sys_unmount() at netbsd:sys_unmount+0x10b
> syscall() at netbsd:syscall+0xb1
Could this fix affect this one?
http://mail-index.NetBSD.org/source-changes/2009/09/12/msg000773.html
>> Add a missed brelse(9) call after bread(9) in ext2fs_reload().
---
Izumi Tsutsui
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
rmind@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: kern/39914: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed whenunmounting
ext2fs
Date: Sun, 13 Sep 2009 15:13:06 +0900
I wrote:
> >>Synopsis: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed when unmounting ext2fs
> Could this fix affect this one?
> http://mail-index.NetBSD.org/source-changes/2009/09/12/msg000773.html
> >> Add a missed brelse(9) call after bread(9) in ext2fs_reload().
Ah, no, it still happens on netbsd-5-0 with the above fix.
Maybe the same problem as PR kern/41189.
---
Izumi tsutsui
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
rmind@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: kern/39914: KASSERT(LIST_EMPTY(&vp->v_dirtyblkhd)) failed whenunmountingext2fs
Date: Sun, 13 Sep 2009 21:19:59 +0900
I wrote:
> > Could this fix affect this one?
> > http://mail-index.NetBSD.org/source-changes/2009/09/12/msg000773.html
> > >> Add a missed brelse(9) call after bread(9) in ext2fs_reload().
>
> Ah, no, it still happens on netbsd-5-0 with the above fix.
> Maybe the same problem as PR kern/41189.
Well, but it doesn't seem to happen on recent -current,
though I'm not sure which changes could affect it.
---
Izumi Tsutsui
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Dec 2015 02:33:02 +0000
State-Changed-Why:
Was fixed in early 5.99.x, and -5 is now EOL
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.