permissions: 0.839 graphic: 0.821 vnc: 0.818 KVM: 0.816 performance: 0.813 device: 0.806 semantic: 0.805 other: 0.797 debug: 0.786 socket: 0.781 PID: 0.774 boot: 0.774 files: 0.747 network: 0.732 QEMU Crashes During Snapshot: bdrv_co_write_req_prepare Assertion child->perm & BLK_PERM_WRITE Failed Description of problem: After taking a external snapshot (w/ memory state) with libvirt, the QEMU process crashed with an assertion ``` qemu-system-x86_64: ../block/io.c:2052: bdrv_co_write_req_prepare: Assertion `child->perm & BLK_PERM_WRITE` failed. ``` Steps to reproduce: 1. Start the qemu process 2. Take an external (w/ memory) snapshot by libvirt Python API ```python domain.snapshotCreateXML(, libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_LIVE) ``` 3. The qemu process crashed by hitting the assertion Additional information: Libvirt domain XML ```xml 1a3dabc5-c33b-4308-acc5-2245f3b64163 1a3dabc5-c33b-4308-acc5-2245f3b64163 16777216 16777216 5 qemu qemu hvm destroy restart restart /QVS/usr/bin/qemu-system-x86_64 1a3dabc5c33b4308ac01