Since around the early r335000s in -CURRENT, I've been getting this panic when our modules are loaded on startup from /etc/rc.conf's kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko". This occasionally also happens when loaded manually from the shell.
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
ardmore dumped core - see /var/crash/vmcore.7
Fri Jul 6 13:07:55 EDT 2018
FreeBSD ardmore 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r336033: Fri Jul 6 12:32:45 EDT 2018 root@ardmore:/usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE amd64
panic: page fault
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"...BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
BFD: /boot/kernel/kernel: invalid relocation type 37
BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/local/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
Unread portion of the kernel message buffer:
<snip>
<regular boot sequence until interrupted by panic below>
<6>[drm] GPU HANG: ecode 8:0:0xfffffffe, reason: Hang on render ring, action: reset
<6>[drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
<6>[drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
<6>[drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
<6>[drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
<6>[drm] GPU crash dump saved to /sys/class/drm/card0/error
<5>drm/i915: Resetting chip after gpu hang
Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address = 0xa8
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff84fe67db
stack pointer = 0x28:0xfffffe004de135c0
frame pointer = 0x28:0xfffffe004de13600
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 = 0 (linuxkpi_long_wq_2)
trap number = 12
panic: page fault
cpuid = 2
time = 1530896375
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe004de13270
vpanic() at vpanic+0x1a3/frame 0xfffffe004de132d0
panic() at panic+0x43/frame 0xfffffe004de13330
trap_fatal() at trap_fatal+0x35c/frame 0xfffffe004de13380
trap_pfault() at trap_pfault+0x49/frame 0xfffffe004de133e0
trap() at trap+0x2c8/frame 0xfffffe004de134f0
calltrap() at calltrap+0x8/frame 0xfffffe004de134f0
--- trap 0xc, rip = 0xffffffff84fe67db, rsp = 0xfffffe004de135c0, rbp = 0xfffffe004de13600 ---
reset_common_ring() at reset_common_ring+0x12b/frame 0xfffffe004de13600
i915_gem_reset_engine() at i915_gem_reset_engine+0xef/frame 0xfffffe004de13660
i915_gem_reset() at i915_gem_reset+0x62/frame 0xfffffe004de13690
i915_reset() at i915_reset+0x162/frame 0xfffffe004de136f0
i915_reset_and_wakeup() at i915_reset_and_wakeup+0xcc/frame 0xfffffe004de13750
i915_handle_error() at i915_handle_error+0x154/frame 0xfffffe004de13850
i915_hangcheck_elapsed() at i915_hangcheck_elapsed+0x639/frame 0xfffffe004de13980
linux_work_fn() at linux_work_fn+0x12f/frame 0xfffffe004de139e0
taskqueue_run_locked() at taskqueue_run_locked+0x154/frame 0xfffffe004de13a40
taskqueue_thread_loop() at taskqueue_thread_loop+0x98/frame 0xfffffe004de13a70
fork_exit() at fork_exit+0x83/frame 0xfffffe004de13ab0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe004de13ab0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
Uptime: 11s
Dumping 461 out of 8049 MB:..4%..11%..21%..32%..42%..53%..63%..73%..84%..91%
Reading symbols from /boot/kernel/fuse.ko...Reading symbols from /usr/lib/debug//boot/kernel/fuse.ko.debug...done.
done.
Loaded symbols for /boot/kernel/fuse.ko
Reading symbols from /boot/kernel/if_iwm.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_iwm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_iwm.ko
Reading symbols from /boot/kernel/iwm7265Dfw.ko...Reading symbols from /usr/lib/debug//boot/kernel/iwm7265Dfw.ko.debug...done.
done.
Loaded symbols for /boot/kernel/iwm7265Dfw.ko
Reading symbols from /boot/kernel/if_rtwn_usb.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_rtwn_usb.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_rtwn_usb.ko
Reading symbols from /boot/kernel/rtwn.ko...Reading symbols from /usr/lib/debug//boot/kernel/rtwn.ko.debug...done.
done.
Loaded symbols for /boot/kernel/rtwn.ko
Reading symbols from /boot/kernel/rtwn-rtl8812aufw.ko...Reading symbols from /usr/lib/debug//boot/kernel/rtwn-rtl8812aufw.ko.debug...done.
done.
Loaded symbols for /boot/kernel/rtwn-rtl8812aufw.ko
Reading symbols from /boot/kernel/if_urndis.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_urndis.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_urndis.ko
Reading symbols from /boot/kernel/uether.ko...Reading symbols from /usr/lib/debug//boot/kernel/uether.ko.debug...done.
done.
Loaded symbols for /boot/kernel/uether.ko
Reading symbols from /boot/kernel/cuse.ko...Reading symbols from /usr/lib/debug//boot/kernel/cuse.ko.debug...done.
done.
Loaded symbols for /boot/kernel/cuse.ko
Reading symbols from /boot/kernel/filemon.ko...Reading symbols from /usr/lib/debug//boot/kernel/filemon.ko.debug...done.
done.
Loaded symbols for /boot/kernel/filemon.ko
Reading symbols from /boot/kernel/vmm.ko...Reading symbols from /usr/lib/debug//boot/kernel/vmm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/vmm.ko
Reading symbols from /boot/kernel/nmdm.ko...Reading symbols from /usr/lib/debug//boot/kernel/nmdm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/nmdm.ko
Reading symbols from /boot/kernel/if_bridge.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_bridge.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_bridge.ko
Reading symbols from /boot/kernel/bridgestp.ko...Reading symbols from /usr/lib/debug//boot/kernel/bridgestp.ko.debug...done.
done.
Loaded symbols for /boot/kernel/bridgestp.ko
Reading symbols from /boot/kernel/if_tap.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_tap.ko.debug...done.
done.
Loaded symbols for /boot/kernel/if_tap.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/tmpfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /usr/lib/debug//boot/kernel/drm.ko.debug...done.
done.
Loaded symbols for /boot/kernel/drm.ko
Reading symbols from /boot/kernel/linuxkpi.ko...Reading symbols from /usr/lib/debug//boot/kernel/linuxkpi.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linuxkpi.ko
Reading symbols from /boot/modules/linuxkpi_gplv2.ko...done.
Loaded symbols for /boot/modules/linuxkpi_gplv2.ko
Reading symbols from /boot/modules/debugfs.ko...done.
Loaded symbols for /boot/modules/debugfs.ko
Reading symbols from /boot/kernel/i915kms.ko...Reading symbols from /usr/lib/debug//boot/kernel/i915kms.ko.debug...done.
done.
Loaded symbols for /boot/kernel/i915kms.ko
Reading symbols from /boot/kernel/snd_uaudio.ko...Reading symbols from /usr/lib/debug//boot/kernel/snd_uaudio.ko.debug...done.
done.
Loaded symbols for /boot/kernel/snd_uaudio.ko
Reading symbols from /boot/kernel/uhid.ko...Reading symbols from /usr/lib/debug//boot/kernel/uhid.ko.debug...done.
done.
Loaded symbols for /boot/kernel/uhid.ko
#0 doadump (textdump=1) at pcpu.h:231
231 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0 doadump (textdump=1) at pcpu.h:231
#1 0xffffffff80bd44e0 in kern_reboot (howto=260)
at /usr/local/src/sys/kern/kern_shutdown.c:446
#2 0xffffffff80bd4973 in vpanic (fmt=<value optimized out>,
ap=<value optimized out>) at /usr/local/src/sys/kern/kern_shutdown.c:863
#3 0xffffffff80bd4763 in panic (fmt=<value optimized out>)
at /usr/local/src/sys/kern/kern_shutdown.c:790
#4 0xffffffff810cb3ac in trap_fatal (frame=0xfffffe004de13500, eva=168)
at /usr/local/src/sys/amd64/amd64/trap.c:892
#5 0xffffffff810cb409 in trap_pfault (frame=0xfffffe004de13500, usermode=0)
at pcpu.h:231
#6 0xffffffff810caa18 in trap (frame=0xfffffe004de13500)
at /usr/local/src/sys/amd64/amd64/trap.c:427
#7 0xffffffff810a9a1c in calltrap ()
at /usr/local/src/sys/amd64/amd64/exception.S:230
#8 0xffffffff84fe67db in ?? ()
#9 0xfffff8000bba7200 in ?? ()
#10 0xffff00000bca9ce8 in ?? ()
#11 0xfffffe00000023a0 in ?? ()
#12 0xfffff8000bba7260 in ?? ()
#13 0xfffffe004db91d50 in ?? ()
#14 0xfffffe004db90000 in ?? ()
#15 0xfffff8000bca9b40 in ?? ()
#16 0xfffffe004db91a98 in ?? ()
#17 0xfffffe004de13660 in ?? ()
#18 0xffffffff84ed764f in intel_display_capture_error_state (dev=0x28)
at /usr/local/src/sys/dev/drm2/i915/intel_display.c:9501
Previous frame identical to this frame (corrupt stack?)
Current language: auto; currently minimal
(kgdb)
This happens with both drm-next and drm-stable. As usual, built against the same -CURRENT revision. I've also set WITHOUT_BINUTILS_BOOTSTRAP so the kernel does not use bfd at all to no avail.
Also interesting to see improper drm2 interaction here. My hardware is Broadwell which drm2 does not support.
Since around the early r335000s in -CURRENT, I've been getting this panic when our modules are loaded on startup from
/etc/rc.conf
'skld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko"
. This occasionally also happens when loaded manually from the shell.This happens with both drm-next and drm-stable. As usual, built against the same -CURRENT revision. I've also set
WITHOUT_BINUTILS_BOOTSTRAP
so the kernel does not use bfd at all to no avail.Also interesting to see improper drm2 interaction here. My hardware is Broadwell which drm2 does not support.