GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #1 085f959(page_cache_merge): Tue Jan 20 10:46:47 CET 2015 pho@t2.osted.lan:/var/tmp/freebsd-net-hyg/sys/amd64/compile/PHO amd64 FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115 WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. VT: running with driver "vga". CPU: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz (1995.24-MHz K8-class CPU) Origin="GenuineIntel" Id=0x206d7 Family=0x6 Model=0x2d Stepping=7 Features=0xbfebfbff Features2=0x1fbee3ff AMD Features=0x2c100800 AMD Features2=0x1 XSAVE Features=0x1 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 68719476736 (65536 MB) avail memory = 32142733312 (30653 MB) : Trying to mount root from ufs:/dev/da0p2 [rw]... Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex vm page (vm page) r = 0 (0xffffffff818b7880) locked @ kern/vfs_bio.c:1905 exclusive rw vm object (vm object) r = 0 (0xfffff80011549300) locked @ kern/vfs_bio.c:1897 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe07fbdf5ad0 witness_warn() at witness_warn+0x4ae/frame 0xfffffe07fbdf5ba0 trap_pfault() at trap_pfault+0x59/frame 0xfffffe07fbdf5c40 trap() at trap+0x4b2/frame 0xfffffe07fbdf5e50 calltrap() at calltrap+0x8/frame 0xfffffe07fbdf5e50 --- trap 0xc, rip = 0xffffffff80c0a336, rsp = 0xfffffe07fbdf5f10, rbp = 0xfffffe07fbdf5f30 --- atomic_add_int() at atomic_add_int+0x16/frame 0xfffffe07fbdf5f30 vm_pagequeue_cnt_add() at vm_pagequeue_cnt_add+0x2e/frame 0xfffffe07fbdf5f50 vm_page_enqueue() at vm_page_enqueue+0x158/frame 0xfffffe07fbdf5fb0 vm_page_unwire() at vm_page_unwire+0x1c6/frame 0xfffffe07fbdf5fd0 vfs_vmio_release() at vfs_vmio_release+0x14a/frame 0xfffffe07fbdf6000 brelse() at brelse+0x543/frame 0xfffffe07fbdf6080 ffs_mount() at ffs_mount+0x1749/frame 0xfffffe07fbdf62b0 vfs_donmount() at vfs_donmount+0x11dd/frame 0xfffffe07fbdf6570 kernel_mount() at kernel_mount+0x62/frame 0xfffffe07fbdf65d0 parse_mount() at parse_mount+0x621/frame 0xfffffe07fbdf6710 vfs_mountroot() at vfs_mountroot+0x7a1/frame 0xfffffe07fbdf69d0 start_init() at start_init+0x62/frame 0xfffffe07fbdf6a70 fork_exit() at fork_exit+0x84/frame 0xfffffe07fbdf6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe07fbdf6ab0 --- trap 0, rip = 0, rsp = 0xfffffe07fbdf6b70, rbp = 0 --- Fatal trap 12: page fault while in kernel mode cpuid = 7; apic id = 07 fault virtual address = 0x0 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80c0a336 stack pointer = 0x28:0xfffffe07fbdf5f10 frame pointer = 0x28:0xfffffe07fbdf5f30 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1 (kernel) [ thread pid 1 tid 100002 ] Stopped at atomic_add_int+0x16: lock addl %esi,(%rdi) db> reset cpu_reset: Restarting BSP cpu_reset_proxy: Stopped CPU 7 (kgdb) l *vm_page_enqueue+0x158 0xffffffff80c0fff8 is in vm_page_enqueue (../../../vm/vm_page.c:2021). 2016 if (queue == PQ_INACTIVE) { 2017 pq = &vm_phys_domain(m)->vmd_pagequeues[vm_page_queue_idx(m)]; 2018 m->queue = queue; 2019 TAILQ_INSERT_TAIL(&pq->pq_pl, m, plinks.q); 2020 vm_pagequeue_cnt_inc(pq); 2021 } else { 2022 pq = &vm_phys_domain(m)->vmd_pagequeues[queue]; 2023 vm_pagequeue_lock(pq); 2024 m->queue = queue; 2025 TAILQ_INSERT_TAIL(&pq->pq_pl, m, plinks.q); (kgdb) l *vm_page_unwire+0x1c6 0xffffffff80c10846 is in vm_page_unwire (../../../vm/vm_page.c:2336). 2331 return; 2332 if (queue == PQ_INACTIVE) 2333 m->flags &= ~PG_WINATCFLS; 2334 if (queue != PQ_NONE) 2335 vm_page_enqueue(queue, m); 2336 } 2337 } else 2338 panic("vm_page_unwire: page %p's wire count is zero", m); 2339 } 2340 (kgdb)