Bug #1190

Updated by ftigeot almost 3 years ago

Hi,

during my recent work with the installer (add HAMMER support) my
DragonFly box paniced while unmounting a HAMMER volume:

panic: assertion: RB_EMPTY(&hmp->rb_inos_root) in hammer_free_hmp
Trace beginning at frame 0xda299bf0
panic(da299c14,1e,da287000,d270b958,da299c28) at panic+0x8c
panic(c0532657,c0559b86,c051a96d,0,d270b958) at panic+0x8c
hammer_free_hmp(d270bb60,d270b958,da299c6c,c032ae0d,d270b958) at
hammer_free_hmp+0xd8
hammer_vfs_unmount(d270b958,0,0,d270b978,1) at hammer_vfs_unmount+0x33
dounmount(d270b958,0,d270b958,0,0) at dounmount+0x1a8
sys_unmount(da299cf0,6,bd34,0,d270a518) at sys_unmount+0xdf
syscall2(da299d40) at syscall2+0x1ef
Xint0x80_syscall() at Xint0x80_syscall+0x36
Debugger("panic")
panic: from debugger
Uptime: 17h54m57s

(kgdb) bt
#0 dumpsys () at ./machine/thread.h:83
#1 0xc02dca22 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:375
#2 0xc02dcb43 in panic (fmt=0xc0536036 "from debugger") at
/usr/src/sys/kern/kern_shutdown.c:800
#3 0xc01651e5 in db_panic (addr=-1068685624, have_addr=0, count=-1,
modif=0xda299aa4 "") at /usr/src/sys/ddb/db_command.c:447
#4 0xc0165850 in db_command_loop () at
/usr/src/sys/ddb/db_command.c:343
#5 0xc0167e04 in db_trap (type=3, code=0) at
/usr/src/sys/ddb/db_trap.c:71
#6 0xc04d281b in kdb_trap (type=3, code=0, regs=0xda299b9c) at
/usr/src/sys/platform/pc32/i386/db_interface.c:148
#7 0xc04e4075 in trap (frame=0xda299b9c) at
/usr/src/sys/platform/pc32/i386/trap.c:815
#8 0xc04d3527 in calltrap () at
/usr/src/sys/platform/pc32/i386/exception.s:785
#9 0xc04d26c8 in Debugger (msg=0xc054c032 "panic") at
./cpu/cpufunc.h:73
#10 0xc02dcb3a in panic (fmt=0xc0532657 "assertion: %s in %s") at
/usr/src/sys/kern/kern_shutdown.c:798
#11 0xc045cf76 in hammer_free_hmp (mp=0xd270b958) at
/usr/src/sys/vfs/hammer/hammer_vfsops.c:719
#12 0xc045d09f in hammer_vfs_unmount (mp=0xd270b958, mntflags=0) at
/usr/src/sys/vfs/hammer/hammer_vfsops.c:668
#13 0xc032ae0d in dounmount (mp=0xd270b958, flags=0) at
/usr/src/sys/kern/vfs_syscalls.c:699
#14 0xc032b05a in sys_unmount (uap=0xda299cf0) at
/usr/src/sys/kern/vfs_syscalls.c:584
#15 0xc04e3a15 in syscall2 (frame=0xda299d40) at
/usr/src/sys/platform/pc32/i386/trap.c:1357
#16 0xc04d35d6 in Xint0x80_syscall () at
/usr/src/sys/platform/pc32/i386/exception.s:876
#17 0x0804ace8 in ?? ()

The crash dump is already uploading to leaf in my crash/ dir
(vmcore/kernel.0).

The machine itself (VMWare VM) is running HAMMER as root file system:

Filesystem Size Used Avail Capacity Mounted
on
ROOT 5.6G 4.2G 1.4G 75% /
BUILD 20G 2.9G 17G 15% /build
/dev/ad0s1a 252M 107M 125M 46% /boot

ad0: 8192MB <VMware Virtual IDE Hard Drive 00000001> at ata0-master
UDMA33
ad1: 20480MB <VMware Virtual IDE Hard Drive 00000001> at ata0-slave
UDMA33
ad3: 1024MB <VMware Virtual IDE Hard Drive 00000001> at ata1-slave
UDMA33

The installer mounted a third HAMMER volume during the installation run.
I had to cancel the installer and thus had to unmount the volume by
hand. During that unmount the box crashed. Its running

DragonFly hammer01 2.1.1-DEVELOPMENT DragonFly 2.1.1-DEVELOPMENT #0: Sat
Dec 27 21:58:01 GMT 2008 root@hammer01:/usr/obj/usr/src/sys/GENERIC
i386

Regards

Matthias

Back