[Bug 274389] bhyve in 15-CURRENT unable to boot OpenBSD anymore

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 15 Oct 2023 22:31:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274389

Oleg Ginzburg <olevole@olevole.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olevole@olevole.ru

--- Comment #2 from Oleg Ginzburg <olevole@olevole.ru> ---
NetBSD on FreeBSD 14 probably has the same problems (assert in
modify_bar_registration):

screenshot: https://snipboard.io/IAg1V3.jpg

bt:
[New LWP 109671 of process 45161]
                                 [New LWP 109672 of process 45161]
                                                                  Assertion
failed: (error == 0), function modify_bar_registration, file
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/pci_emul.c, line 637.

                                                                               
                                                                               
                                         Thread 20 "vcpu 0" received signal
SIGABRT, Aborted.
                                                                               
                                                                               
                                                                               
             Sent by thr_kill() from pid 45161 and user 0.
                 [Switching to LWP 109670 of process 45161]
thr_kill () at thr_kill.S:4
4       RSYSCALL(thr_kill)
(gdb) un
Ambiguous command "un": undisplay, unset, until.
(gdb) bt
#0  thr_kill () at thr_kill.S:4
#1  0x000000080174b324 in __raise (s=s@entry=6) at
/usr/jails/src/src_14.0/src/lib/libc/gen/raise.c:50
#2  0x00000008017fc219 in abort () at
/usr/jails/src/src_14.0/src/lib/libc/stdlib/abort.c:65
#3  0x000000080172e6b1 in __assert (func=<optimized out>, file=<optimized out>,
line=line@entry=637, failedexpr=<optimized out>) at
/usr/jails/src/src_14.0/src/lib/libc/gen/assert.c:49
#4  0x000000000106f399 in modify_bar_registration (pi=0x801e36f00, idx=1,
registration=registration@entry=1) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/pci_emul.c:637
#5  0x000000000106ef5b in register_bar (pi=0x1ac66, idx=6) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/pci_emul.c:654
#6  0x000000000106ed69 in pci_cfgrw (in=<optimized out>, bus=<optimized out>,
slot=<optimized out>, func=<optimized out>, coff=<optimized out>,
bytes=<optimized out>, valp=0x7fffddbead0c) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/pci_emul.c:2294
#7  0x000000000106f7a4 in pci_emul_cfgdata (ctx=<optimized out>, in=109670,
port=<optimized out>, bytes=0, eax=<optimized out>, arg=<optimized out>) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/pci_emul.c:2369
#8  0x000000000105c9e9 in emulate_inout (ctx=0x801e19680, vcpu=0x801e1b080,
vmexit=vmexit@entry=0x7fffddbeaec8) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/inout.c:223
#9  0x0000000001050810 in vmexit_inout (ctx=0x1ac66, vcpu=0x6, vmrun=<optimized
out>) at /usr/jails/src/src_14.0/src/usr.sbin/bhyve/bhyverun.c:588
#10 0x0000000001050744 in vm_loop (ctx=0x801e19680, vcpu=0x801e1b080) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/bhyverun.c:972
#11 0x000000000105063f in fbsdrun_start_thread (param=0x801e1a040) at
/usr/jails/src/src_14.0/src/usr.sbin/bhyve/bhyverun.c:524
#12 0x000000080167db35 in thread_start (curthread=0x801ec0500) at
/usr/jails/src/src_14.0/src/lib/libthr/thread/thr_create.c:290
#13 0x0000000000000000 in ?? ()

-- 
You are receiving this mail because:
You are the assignee for the bug.