Bug #1190

Updated by ftigeot almost 4 years ago


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_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
panic: from debugger
Uptime: 17h54m57s

(kgdb) bt
#0 dumpsys () at ./machine/thread.h:83
#1 0xc02dca22 in boot (howto=260) at
#2 0xc02dcb43 in panic (fmt=0xc0536036 "from debugger") at
#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
#5 0xc0167e04 in db_trap (type=3, code=0) at
#6 0xc04d281b in kdb_trap (type=3, code=0, regs=0xda299b9c) at
#7 0xc04e4075 in trap (frame=0xda299b9c) at
#8 0xc04d3527 in calltrap () at
#9 0xc04d26c8 in Debugger (msg=0xc054c032 "panic") at
#10 0xc02dcb3a in panic (fmt=0xc0532657 "assertion: %s in %s") at
#11 0xc045cf76 in hammer_free_hmp (mp=0xd270b958) at
#12 0xc045d09f in hammer_vfs_unmount (mp=0xd270b958, mntflags=0) at
#13 0xc032ae0d in dounmount (mp=0xd270b958, flags=0) at
#14 0xc032b05a in sys_unmount (uap=0xda299cf0) at
#15 0xc04e3a15 in syscall2 (frame=0xda299d40) at
#16 0xc04d35d6 in Xint0x80_syscall () at
#17 0x0804ace8 in ?? ()

The crash dump is already uploading to leaf in my crash/ dir

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

Filesystem Size Used Avail Capacity Mounted
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
ad1: 20480MB <VMware Virtual IDE Hard Drive 00000001> at ata0-slave
ad3: 1024MB <VMware Virtual IDE Hard Drive 00000001> at ata1-slave

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