Bug 1599515
Summary: | qemu core-dump with aio_read via hmp (util/qemu-thread-posix.c:64: qemu_mutex_lock_impl: Assertion `mutex->initialized' failed) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Qianqian Zhu <qizhu> |
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | aihua liang <aliang> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.6 | CC: | chayang, coli, juzhang, michen, ngu, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.12.0-8.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-01 11:13:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Qianqian Zhu
2018-07-10 01:46:13 UTC
Reproduced with scsi-hd on qemu-kvm-rhev-2.10.0-16.el7.x86_64: /usr/libexec/qemu-kvm \ -enable-kvm \ -m 2G \ -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=0x4 \ -blockdev driver=raw,cache.direct=on,node-name=file_image1,file.filename=/home/rhel75-64-virtio-scsi.raw,file.driver=file,file.aio=native \ -blockdev driver=blkdebug,node-name=blockdev_image1,image=file_image1,config=blkdebug.conf \ -device scsi-hd,id=image1,drive=blockdev_image1,share-rw=on \ -monitor stdio So, it is not usb related, and not regression. It also can be reproduced with virtio-blk-pci. And checked with Qianqian, the bug could only be reproduced with 'aio_read', while 'aio_write', 'read', 'write' without the issue. If use the traditional way to specify a device as follows, even 'aio_read' could not induce the bug: -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/$1 \ -device scsi-hd,drive=drive_image1,id=image1 \ Tried removing blkdebug object, it is also reproducible. So the simplest reproducer here below: 1. Launch guest: -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=0x4 \ -blockdev driver=raw,cache.direct=on,node-name=file_image1,file.filename=/home/rhel76-64-virtio-scsi.raw,file.driver=file,file.aio=native \ -device scsi-hd,id=image1,drive=file_image1,share-rw=on,rerror=stop,werror=stop \ 2. (qemu) qemu-io file_image1 "aio_read -v 512 1k 1k" (qemu) qemu-kvm: util/qemu-thread-posix.c:64: qemu_mutex_lock_impl: Assertion `mutex->initialized' failed. Aborted (core dumped) Fix included in qemu-kvm-rhev-2.12.0-8.el7 Verified in: kernel:3.10.0-918.el7.x86_64 qemu-kvm-rhev: qemu-kvm-rhev-2.12.0-8.el7.x86_64 test on both virtio_blk and virtio_scsi The problem has been resolved, so set its status to "Verified". Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3443 |