Re: Illegal instruction (core dumped)

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Mon, 30 Jun 2025 02:05:45 UTC
On Mon, 30 Jun 2025, Konstantin Belousov wrote:

> It might be for sure, did it persist between reboots?

I just destroyed the VM and rebooted the old disk image and more just
works now.

> You might try to read the instruction as data using p or x gdb command.
> I believe disassemble reads the text from the file, but if there is a
> corruption, the in-memory copy would be the indicator.

Well typing in display/i $pc makes it x/i $pc according to the output.

Also gdb works inside the VM:

> (gdb) display/i $pc
> 1: x/i $pc
> => 0x3fabd04ebeed <tgetflag_sp+29>:     cmove  %rbx,%rcx

(gdb) p/x $pc
$1 = 0x3fabd04ebeed


> (gdb) display/i $pc
> 1: x/i $pc
> => 0x828064eed <tgetflag_sp+29>:        cmove  %rbx,%rcx

(gdb) p/x $pc
$1 = 0x828064eed


So bhyve glitch?


-- 
Bjoern A. Zeeb                                                     r15:7