HWPMC panic

From: Larry Rosenman <ler_at_lerctr.org>
Date: Wed, 26 Aug 2015 16:12:43 -0500
Was playing with pmcstats -S instructions -T, and got the following when
I tried to ctrl/c out.


oldtbh.lerctr.org dumped core - see /var/crash/vmcore.3

Wed Aug 26 16:05:16 CDT 2015

FreeBSD oldtbh.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #18 r287033: Sun Aug 23 18:08:24 CDT 2015     root_at_oldtbh.lerctr.org:/usr/obj/usr/src/sys/VT-LER  amd64

panic: [p4,700] class mismatch pd 260 != id class 4

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"...

Unread portion of the kernel message buffer:
panic: [p4,700] class mismatch pd 260 != id class 4
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0238744770
vpanic() at vpanic+0x189/frame 0xfffffe02387447f0
kassert_panic() at kassert_panic+0x132/frame 0xfffffe0238744860
p4_read_pmc() at p4_read_pmc+0x185/frame 0xfffffe02387448b0
pmc_stop() at pmc_stop+0x132/frame 0xfffffe02387448f0
pmc_syscall_handler() at pmc_syscall_handler+0x1752/frame 0xfffffe0238744ae0
amd64_syscall() at amd64_syscall+0x25d/frame 0xfffffe0238744bf0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0238744bf0
--- syscall (0, FreeBSD ELF64, nosys), rip = 0x801407ffa, rsp = 0x7fffffffe588, rbp = 0x7fffffffe5a0 ---
Uptime: 2d8h36m19s
Dumping 3475 out of 8158 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/if_lagg.ko.symbols...done.
Loaded symbols for /boot/kernel/if_lagg.ko.symbols
Reading symbols from /boot/kernel/hwpmc.ko.symbols...done.
Loaded symbols for /boot/kernel/hwpmc.ko.symbols
#0  doadump (textdump=1) at pcpu.h:221
221	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) #0  doadump (textdump=1) at pcpu.h:221
#1  0xffffffff80b34ca5 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:329
#2  0xffffffff80b35298 in vpanic (fmt=<value optimized out>, 
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:626
#3  0xffffffff80b350c2 in kassert_panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:516
#4  0xffffffff8242ee25 in p4_read_pmc (cpu=1, ri=12, v=0xfffff8012b206aa0)
    at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_piv.c:699
#5  0xffffffff82425102 in pmc_stop (pm=0xfffff8012b206a80)
    at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:2741
#6  0xffffffff82423a12 in pmc_syscall_handler (td=<value optimized out>, 
    syscall_args=<value optimized out>)
    at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:3923
#7  0xffffffff80f7c38d in amd64_syscall (td=0xfffff801060759a0, traced=0)
    at subr_syscall.c:133
#8  0xffffffff80f5b26b in Xfast_syscall ()
    at /usr/src/sys/amd64/amd64/exception.S:395
#9  0x0000000801407ffa in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb) 


vmcore IS available, and I *CAN* give ssh access.

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
Received on Wed Aug 26 2015 - 19:12:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC