From owner-freebsd-virtualization@freebsd.org Tue May 1 17:25:48 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 9B546FB136D for ; Tue, 1 May 2018 17:25:48 +0000 (UTC) (envelope-from fabian.freyer@physik.tu-berlin.de) Received: from mail.physik.tu-berlin.de (mail.physik-pool.tu-berlin.de [130.149.50.25]) (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 2C8A579B5D for ; Tue, 1 May 2018 17:25:47 +0000 (UTC) (envelope-from fabian.freyer@physik.tu-berlin.de) Received: from [192.168.119.1] (ip5f5bd505.dynamic.kabel-deutschland.de [95.91.213.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.physik.tu-berlin.de (Postfix) with ESMTPSA id 4FF7961F9C; Tue, 1 May 2018 17:25:43 +0000 (UTC) From: "Fabian Freyer" To: "Mark Raynsford" Cc: freebsd-virtualization@freebsd.org Subject: Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest Date: Tue, 01 May 2018 19:25:41 +0200 X-Mailer: MailMate (1.11.2r5479) Message-ID: <8FBF4C21-9A17-46C3-9427-DBA5AEE7DFE5@physik.tu-berlin.de> In-Reply-To: <20180501174142.31d7fc3a@almond.int.arc7.info> References: <20180430230524.6c957e6c@almond.int.arc7.info> <20180501174142.31d7fc3a@almond.int.arc7.info> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_MailMate_EBBE5E28-113D-4353-B50F-6F999B954F1E_="; micalg=pgp-sha512; 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: Tue, 01 May 2018 17:25:48 -0000 This is an OpenPGP/MIME signed message (RFC 3156 and 4880). --=_MailMate_EBBE5E28-113D-4353-B50F-6F999B954F1E_= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 1 May 2018, at 18:41, Mark Raynsford wrote: > I've recompiled the port with > WITH_DEBUG=3Dyes (which, unfortunately, took most of the day due to > having to compile the gcc-6 dependency). Unfortunately, this didn't > yield a usable backtrace. I'm guessing that the Dwarf debugging > information isn't compatible with the gdb version that's in base? gdb > says: Yes, you need to use gdb from ports for this. Here=E2=80=99s the backtrac= e: #0 0x000000000040d506 in grub_memmove (dest=3D0x80388f000, src=3D0x0, n=3D= 2047) at kern/misc.c:61 #1 0x000000000049e9eb in grub_memcpy (dest=3D0x80388f000, src=3D0x0, n=3D= 2048) at ../include/grub/misc.h:75 #2 0x000000000049f6b2 in grub_linux_boot () at loader/i386/linux.c:577 #3 0x00000000004271af in grub_loader_boot () at commands/boot.c:162 #4 0x000000000042720e in grub_cmd_boot (cmd=3D0x80322d140, argc=3D0, arg= v=3D0x80321c138) at commands/boot.c:179 #5 0x00000000004b3a87 in grub_script_execute_cmdline (cmd=3D0x8032322a8)= at script/execute.c:927 #6 0x00000000004b353c in grub_script_execute_cmd (cmd=3D0x8032322a8) at = script/execute.c:753 #7 0x00000000004b3b85 in grub_script_execute_cmdlist (list=3D0x803221cc8= ) at script/execute.c:972 #8 0x00000000004b353c in grub_script_execute_cmd (cmd=3D0x803221cc8) at = script/execute.c:753 #9 0x00000000004b3ea1 in grub_script_execute (script=3D0x803232180) at s= cript/execute.c:1084 #10 0x00000000004b1084 in grub_normal_parse_line (line=3D0x803220178 "boo= t", getline=3D0x4a139a ) at script/main.c:35 #11 0x00000000004a1448 in grub_cmdline_run (nested=3D0) at normal/main.c:= 477 #12 0x00000000004a10ad in grub_enter_normal_mode (config=3D0x803266100 "(= host)/storage/vm/rosemary/grub.cfg") at normal/main.c:320 #13 0x00000000004a1154 in grub_cmd_normal (cmd=3D0x80322ee00, argc=3D0, a= rgv=3D0x0) at normal/main.c:356 #14 0x000000000040cd10 in grub_command_execute (name=3D0x53120c "normal",= argc=3D0, argv=3D0x0) at ../include/grub/command.h:120 #15 0x000000000040d326 in grub_load_normal_mode () at kern/main.c:216 #16 0x000000000040d391 in grub_main () at kern/main.c:250 #17 0x0000000000406165 in main (argc=3D12, argv=3D0x7fffffffeb48) at kern= /emu/main.c:365 I=E2=80=99m pretty sure the src parameter should not be NULL for grub_mem= cpy. Fabian --=_MailMate_EBBE5E28-113D-4353-B50F-6F999B954F1E_= Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQJWBAEBCgBAFiEEX6JoxdmEemcFacQZmealkcs85+YFAlrooxUiHGZhYmlhbi5m cmV5ZXJAcGh5c2lrLnR1LWJlcmxpbi5kZQAKCRCZ5qWRyzzn5n3RD/0VBPTKX4bx kGtF/905pE1N89DfJVQu9cB3F0aN6bwFoUKPj0tLRqNQltJpFRord4hIBP2TnJFo ahNXmiT3wDuyMIE6CUIXEhIPqFY6RaD3Hv6opOu1sIhGAX0x2y/I45gDkVMVKWlK SehQHQMGX4JTTpk3J6L1t6QvA+70WAT9cbQh8mA4QQIR9mPNhUaj4PzYkWQxSJLq gdzB63jjdlZpOJGfDoh3UY4pb2bDLxLvsoW4EngLUVOcA5FulSd7impG1Bu7MGFM heluJoJzPvmPQIUpg7CaNobXFultlBC7Gpgibbtws8fg1Ai2Gqv8vwkPRHpV7G/h npsn0MCKkYC2vaeQSHlMc+A7CMBBqLlEEFTqu8DW83xH99e8p63llppcQtgOk/sv TVWtS4LIwzJ8cSGCrxIEXm71OXDQwMdSYXvAdl+hMoo7fnDxaqb4WkaTLOnFrWE+ jldGWXHYv5RYxQIdV4+33AfxfJrnz3gC0u3dfbQHrwAUc+i7IcIsnAffqZEuw+Hw zKMHZlUn07VexOTdbkx39JinxTzGpBX4EjMmxIBp0//OTFE2jkJ5YbmpNdcoI2de QT8RJbpyj7uCxLRziTzN7Lhh5DscPtBpWm/dDHsnA8UsVKvCYmRML+wCEfuEkxyE o+SBY0qvYQWdRWy4D1tHIjmnnIrsRIDmHw== =wWBc -----END PGP SIGNATURE----- --=_MailMate_EBBE5E28-113D-4353-B50F-6F999B954F1E_=--