From owner-freebsd-virtualization@freebsd.org Sat Mar 14 04:36:17 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A704E2769C9 for ; Sat, 14 Mar 2020 04:36:17 +0000 (UTC) (envelope-from rebecca@bsdio.com) Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48fVBS17Rkz3LfV for ; Sat, 14 Mar 2020 04:36:16 +0000 (UTC) (envelope-from rebecca@bsdio.com) Received: from in02.mta.xmission.com ([166.70.13.52]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jCyWz-00061Y-Ht for freebsd-virtualization@freebsd.org; Fri, 13 Mar 2020 22:36:13 -0600 Received: from mta5.zcs.xmission.com ([166.70.13.69]) by in02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jCyWz-0004Pb-5J for freebsd-virtualization@freebsd.org; Fri, 13 Mar 2020 22:36:13 -0600 Received: from localhost (localhost [127.0.0.1]) by mta5.zcs.xmission.com (Postfix) with ESMTP id F3C1A128099B for ; Fri, 13 Mar 2020 22:36:12 -0600 (MDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mta5.zcs.xmission.com Received: from mta5.zcs.xmission.com ([127.0.0.1]) by localhost (mta5.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5Ac8dzYPpPkT for ; Fri, 13 Mar 2020 22:36:12 -0600 (MDT) Received: from photon.int.bluestop.org (muon.bluestop.org [65.103.231.193]) by mta5.zcs.xmission.com (Postfix) with ESMTPSA id B833D1280875 for ; Fri, 13 Mar 2020 22:36:12 -0600 (MDT) To: freebsd-virtualization@freebsd.org From: Rebecca Cran Message-ID: Date: Fri, 13 Mar 2020 22:36:12 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-XM-SPF: eid=1jCyWz-0004Pb-5J; ; ; mid=; ; ; hst=in02.mta.xmission.com; ; ; ip=166.70.13.69; ; ; frm=rebecca@bsdio.com; ; ; spf=pass X-SA-Exim-Connect-IP: 166.70.13.69 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,XM_B_Unicode autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5229] * 0.0 XM_B_Unicode BODY: Testing for specific types of unicode * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1] X-Spam-DCC: XMission; sa07 1397; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;freebsd-virtualization@freebsd.org X-Spam-Relay-Country: X-Spam-Timing: total 202 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 3.3 (1.6%), b_tie_ro: 2.2 (1.1%), parse: 1.24 (0.6%), extract_message_metadata: 4.7 (2.3%), get_uri_detail_list: 0.86 (0.4%), tests_pri_-1000: 2.9 (1.4%), tests_pri_-950: 1.48 (0.7%), tests_pri_-900: 1.19 (0.6%), tests_pri_-90: 17 (8.5%), check_bayes: 16 (7.7%), b_tokenize: 6 (3.0%), b_tok_get_all: 4.4 (2.2%), b_comp_prob: 1.67 (0.8%), b_tok_touch_all: 1.63 (0.8%), b_finish: 0.63 (0.3%), tests_pri_0: 157 (77.8%), check_dkim_signature: 0.52 (0.3%), check_dkim_adsp: 25 (12.4%), poll_dns_idle: 18 (9.1%), tests_pri_10: 3.0 (1.5%), tests_pri_500: 7 (3.6%), rewrite_mail: 0.00 (0.0%) Subject: Bhyve gdb server for system debugging X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) X-Rspamd-Queue-Id: 48fVBS17Rkz3LfV X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rebecca@bsdio.com designates 166.70.13.233 as permitted sender) smtp.mailfrom=rebecca@bsdio.com X-Spamd-Result: default: False [2.05 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.70.13.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.92)[0.916,0]; DMARC_NA(0.00)[bsdio.com]; IP_SCORE(0.53)[ip: (-0.48), ipnet: 166.70.0.0/16(1.77), asn: 6315(1.42), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[233.13.70.166.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6315, ipnet:166.70.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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, 14 Mar 2020 04:36:17 -0000 I know Bhyve supports kgdb debugging of a FreeBSD guest, but I've been looking for a system-level debugging capability to let me debug the system before FreeBSD boots. However, I'm having problems with the -G option to bhyve (e.g. -G 1234): gdb shows "(bad)" in the assembly listing, reports not being able to access memory in some stack frames, and ended up crashing after a while. e.g.: set architecture i386:x86-64:intel target remote localhost:1234 >0xfffcd3e1  (bad)                                                                                                                                            │ │   0xfffcd3e2  (bad)                                                                                                                                            │ │   0xfffcd3e3  (bad)                                                                                                                                            │ │   0xfffcd3e4  (bad)                                                                                                                                            │ │   0xfffcd3e5  (bad)  Should this work? -- Rebecca Cran (null)