Skip to content

qemu crashes with bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed #21

Closed
@nasastry

Description

@nasastry

cde:info Mirrored with LTC bug https://bugzilla.linux.ibm.com/show_bug.cgi?id=160015 </cde:info>

  1. Get tests/qemu-iotests from the source tree of qemu
    configure, compile then

  2. Point to the system supplied qemu binary
    export QEMU_PROG=/usr/bin/qemu-system-ppc64

  3. Run test scenario from 195
    # cd qemu/tests/qemu-iotests
    # ./check -qcow2 195

195 0s ... - output mismatch (see 195.out.bad)
--- /home/nasastry/qemu/tests/qemu-iotests/195.out      2017-10-09 14:09:04.272726282 +0530
+++ /home/nasastry/qemu/tests/qemu-iotests/195.out.bad  2017-10-12 14:01:45.791109828 +0530
@@ -13,31 +13,16 @@
     "return": {
     }
 }
-{
-    "return": {
-    }
-}
-{
-    "return": {
-    }
-}
-{
-    "timestamp": {
-        "seconds":  TIMESTAMP,
-        "microseconds":  TIMESTAMP
-    },
-    "event": "SHUTDOWN",
-    "data": {
-        "guest": false
-    }
-}
+QEMU_PROG: block/io.c:1359: bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.
+./common.rc: Aborted                 ( if [ -n "${QEMU_NEED_PID}" ]; then
+    echo $BASHPID > "${QEMU_TEST_DIR}/qemu-${_QEMU_HANDLE}.pid";
+fi; exec "$QEMU_PROG" $QEMU_OPTIONS "$@" )

 image: TEST_DIR/t.IMGFMT.mid
 file format: IMGFMT
 virtual size: 64M (67108864 bytes)
 cluster_size: 65536
-backing file: /dev/null
-backing file format: IMGFMT
+backing file: TEST_DIR/t.IMGFMT.base

 Change backing file of top (opened writable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions