Package: qemu-system-x86 Version: 1:3.1+dfsg-2 Invoking migrate twice (accidentially) will cause QEMU to abort and current virtual machine state is lost.
Reproduce: Start qemu with monitor enabled, e.g. "-monitor stdio". Stop the machine and invoke migrate twice: (qemu) stop (qemu) migrate "exec:cat > /dev/null" (qemu) migrate "exec:cat > /dev/null" qemu-system-i386: /build/qemu-CGHs6D/qemu-3.1+dfsg/block.c:4647: bdrv_inactivate_recurse: Assertion `!(bs->open_flags & BDRV_O_INACTIVE)' failed. Aborted (core dumped) Expected behavior: Sucessfully write a second migration dump or refuse to do so.