From owner-freebsd-virtualization@freebsd.org Wed May 2 08:51:22 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF6A6FC669A for ; Wed, 2 May 2018 08:51:22 +0000 (UTC) (envelope-from list+org.freebsd.virtualization@io7m.com) Received: from mail.io7m.com (mail.io7m.com [45.77.76.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.io7m.com", Issuer "arc7 CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EB897B24D; Wed, 2 May 2018 08:51:22 +0000 (UTC) (envelope-from list+org.freebsd.virtualization@io7m.com) Received: from almond.int.arc7.info (unknown [IPv6:2a02:390:7502:2:0:2:4:0]) by mail.io7m.com (Postfix) with ESMTPSA id 88CDA331A; Wed, 2 May 2018 08:51:15 +0000 (UTC) Date: Wed, 2 May 2018 09:51:03 +0100 From: Mark Raynsford To: Peter Grehan Cc: Fabian Freyer , freebsd-virtualization@freebsd.org Subject: Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest Message-ID: <20180502095103.3bec8a24@almond.int.arc7.info> In-Reply-To: References: <20180430230524.6c957e6c@almond.int.arc7.info> <20180501174142.31d7fc3a@almond.int.arc7.info> Organization: io7m.com OpenPGP: id=B84E17747616C6174C68D5E55C1A7B712812CC05; url=http://io7m.com/pgp/B84E_1774_7616_C617_4C68_D5E5_5C1A_7B71_2812_CC05.key MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/PV0CpmXYvA45+I4eKjscRlS"; protocol="application/pgp-signature" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Wed, 02 May 2018 08:51:23 -0000 --Sig_/PV0CpmXYvA45+I4eKjscRlS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On 2018-05-01T18:06:38 -0700 Peter Grehan wrote: > > * rosemary_disk0.lzma (the LZMA compressed zvol) =20 >=20 > I was able to boot this image on a 12-current Ryzen system. Debian 9.4= =20 > also installed fine with the netinstall ISO and could boot. Bizarrely, I am also able to boot it without issue now. I worked through this with someone in the #bhyve channel on Freenode. Essentially: I couldn't boot the image with the stripped grub-bhyve binary, this would crash reliably. Restarting the hardware didn't make any difference, and destroying the vm after each attempt didn't make any difference either. I couldn't boot the image with the debug grub-bhyve binary. The same applied to that as above. If I ran the debug binary in gdb 8, the program ran to completion without crashing. After running it a few times without crashing in gdb, both the stripped and debug grub-bhyve binaries would run to completion *outside of the debugger* without crashing! Both the stripped and debug grub-bhyve binaries reliably work now. I can boot the VM, reboot it, whatever. I've restarted the hardware many times and cannot reproduce the original crash. I've never seen anything like this and have no theories as to why it didn't work at all, and now works reliably despite nothing apparently having changed anywhere. --=20 Mark Raynsford | http://www.io7m.com --Sig_/PV0CpmXYvA45+I4eKjscRlS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWul79wAKCRBcGntxKBLM BdhgAP9ekkk+Pz5j6Tm8eMnpCm0FKdLlQFMvkmuz+CixiQPPmAD+KHkGiWlGYo7N 3bQhn0VTT9JW93UXpBcwOZ7vTeaemAo= =tU5Z -----END PGP SIGNATURE----- --Sig_/PV0CpmXYvA45+I4eKjscRlS--