Segmentation fault in grub-bhyve when trying to boot a Linux guest
Fabian Freyer
fabian.freyer at physik.tu-berlin.de
Tue May 1 17:25:48 UTC 2018
On 1 May 2018, at 18:41, Mark Raynsford wrote:
> I've recompiled the port with
> WITH_DEBUG=yes (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’s the backtrace:
#0 0x000000000040d506 in grub_memmove (dest=0x80388f000, src=0x0, n=2047) at kern/misc.c:61
#1 0x000000000049e9eb in grub_memcpy (dest=0x80388f000, src=0x0, n=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=0x80322d140, argc=0, argv=0x80321c138) at commands/boot.c:179
#5 0x00000000004b3a87 in grub_script_execute_cmdline (cmd=0x8032322a8) at script/execute.c:927
#6 0x00000000004b353c in grub_script_execute_cmd (cmd=0x8032322a8) at script/execute.c:753
#7 0x00000000004b3b85 in grub_script_execute_cmdlist (list=0x803221cc8) at script/execute.c:972
#8 0x00000000004b353c in grub_script_execute_cmd (cmd=0x803221cc8) at script/execute.c:753
#9 0x00000000004b3ea1 in grub_script_execute (script=0x803232180) at script/execute.c:1084
#10 0x00000000004b1084 in grub_normal_parse_line (line=0x803220178 "boot", getline=0x4a139a <grub_normal_read_line>) at script/main.c:35
#11 0x00000000004a1448 in grub_cmdline_run (nested=0) at normal/main.c:477
#12 0x00000000004a10ad in grub_enter_normal_mode (config=0x803266100 "(host)/storage/vm/rosemary/grub.cfg") at normal/main.c:320
#13 0x00000000004a1154 in grub_cmd_normal (cmd=0x80322ee00, argc=0, argv=0x0) at normal/main.c:356
#14 0x000000000040cd10 in grub_command_execute (name=0x53120c "normal", argc=0, argv=0x0) 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=12, argv=0x7fffffffeb48) at kern/emu/main.c:365
I’m pretty sure the src parameter should not be NULL for grub_memcpy.
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20180501/2b3dc643/attachment.sig>
More information about the freebsd-virtualization
mailing list