Full gdb backtrace of a deadlocked QEMU process, captured during snapshot-create-as on qemu-system-x86 1:8.2.2+ds-0ubuntu1.18 with qemu-system-x86-dbgsym installed.
Thread 1 (main loop, LWP 322614) is blocked in aio_context_acquire() on the IOThread's AioContext (ctx=0x5bab44e2e280), called from bdrv_drain_all_end() inside bdrv_graph_wrlock(), during blockdev-add of the snapshot overlay: aio_context_acquire (ctx=0x5bab44e2e280) at util/async.c:728 bdrv_drain_all_end () at block/io.c:593 bdrv_graph_wrlock (bs=0x5bab46036010) at block/graph-lock.c:157 blk_insert_bs () bdrv_open_inherit () qmp_blockdev_add () The owner of that AioContext mutex is the "IO iothread1" thread (LWP 322624), which is polling for the graph read lock in blk_is_available(), called from virtio-scsi request handling: aio_poll (ctx=0x5bab44e2e280) at util/aio-posix.c:670 bdrv_poll_co () at block/block-gen.h:43 blk_is_available () at block/block-gen.c:1681 virtio_scsi_ctx_check () at hw/scsi/virtio-scsi.c:291 virtio_scsi_handle_cmd_req_prepare () at hw/scsi/virtio-scsi.c:789 ** Attachment added: "gdb backtrace of deadlocked QEMU (1:8.2.2+ds-0ubuntu1.18)" https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2176154/+attachment/6021127/+files/lp2176154-qemu-1.18-gdb-backtrace.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2176154 Title: Deadlock between AioContext lock and block graph lock with virtio-scsi IOThread To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2176154/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
