Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 May 2018 19:25:41 +0200
From:      "Fabian Freyer" <fabian.freyer@physik.tu-berlin.de>
To:        "Mark Raynsford" <list+org.freebsd.virtualization@io7m.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest
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> <AE2FBCC1-6E22-427B-96EB-5CE9CD898051@physik.tu-berlin.de> <20180501174142.31d7fc3a@almond.int.arc7.info>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <grub_normal_read_line>) 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_=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8FBF4C21-9A17-46C3-9427-DBA5AEE7DFE5>