zsh iapetus# kgdb /boot/kernel/kernel.symbols /var/crash/vmcore.12 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Ready to go. Enter 'tr' to connect to the remote target with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port or 'trf portno' to connect to the remote target with the firewire interface. portno defaults to 5556. Type 'getsyms' after connection to load kld symbols. If you're debugging a local system, you can use 'kldsyms' instead to load the kld symbols. That's a less obnoxious interface. During symbol reading...location expression too complex... During symbol reading, unsupported tag: 'DW_TAG_const_type'. Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor write data, page not present instruction pointer = 0x8:0xffffffffa2e7b26b stack pointer = 0x10:0xffffffffa2de0750 frame pointer = 0x10:0xffffffffa2de0780 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 3 current process = 1853 (Xorg) trap number = 12 panic: page fault cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a panic() at panic+0x17a trap_fatal() at trap_fatal+0x29f trap_pfault() at trap_pfault+0x294 trap() at trap+0x2ea calltrap() at calltrap+0x8 --- trap 0xc, rip = 0xffffffffa2e7b26b, rsp = 0xffffffffa2de0750, rbp = 0xffffffffa2de0780 --- i915_emit_mi_flush() at i915_emit_mi_flush+0x5b i915_dispatch_flip() at i915_dispatch_flip+0x41 i915_driver_lastclose() at i915_driver_lastclose+0x15a drm_lastclose() at drm_lastclose+0x2c drm_close() at drm_close+0x261 giant_close() at giant_close+0x67 devfs_close() at devfs_close+0x1a0 vn_close() at vn_close+0x81 vn_closefile() at vn_closefile+0x69 fdrop() at fdrop+0x13f closef() at closef+0x29 kern_close() at kern_close+0x15d syscall() at syscall+0x254 Xfast_syscall() at Xfast_syscall+0xab --- syscall (6, FreeBSD ELF64, close), rip = 0x80165ed1c, rsp = 0x7fffffffe8b8, rbp = 0x1 --- Uptime: 2h11m55s Physical memory: 986 MB Dumping 118 MB: 103 87 71 55 39 23 7 #0 doadump () at pcpu.h:194 194 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) kldstat During symbol reading, Incomplete CFI data; unspecified registers at 0xffffffff80486b8c. Id Refs Address Size Name 1 24 0x80100000 a8fea0 kernel 2 1 0x80b90000 7108 if_tap.ko 3 1 0x80b98000 bf10 if_bridge.ko 4 2 0x80ba4000 65b0 bridgestp.ko 5 1 0xa2d22000 35ac linprocfs.ko 6 1 0xa2d26000 18baa linux.ko 7 1 0xa2d85000 e8be snd_hda.ko 8 1 0xa2d94000 2e570 sound.ko 9 1 0xa2dcf000 1e0d acpi_ibm.ko 10 1 0xa2dd1000 1ea green_saver.ko 11 2 0xa2e6d000 da3e drm.ko 12 1 0xa2e7b000 7a7e i915.ko (kgdb) kldstat64 Undefined command: "kldstat64". Try "help". (kgdb) bt #0 doadump () at pcpu.h:194 #1 0xffffffff804870b8 in boot (howto=0x104) at /usr/home/nox/src70/src/sys/kern/kern_shutdown.c:409 #2 0xffffffff80487517 in panic (fmt=Variable "fmt" is not available. ) at /usr/home/nox/src70/src/sys/kern/kern_shutdown.c:563 #3 0xffffffff806f4d8f in trap_fatal (frame=0xc, eva=Variable "eva" is not available. ) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:724 #4 0xffffffff806f5174 in trap_pfault (frame=0xffffffffa2de06a0, usermode=0x0) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:641 #5 0xffffffff806f5b2a in trap (frame=0xffffffffa2de06a0) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:410 #6 0xffffffff806dac2e in calltrap () at /usr/home/nox/src70/src/sys/amd64/amd64/exception.S:169 #7 0xffffffffa2e7b26b in ?? () #8 0x00000000952063a0 in ?? () #9 0xffffff000315e800 in ?? () #10 0x0000000000000000 in ?? () #11 0x0000000000000003 in ?? () #12 0xffffffffa2de07d0 in ?? () #13 0xffffffffa2e7b421 in ?? () #14 0xffffffffa2de0800 in ?? () #15 0x000000003e69ad98 in ?? () #16 0xffffffff00000002 in ?? () #17 0xffffff000315e800 in ?? () #18 0xffffff000301f000 in ?? () #19 0x0000000000000003 in ?? () #20 0xffffff000301f000 in ?? () #21 0x0000000000000003 in ?? () #22 0xffffffffa2de0800 in ?? () #23 0xffffffffa2e7ca6a in ?? () #24 0xffffff000315e800 in ?? () #25 0xffffff0003037880 in ?? () #26 0xffffff000315e800 in ?? () #27 0xffffff000315e9d8 in ?? () #28 0xffffffffa2de0830 in ?? () #29 0xffffffffa2e7226c in ?? () #30 0xffffffffa2de0830 in ?? () #31 0xffffff000315e800 in ?? () #32 0xffffff0003037880 in ?? () #33 0x0000000000000000 in ?? () #34 0xffffffffa2de0870 in ?? () #35 0xffffffffa2e73071 in ?? () #36 0xffffff00356ffd90 in ?? () #37 0x0000000000000004 in ?? () #38 0xffffff003503b400 in ?? () #39 0xffffff000b02d000 in ?? () #40 0x0000000000002000 in ?? () #41 0x0000000000000003 in ?? () #42 0xffffffffa2de08b0 in ?? () #43 0xffffffff80454f27 in giant_close (dev=0xffffff000315e800, fflag=0x3, devtype=0x315e800, td=0x2000003) at /usr/home/nox/src70/src/sys/kern/kern_conf.c:327 Previous frame inner to this frame (corrupt stack?) (kgdb) source /home/nox/drm/drm/bsd-core/i915/.asf add symbol table from file "/home/nox/drm/drm/bsd-core/i915/i915.ko.debug" at .text_addr = 0xffffffffa2e7b000 .data_addr = 0xffffffffa2e823c0 .bss_addr = 0xffffffffa2e829c0 (kgdb) bt #0 doadump () at pcpu.h:194 During symbol reading, Incomplete CFI data; unspecified registers at 0xffffffff80486b8c. #1 0xffffffff804870b8 in boot (howto=0x104) at /usr/home/nox/src70/src/sys/kern/kern_shutdown.c:409 #2 0xffffffff80487517 in panic (fmt=Variable "fmt" is not available. ) at /usr/home/nox/src70/src/sys/kern/kern_shutdown.c:563 #3 0xffffffff806f4d8f in trap_fatal (frame=0xc, eva=Variable "eva" is not available. ) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:724 #4 0xffffffff806f5174 in trap_pfault (frame=0xffffffffa2de06a0, usermode=0x0) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:641 #5 0xffffffff806f5b2a in trap (frame=0xffffffffa2de06a0) at /usr/home/nox/src70/src/sys/amd64/amd64/trap.c:410 #6 0xffffffff806dac2e in calltrap () at /usr/home/nox/src70/src/sys/amd64/amd64/exception.S:169 #7 0xffffffffa2e7b26b in i915_emit_mi_flush (dev=0xffffff000315e800, flush=0x2000003) at /usr/home/nox/drm/drm/bsd-core/i915/../i915_dma.c:538 #8 0xffffffffa2e7b421 in i915_dispatch_flip (dev=0xffffff000315e800, planes=0x2, sync=0x0) at /usr/home/nox/drm/drm/bsd-core/i915/../i915_dma.c:702 #9 0xffffffffa2e7ca6a in i915_driver_lastclose (dev=0xffffff000315e800) at /usr/home/nox/drm/drm/bsd-core/i915/../i915_dma.c:817 #10 0xffffffffa2e7226c in ?? () #11 0xffffffffa2de0830 in ?? () #12 0xffffff000315e800 in ?? () #13 0xffffff0003037880 in ?? () #14 0x0000000000000000 in ?? () #15 0xffffffffa2de0870 in ?? () #16 0xffffffffa2e73071 in ?? () #17 0xffffff00356ffd90 in ?? () #18 0x0000000000000004 in __func__.12961 () #19 0xffffff003503b400 in ?? () #20 0xffffff000b02d000 in ?? () #21 0x0000000000002000 in ?? () #22 0x0000000000000003 in __func__.12961 () #23 0xffffffffa2de08b0 in ?? () #24 0xffffffff80454f27 in giant_close (dev=0xffffff0003037880, fflag=0x3, devtype=0x315e9d8, td=0xffffff000315e800) at /usr/home/nox/src70/src/sys/kern/kern_conf.c:327 Previous frame inner to this frame (corrupt stack?) (kgdb) fr 7 #7 0xffffffffa2e7b26b in i915_emit_mi_flush (dev=0xffffff000315e800, flush=0x2000003) at /usr/home/nox/drm/drm/bsd-core/i915/../i915_dma.c:538 538 OUT_RING(flush_cmd); (kgdb) p flush_cmd No symbol "flush_cmd" in current context. (kgdb) l 533 flush_cmd |= flush; 534 535 i915_kernel_lost_context(dev); 536 537 BEGIN_LP_RING(4); 538 OUT_RING(flush_cmd); 539 OUT_RING(0); 540 OUT_RING(0); 541 OUT_RING(0); 542 ADVANCE_LP_RING(); (kgdb) l BEGIN_LP_RING Function "BEGIN_LP_RING" not defined. (kgdb) disassemble i915_emit_mi_flush Dump of assembler code for function i915_emit_mi_flush: 0xffffffffa2e7b210 : push %rbp 0xffffffffa2e7b211 : mov %rsp,%rbp 0xffffffffa2e7b214 : sub $0x20,%rsp 0xffffffffa2e7b218 : mov %r12,0xfffffffffffffff0(%rbp) 0xffffffffa2e7b21c : mov %r13,0xfffffffffffffff8(%rbp) 0xffffffffa2e7b220 : mov %rdi,%r12 0xffffffffa2e7b223 : mov %rbx,0xffffffffffffffe8(%rbp) 0xffffffffa2e7b227 : mov 0x558(%rdi),%rbx 0xffffffffa2e7b22e : mov %esi,%r13d 0xffffffffa2e7b231 : callq 0xffffffffa2e7b000 0xffffffffa2e7b236 : cmpl $0xf,0x48(%rbx) 0xffffffffa2e7b23a : jg 0xffffffffa2e7b250 0xffffffffa2e7b23c : mov $0xffffffffa2e813a0,%rdx 0xffffffffa2e7b243 : mov $0x10,%esi 0xffffffffa2e7b248 : mov %r12,%rdi 0xffffffffa2e7b24b : callq 0xffffffffa2e7b0e0 0xffffffffa2e7b250 : mov 0x44(%rbx),%edx 0xffffffffa2e7b253 : mov 0x18(%rbx),%esi 0xffffffffa2e7b256 : or $0x2000000,%r13d 0xffffffffa2e7b25d : mov 0x38(%rbx),%rcx 0xffffffffa2e7b261 : mov %edx,%eax 0xffffffffa2e7b263 : add $0x4,%edx 0xffffffffa2e7b266 : add %rcx,%rax 0xffffffffa2e7b269 : and %esi,%edx 0xffffffffa2e7b26b : mov %r13d,(%rax) 0xffffffffa2e7b26e : mov %edx,%eax 0xffffffffa2e7b270 : add $0x4,%edx 0xffffffffa2e7b273 : add %rcx,%rax 0xffffffffa2e7b276 : and %esi,%edx 0xffffffffa2e7b278 : movl $0x0,(%rax) 0xffffffffa2e7b27e : mov %edx,%eax 0xffffffffa2e7b280 : add $0x4,%edx 0xffffffffa2e7b283 : add %rcx,%rax 0xffffffffa2e7b286 : and %esi,%edx 0xffffffffa2e7b288 : movl $0x0,(%rax) 0xffffffffa2e7b28e : mov %edx,%eax 0xffffffffa2e7b290 : add $0x4,%edx 0xffffffffa2e7b293 : add %rcx,%rax 0xffffffffa2e7b296 : and %esi,%edx 0xffffffffa2e7b298 : movl $0x0,(%rax) 0xffffffffa2e7b29e : mov 0x8(%rbx),%rax 0xffffffffa2e7b2a2 : subl $0x10,0x48(%rbx) 0xffffffffa2e7b2a6 : mov %edx,0x44(%rbx) 0xffffffffa2e7b2a9 : mov 0x18(%rax),%rax 0xffffffffa2e7b2ad : mov %edx,0x2030(%rax) 0xffffffffa2e7b2b3 : mov 0xffffffffffffffe8(%rbp),%rbx 0xffffffffa2e7b2b7 : xor %eax,%eax 0xffffffffa2e7b2b9 : mov 0xfffffffffffffff0(%rbp),%r12 0xffffffffa2e7b2bd : mov 0xfffffffffffffff8(%rbp),%r13 0xffffffffa2e7b2c1 : leaveq 0xffffffffa2e7b2c2 : retq End of assembler dump. (kgdb)