Subject: Re: ext2fs_write crashing (build: head snapshot 200601060000Z)
To: Aravind Gottipati <>
From: Kevin Lahey <>
List: current-users
Date: 01/13/2006 13:41:46
On Wed, 11 Jan 2006 00:56:31 -0800
Aravind Gottipati <> wrote:

> I am sharing a local ext2 partition (/home) between my linux and NetBSD
> instances.  The partition mounts just fine and is usable for the most
> part.

I have the same setup.

> The problem I have is that the NetBSD kernel crashes when I try to use
> fetchmail+procmail to get my mail.

I've been seeing similar issues since late December (it had been a couple
of months since I'd updated).  Copying files is no problem, but at some 
point, galeon's startup caused a repeatable crash.  It looks like directory
operations are an issue -- this has been a problem in the past, as my
sporadic checkins of bug fixes for the ext2fs code will attest.

I also saw several crashes in msdos filesystems when I bittorrented into
them.  I could probably reproduce the problem if folks would like to see
it.  I presume that both the ext2 and msdos issues are related to the
filesystem changes in mid-December?

Anyway, here's the important part of the backtrace that I saw.  I'm still
working on coming up with a simple test case, but I haven't had the
spare time.

#34 0xc034c152 in kdb_trap (type=6, code=0, regs=0xcbc4fc04)
    at /usr/src/sys/arch/i386/i386/db_interface.c:226
#35 0xc035730c in trap (frame=0xcbc4fc04)
    at /usr/src/sys/arch/i386/i386/trap.c:310
#36 0xc0102e35 in calltrap ()
#37 0xc030c560 in VOP_WRITE (vp=0xcd1aa7f8, uio=0xcbc4fd24, ioflag=644, 
    cred=0xca720bd0) at /usr/src/sys/kern/vnode_if.c:462
#38 0xc030a15a in vn_rdwr (rw=UIO_WRITE, vp=0xcd1aa7f8, 
    base=0xcbc4fdc4 "\006P\035", len=24, offset=0, segflg=UIO_SYSSPACE, 
    ioflg=644, cred=0xca720bd0, aresid=0x0, l=0x0)
    at /usr/src/sys/kern/vfs_vnops.c:380
#39 0xc02440c3 in ext2fs_mkdir (v=0xcbc4fe14)
    at /usr/src/sys/ufs/ext2fs/ext2fs_vnops.c:1090
#40 0xc030c818 in VOP_MKDIR (dvp=0xcbce1d30, vpp=<incomplete type>, 
    cnp=0xcbc4fe88, vap=0xcbc4feb4) at /usr/src/sys/kern/vnode_if.c:937
#41 0xc03096dc in sys_mkdir (l=0xcbaed73c, v=0xcbc4ff64, retval=0xcbc4ff5c)
    at /usr/src/sys/kern/vfs_syscalls.c:3208
#42 0xc0356d73 in syscall_plain (frame=0xcbc4ffa8)
    at /usr/src/sys/arch/i386/i386/syscall.c:160