* [Qemu-devel] question: qemu will crash when attach and detach a disk which configured qos for a while
@ 2017-09-11 1:24 WangJie (Captain)
2017-09-12 10:15 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: WangJie (Captain) @ 2017-09-11 1:24 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, famz, wangjie88
Hi, I maybe find a bug about qemu-kvm(version:2.8.1.1)
*Segmentation fault info:*
Program received signal SIGSEGV, Segmentation fault.
0x00007f5469220607 in blk_has_pending_reqs (blk=0x7f54672a0032, is_write=false) at block/throttle-groups.c:184
184 return blkp->pending_reqs[is_write];
(gdb) bt
#0 0x00007f5469220607 in blk_has_pending_reqs (blk=0x7f54672a0032, is_write=false) at block/throttle-groups.c:184
#1 0x00007f54692206a8 in next_throttle_token (blk=0x7f546b6cd120, is_write=false) at block/throttle-groups.c:207
#2 0x00007f5469220984 in throttle_group_co_io_limits_intercept (blk=0x7f546b6cd120, bytes=512, is_write=false)
at block/throttle-groups.c:322
#3 0x00007f546920bc79 in blk_co_preadv (blk=0x7f546b6cd120, offset=0, bytes=512, qiov=0x7ffcc7355060, flags=0)
at block/block-backend.c:815
#4 0x00007f546920bddf in blk_read_entry (opaque=0x7ffcc7355080) at block/block-backend.c:865
#5 0x00007f54692a00f0 in coroutine_trampoline (i0=-588050448, i1=32595) at util/coroutine-ucontext.c:79
#6 0x00007f5466f34cf0 in ?? () from /lib64/libc.so.6
#7 0x00007f53f27fa9e0 in ?? ()
#8 0x0000000000000000 in ?? ()
the way how to find the bug as follows:
*1、attach and detach a disk for a while,the configure of the disk as follows*
<disk device="disk" type="file">
<driver cache="none" io="native" name="qemu" type="raw" />
<source file="/mnt/sdb/wangjie-kvm/core/fk8b42zr-oz" />
<target bus="virtio" dev="vdb" />
<iotune>
<read_iops_sec>3000</read_iops_sec>
<write_iops_sec>3000</write_iops_sec>
<read_bytes_sec>120000000</read_bytes_sec>
<write_bytes_sec>120000000</write_bytes_sec>
</iotune>
</disk>
*2、run below script for a while,the qemu process of VM will crash*
ret=1
while [ $ret -ne 0 ]; do
virsh attach-device i-clone203_rhel_7.3_64_guestosdev add-1.xml
sleep 2
virsh detach-device i-clone203_rhel_7.3_64_guestosdev add-1.xml
done
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] question: qemu will crash when attach and detach a disk which configured qos for a while
2017-09-11 1:24 [Qemu-devel] question: qemu will crash when attach and detach a disk which configured qos for a while WangJie (Captain)
@ 2017-09-12 10:15 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-09-12 10:15 UTC (permalink / raw)
To: WangJie (Captain); +Cc: qemu-devel, pbonzini, famz, Alberto Garcia
On Mon, Sep 11, 2017 at 09:24:23AM +0800, WangJie (Captain) wrote:
> Hi, I maybe find a bug about qemu-kvm(version:2.8.1.1)
Can you reproduce the segfault with qemu.git/master?
> *Segmentation fault info:*
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007f5469220607 in blk_has_pending_reqs (blk=0x7f54672a0032, is_write=false) at block/throttle-groups.c:184
> 184 return blkp->pending_reqs[is_write];
> (gdb) bt
> #0 0x00007f5469220607 in blk_has_pending_reqs (blk=0x7f54672a0032, is_write=false) at block/throttle-groups.c:184
> #1 0x00007f54692206a8 in next_throttle_token (blk=0x7f546b6cd120, is_write=false) at block/throttle-groups.c:207
> #2 0x00007f5469220984 in throttle_group_co_io_limits_intercept (blk=0x7f546b6cd120, bytes=512, is_write=false)
> at block/throttle-groups.c:322
> #3 0x00007f546920bc79 in blk_co_preadv (blk=0x7f546b6cd120, offset=0, bytes=512, qiov=0x7ffcc7355060, flags=0)
> at block/block-backend.c:815
> #4 0x00007f546920bddf in blk_read_entry (opaque=0x7ffcc7355080) at block/block-backend.c:865
> #5 0x00007f54692a00f0 in coroutine_trampoline (i0=-588050448, i1=32595) at util/coroutine-ucontext.c:79
> #6 0x00007f5466f34cf0 in ?? () from /lib64/libc.so.6
> #7 0x00007f53f27fa9e0 in ?? ()
> #8 0x0000000000000000 in ?? ()
Is the guest running software that accesses the disk? Otherwise I guess
this is the guest kernel probing the partition table on the disk
(offset=0, bytes=512).
> the way how to find the bug as follows:
>
> *1、attach and detach a disk for a while,the configure of the disk as follows*
> <disk device="disk" type="file">
> <driver cache="none" io="native" name="qemu" type="raw" />
> <source file="/mnt/sdb/wangjie-kvm/core/fk8b42zr-oz" />
> <target bus="virtio" dev="vdb" />
> <iotune>
> <read_iops_sec>3000</read_iops_sec>
> <write_iops_sec>3000</write_iops_sec>
> <read_bytes_sec>120000000</read_bytes_sec>
> <write_bytes_sec>120000000</write_bytes_sec>
> </iotune>
> </disk>
>
>
> *2、run below script for a while,the qemu process of VM will crash*
> ret=1
> while [ $ret -ne 0 ]; do
> virsh attach-device i-clone203_rhel_7.3_64_guestosdev add-1.xml
> sleep 2
> virsh detach-device i-clone203_rhel_7.3_64_guestosdev add-1.xml
> done
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-12 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-11 1:24 [Qemu-devel] question: qemu will crash when attach and detach a disk which configured qos for a while WangJie (Captain)
2017-09-12 10:15 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).