Subject: Re: kern/13323
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-bugs
Date: 06/19/2005 10:40:01
The following reply was made to PR kern/13323; it has been noted by GNATS.

From: Matthias Scheler <tron@zhadum.de>
To: NetBSD GNATS <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: kern/13323
Date: Sun, 19 Jun 2005 11:39:10 +0100

 On Sun, Jun 19, 2005 at 11:35:16AM +0100, Matthias Scheler wrote:
 > I just had a similar panic under NetBSD 3.0_BETA:
 > 
 > panic: blkfree: bad size
 > 
 > #0  0xc053e000 in ?? ()
 > #1  0xc02d264a in cpu_reboot ()
 > #2  0xc025e180 in panic ()
 > #3  0xc01e31af in ffs_blkfree ()
 > #4  0xc01eab97 in ffs_indirtrunc ()
 > #5  0xc01e9c7c in ffs_truncate ()
 > #6  0xc028f8d5 in VOP_TRUNCATE ()
 > #7  0xc0202537 in ufs_inactive ()
 > #8  0xc028f5a5 in VOP_INACTIVE ()
 > #9  0xc028403c in vclean ()
 > #10 0xc02844d2 in vgonel ()
 > #11 0xc0283f83 in vflush ()
 > #12 0xc01fdb35 in ffs_flushfiles ()
 > #13 0xc01fd8cb in ffs_unmount ()
 > #14 0xc0287309 in dounmount ()
 > #15 0xc028569c in vfs_unmountall ()
 > #16 0xc0285773 in vfs_shutdown ()
 > #17 0xc02d265e in cpu_reboot ()
 > #18 0xc0257d56 in sys_reboot ()
 > #19 0xc02da64e in syscall_plain ()
 
 Here's a more precise stack trace using the unstripped version of
 that kernel:
 
 #0  0xc053e000 in ?? ()
 #1  0xc02d264a in cpu_reboot (howto=260, bootstr=0x0)
     at /usr/src/sys/arch/i386/i386/machdep.c:751
 #2  0xc025e180 in panic (fmt=0xc03bb3fd "blkfree: bad size")
     at /usr/src/sys/kern/subr_prf.c:242
 #3  0xc01e31af in ffs_blkfree (fs=<incomplete type>, devvp=0xccf1fb34, 
     bno=170804307, size=4096, inum=8327)
     at /usr/src/sys/ufs/ffs/ffs_alloc.c:1574
 #4  0xc01eab97 in ffs_indirtrunc (ip=0xd52cd790, lbn=-12, dbn=21304, 
     lastbn=-1, level=0, countp=0xcd4bfb4c)
     at /usr/src/sys/ufs/ffs/ffs_inode.c:632
 #5  0xc01e9c7c in ffs_truncate (v=0xcd4bfc44)
     at /usr/src/sys/ufs/ffs/ffs_inode.c:418
 #6  0xc028f8d5 in VOP_TRUNCATE (vp=0xd1efe5f0, length=0, flags=0, 
     cred=0xffffffff, p=0xcd3e3804) at /usr/src/sys/kern/vnode_if.c:1822
 #7  0xc0202537 in ufs_inactive (v=0xcd4bfcc4)
     at /usr/src/sys/ufs/ufs/ufs_inode.c:102
 #8  0xc028f5a5 in VOP_INACTIVE (vp=0xd1efe5f0, p=0xcd3e3804)
     at /usr/src/sys/kern/vnode_if.c:1251
 #9  0xc028403c in vclean (vp=0xd1efe5f0, flags=8, p=0xcd3e3804)
     at /usr/src/sys/kern/vfs_subr.c:1695
 #10 0xc02844d2 in vgonel (vp=0xd1efe5f0, p=0xcd3e3804)
     at /usr/src/sys/kern/vfs_subr.c:1818
 ---Type <return> to continue, or q <return> to quit--- 
 #11 0xc0283f83 in vflush (mp=0xc16f3000, skipvp=0x0, flags=3)
     at /usr/src/sys/kern/vfs_subr.c:1552
 #12 0xc01fdb35 in ffs_flushfiles (mp=<incomplete type>, flags=2, p=0xcd3e3804)
     at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1221
 #13 0xc01fd8cb in ffs_unmount (mp=<incomplete type>, mntflags=524288, 
     p=0xcd3e3804) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1145
 #14 0xc0287309 in dounmount (mp=<incomplete type>, flags=524288, p=0xcd3e3804)
     at /usr/src/sys/kern/vfs_syscalls.c:566
 #15 0xc028569c in vfs_unmountall (p=0xcd3e3804)
     at /usr/src/sys/kern/vfs_subr.c:2662
 #16 0xc0285773 in vfs_shutdown () at /usr/src/sys/kern/vfs_subr.c:2721
 #17 0xc02d265e in cpu_reboot (howto=0, bootstr=0x0)
     at /usr/src/sys/arch/i386/i386/machdep.c:737
 #18 0xc0257d56 in sys_reboot (l=0xcd1db110, v=0xcd4bff64, retval=0xcd4bff5c)
     at /usr/src/sys/kern/kern_xxx.c:79
 #19 0xc02da64e in syscall_plain (frame=0xcd4bffa8)
     at /usr/src/sys/arch/i386/i386/syscall.c:158
 
 	Kind regards
 
 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/