Bug #1907

Hammer crash in hammer_flusher_flush()

Added by swildner almost 6 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


I've had another hammer crash on master while running fsstress. This
time it hit an assertion in hammer_flusher_flush(). The filesystem was
mounted -o nohistory.

Dump is in ~swildner/crash/crash29.tbz on leaf.

Panic message is:

Unread portion of the kernel message buffer:
panic: assertion: flg->refs == 0 in hammer_flusher_flush
mp_lock = 00000001; cpuid = 0
Trace beginning at frame 0xd91b5d2c
panic(ffffffff) at panic+0x174
panic(c05e1dd5,c060d920,c05cb4a2,d91a8124,d91a8154) at panic+0x174
hammer_flusher_master_thread(d91a8000,0,0,0,0) at
lwkt_exit() at lwkt_exit


(kgdb) bt
#0 _get_mycpu (di=0xc07622e0) at ./machine/thread.h:83
#1 md_dumpsys (di=0xc07622e0) at
#2 0xc030e041 in dumpsys () at /d1/src/sys/kern/kern_shutdown.c:881
#3 0xc017d441 in db_fncall (dummy1=2, dummy2=0, dummy3=-1068125532,
dummy4=0xd91b5bd8 "") at /d1/src/sys/ddb/db_command.c:542
#4 0xc017d932 in db_command () at /d1/src/sys/ddb/db_command.c:344
#5 db_command_loop () at /d1/src/sys/ddb/db_command.c:470
#6 0xc017ffc4 in db_trap (type=3, code=0) at /d1/src/sys/ddb/db_trap.c:71
#7 0xc055b4a8 in kdb_trap (type=3, code=0, regs=0xd91b5cdc) at
#8 0xc05749b7 in trap (frame=0xd91b5cdc) at
#9 0xc055c827 in calltrap () at
#10 0xc055b2a4 in breakpoint (msg=0xc05fd655 "panic") at ./cpu/cpufunc.h:73
#11 Debugger (msg=0xc05fd655 "panic") at
#12 0xc030e8d0 in panic (fmt=0xc05e1dd5 "assertion: %s in %s") at
#13 0xc04adeb8 in hammer_flusher_flush (arg=0xd91a8000) at
#14 hammer_flusher_master_thread (arg=0xd91a8000) at
#15 0xc031839a in lwkt_deschedule_self (td=Cannot access memory at
address 0x8
) at /d1/src/sys/kern/lwkt_thread.c:258
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Also available in: Atom PDF