Hi all,

Recently, I did some convergence tests of VM lifecycles and storage anomalies. 
Here is a question about the qemu core.
The VM configure disk of IP SAN storage device.

Call traceļ¼š
#0  0x00007fbe9151877b in raise () from /usr/lib64/libc.so.6
#1  0x00007fbe91519aa1 in abort () from /usr/lib64/libc.so.6
#2  0x00007fbe9151103a in ?? () from /usr/lib64/libc.so.6
#3  0x00007fbe915110b2 in __assert_fail () from /usr/lib64/libc.so.6
#4  0x00007fbe9029baf8 in scsi_parse_sense_buf 
(in_buf=in_buf@entry=0x7fbe18002870 "p", in_len=<optimized out>) at 
/usr/src/debug/qemu-4.1.0-102.x86_64/scsi/utils.c:100
#5  0x00007fbe902a3980 in scsi_read_complete (opaque=0x7fbe18002800, 
ret=<optimized out>) at 
/usr/src/debug/qemu-4.1.0-102.x86_64/hw/scsi/scsi-generic.c:260
#6  0x00007fbe903227c7 in blk_aio_complete (acb=0x7fbe18003350) at 
/usr/src/debug/qemu-4.1.0-102.x86_64/block/block-backend.c:1319
#7  0x00007fbe912a79b4 in coroutine_trampoline (i0=<optimized out>, 
i1=<optimized out>) at 
/usr/src/debug/qemu-4.1.0-102.x86_64/util/coroutine-ucontext.c:115
#8  0x00007fbe9152ce80 in ?? () from /usr/lib64/libc.so.6
#9  0x00007fbe29ffa4a0 in ?? ()
#10 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fbdf1e00000

The scsi cmd requested in the core is inqury, the cmd is to call " 
handle_aiocb_ioctl(void *opaque) ".
When the network is abnormal, the senses may not be obtained. This will cause " 
r->io_header.sb_len_wr " is 0, qemu core occurs.

We can fix this bug by deleting " assert(in_len > 0); ".
Any better suggestion?

Thanks


Reply via email to