From owner-freebsd-current@freebsd.org Wed Aug 26 21:12:46 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B8FF9C25EC for ; Wed, 26 Aug 2015 21:12:46 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) by mx1.freebsd.org (Postfix) with ESMTP id D3E28C3A for ; Wed, 26 Aug 2015 21:12:45 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=eh8ZPZpLC7tdUODqVRQZXHeoCgt3vk9oaBGFR0qYszg=; b=vYo8Z++ZUhKjMAdo1fh/21FJN/ fXTAz2/44bWfb829GZcuf3zQzn2ajfcPCF9cMqf63bZENaOKpBvbQRMHcJ9ejSQEA1mD8Mm3YKU5N 5AXww8FhqFgQGXqKL5UmlZoaw01niLeOIPoaZdD4kSqbUbE1MPRo+oSkyJFEYIBMWOJU=; Received: from oldtbh.lerctr.org ([2001:470:1f0f:3ad:230:48ff:fe2e:99ba]:25983) by thebighonker.lerctr.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ZUhzw-000JYC-79 for freebsd-current@freebsd.org; Wed, 26 Aug 2015 16:12:44 -0500 Date: Wed, 26 Aug 2015 16:12:43 -0500 From: Larry Rosenman To: freebsd-current@freebsd.org Subject: HWPMC panic Message-ID: <20150826211242.GA901@oldtbh.lerctr.org> Mail-Followup-To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -1.0 (-) X-LERCTR-Spam-Score: -1.0 (-) X-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 X-LERCTR-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 21:12:46 -0000 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@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=, ap=) at /usr/src/sys/kern/kern_shutdown.c:626 #3 0xffffffff80b350c2 in kassert_panic (fmt=) 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=, syscall_args=) 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@lerctr.org US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961