|Priority:||4 - Normal|
|Created by:||Hans Rosenfeld [X]|
|Reported by:||Hans Rosenfeld [X]|
|Assigned to:||Hans Rosenfeld [X]|
Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2019-02-13T23:33:29.834Z)
2019-02-14 Liz Lemon (Release Date: 2019-02-14)
When I attach mdb to a VM and let it continue to run (::cont), then halt the VM from the inside so that it is moved to a deferred-destroy state, mdb will abort due to an assertion being tripped in libvmm as soon as it's returning from ::cont (by Ctrl-C). This used to work, but a change I made during code review apparently broke it and I failed to re-test this particular use case.
Libvmm needs to be prepared to handle this failure (indicated by ENXIO), and mdb-bhyve needs to handle it as well.
Testing: Same as for OS-7424. mdb did not trip over that assertion in libvmm, instead it stopped and then exited normally.
illumos-joyent commit 2d1a8a4a97fe44c06e3fedddbb32f89fc2755a3e (branch master, by Hans Rosenfeld)
OS-7508 mdb: assertion tripped in libvmm when bhyve VM halts while mdb is attached
OS-7519 mdb: bhyve target can attach before the first vCPU is configured