While running some fs-related workloads in a Gentoo guest bhyve crashed with the
following assertion:

Assertion failed: (n >= 2 && n <= BLOCKIF_IOV_MAX + 2), function pci_vtblk_proc,
file /usr/src/usr.sbin/bhyve/pci_virtio_block.c

(gdb) bt
#0  thr_kill () at thr_kill.S:3
#1  0x0000000800f57ddb in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x0000000800f57d49 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x0000000800fc3391 in __assert (func=0x434719 "pci_vtblk_proc",
file=0xfffff80038ed84f0 <error: Cannot access memory at address
0xfffff80038ed84f0>, line=47586, failedexpr=<optimized out>) at
/usr/src/lib/libc/gen/assert.c:51
#4  0x000000000042237b in pci_vtblk_proc (sc=0x80193ae40, vq=0x80193ae80) at
/usr/src/usr.sbin/bhyve/pci_virtio_block.c:217
#5  0x00000000004221b7 in pci_vtblk_notify (vsc=0x80193ae40, vq=0x80193ae80) at
/usr/src/usr.sbin/bhyve/pci_virtio_block.c:286
#6  0x000000000042b560 in vi_pci_write (ctx=0x8018181c0, vcpu=0, pi=0x801838a00,
baridx=0, offset=16, size=2, value=0) at /usr/src/usr.sbin/bhyve/virtio.c:747
#7  0x000000000041c5e9 in pci_emul_io_handler (ctx=0x8018181c0, vcpu=0, in=0,
port=8400, bytes=2, eax=0x7fffd8dc4e4c, arg=0x801838a00) at
/usr/src/usr.sbin/bhyve/pci_emul.c:370
#8  0x000000000040e663 in emulate_inout (ctx=0x8018181c0, vcpu=0,
vmexit=0x63d930 <vmexit>, strict=0) at /usr/src/usr.sbin/bhyve/inout.c:224
#9  0x00000000004098b7 in vmexit_inout (ctx=0x8018181c0, vme=0x63d930 <vmexit>,
pvcpu=0x7fffd8dc4f44) at /usr/src/usr.sbin/bhyve/bhyverun.c:330
#10 0x000000000040974d in vm_loop (ctx=0x8018181c0, vcpu=0, startrip=16777216)
at /usr/src/usr.sbin/bhyve/bhyverun.c:632
#11 0x0000000000408601 in fbsdrun_start_thread (param=0x8407d0 <mt_vmm_info>) at
/usr/src/usr.sbin/bhyve/bhyverun.c:243
#12 0x0000000800c79884 in thread_start (curthread=0x8019ffc00) at
/usr/src/lib/libthr/thread/thr_create.c:288

Please let me know if you would like more details.

-- 
Andriy Gapon
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to