From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 15 16:23:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F187DFB5 for ; Sat, 15 Nov 2014 16:23:40 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C4B7BA85 for ; Sat, 15 Nov 2014 16:23:40 +0000 (UTC) Received: from jre-mbp.elischer.org (ppp121-45-239-104.lns20.per1.internode.on.net [121.45.239.104]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id sAFGNT7q075045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 15 Nov 2014 08:23:32 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <54677DFC.70708@freebsd.org> Date: Sun, 16 Nov 2014 00:23:24 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: John-Mark Gurney , freebsd-virtualization@freebsd.org Subject: Re: bhyve remote kgdb does not support kernel modules... References: <20141115093713.GY24601@funkthat.com> <20141115094340.GZ24601@funkthat.com> In-Reply-To: <20141115094340.GZ24601@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2014 16:23:41 -0000 On 11/15/14, 5:43 PM, John-Mark Gurney wrote: > John-Mark Gurney wrote this message on Sat, Nov 15, 2014 at 01:37 -0800: >> So, I got remote kgdb working w/ bhyve, but kernel modules aren't >> loaded... >> >> I'm getting: >> (kgdb) bt >> #0 kdb_enter (why=0xffffffff8102ee88 "panic", msg=) >> at ../../../kern/subr_kdb.c:444 >> #1 0xffffffff8094aa79 in vpanic (fmt=, >> ap=) at ../../../kern/kern_shutdown.c:739 >> #2 0xffffffff8094a8c9 in kassert_panic (fmt=) >> at ../../../kern/kern_shutdown.c:634 >> #3 0xffffffff8093583c in __mtx_lock_flags (c=0xfffff80002919720, opts=0, >> file=0xffffffff81c3f0fa "/usr/home/jmg/freebsd.p4/opencrypto/sys/modules/aesni/../../crypto/aesni/aesni.c", line=442) at ../../../kern/kern_mutex.c:217 >> #4 0xffffffff81c3e3a7 in ?? () >> #5 0xfffff80002a474a0 in ?? () >> #6 0xfffff80002919720 in ?? () >> >> Where those should be in the aesni.ko module... If I run kgdb on a >> local machine, it properly finds the kernel modules... Any hits on >> how to fix this? works for me.. the modules I'm debugging are not compiled in. you have to have the modules in the standard place ONE THE GDB HOST. I make a chroot with an image of the machine being debugged, PLUS the sources. and then run kgdb from inside that chroot. > Also, any plans to support the Z2 write-watchpoint packet? > > (kgdb) watch *(char *)0xfffff80002919708 > Hardware watchpoint 1: *(char *) 18446735277659625224 > (kgdb) c > Continuing. > Can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet >