Bug #2498

Updated by tuxillo 8 months ago



 Right after adding a new volume to a live HAMMER filesystem, rebooting causes panic below: 
 Switching to cpu #0 for shutdown 
 Waiting (max 60 seconds) for system thread vnlru to stop...stopped 
 Waiting (max 60 seconds) for system thread consttyd to stop...stopped 
 Waiting (max 60 seconds) for system thread swapcached to stop...stopped 
 Waiting (max 60 seconds) for system thread bufdaemon_hw to stop...stopped 
 Waiting (max 60 seconds) for system thread bufdaemon to stop...stopped 
 Waiting (max 60 seconds) for system thread syncer0 to stop...stopped 


 syncing disks...  
 panic: assertion "LIST_FIRST(&bp->b_dep) == NULL" failed in vfs_vmio_release at /build/home/justin/src/sys/kern/vfs_bio.c:1867 
 cpuid = 0 
 Trace beginning at frame 0xffffffe0456b74b8 
 panic() at panic+0x1fb 0xffffffff804ed5c8  
 panic() at panic+0x1fb 0xffffffff804ed5c8  
 vfs_vmio_release() at vfs_vmio_release+0x256 0xffffffff805487a3  
 brelse() at brelse+0x3dd 0xffffffff805497ce  
 vinvalbuf_bp() at vinvalbuf_bp+0x168 0xffffffff8055fb22  
 buf_rb_tree_RB_SCAN() at buf_rb_tree_RB_SCAN+0xf7 0xffffffff8055ff79  
 vinvalbuf() at vinvalbuf+0xec 0xffffffff80560533  
 vclean_vxlocked() at vclean_vxlocked+0xbd 0xffffffff805606ed  
 vgone_vxlocked() at vgone_vxlocked+0x4c 0xffffffff805608fd  
 vflush_scan() at vflush_scan+0x92 0xffffffff80563a0d  
 vmntvnodescan() at vmntvnodescan+0x1b3 0xffffffff80563bf5  
 vflush() at vflush+0x166 0xffffffff80563e69  
 devfs_vfs_unmount() at devfs_vfs_unmount+0x42 0xffffffff806c85f7  
 vfs_unmount() at vfs_unmount+0x83 0xffffffff80571ef0  
 dounmount() at dounmount+0x221 0xffffffff8056d125  
 vfs_umountall_callback() at vfs_umountall_callback+0x1e 0xffffffff8055ec79  
 mountlist_scan() at mountlist_scan+0x137 0xffffffff80564259  
 vfs_unmountall() at vfs_unmountall+0x22 0xffffffff8055de5d  
 boot() at boot+0x2fa 0xffffffff804ed1f2  
 sys_reboot() at sys_reboot+0x42 0xffffffff804ed836  
 syscall2() at syscall2+0x370 0xffffffff8089ff81  
 Xfast_syscall() at Xfast_syscall+0xcb 0xffffffff808897cb  


 Fatal trap 12: page fault while in kernel mode 
 cpuid = 0; lapic->id = 00000000 
 fault virtual address     = 0x100000007 
 fault code                = supervisor read data, page not present 
 instruction pointer       = 0x8:0xffffffff80899709 
 stack pointer             = 0x10:0xffffffe0456b7368 
 frame pointer             = 0x10:0xffffffe0456b7368 
 code segment              = base 0x0, limit 0xfffff, type 0x1b 
                         = DPL 0, pres 1, long 0, def32 0, gran 1 
 processor eflags          = interrupt enabled, resume, IOPL = 0 
 current process           = 1014 
 current thread            = pri 31  
 kernel: type 12 trap, code=0 


 Coredump can be found in: leaf:~tuxillo/listfirst_*.0 


 Antonio Huete