qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] segfault use VRingMemoryRegionCaches for avail and used rin


From: Christian Borntraeger
Subject: [Qemu-devel] segfault use VRingMemoryRegionCaches for avail and used ring vs num-queues
Date: Mon, 27 Feb 2017 15:09:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Paolo,

commit 97cd965c070152bc626c7507df9fb356bbe1cd81
"virtio: use VRingMemoryRegionCaches for avail and used rings"
does cause a segfault on my s390 system when I use num-queues.

gdb --args qemu-system-s390x -nographic -enable-kvm -m 1G -drive 
file=/var/lib/libvirt/qemu/image.zhyp137,if=none,id=d1 -device 
virtio-blk-ccw,drive=d1,iothread=io1,num-queues=2 -object iothread,id=io1


Thread 3 "qemu-system-s39" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x3ffe587f910 (LWP 40630)]
0x0000000001024a26 in address_space_translate_cached (cache=0x38, addr=2, 
xlat=0x3ffe587bff8, plen=0x3ffe587bff0, is_write=false) at 
/home/cborntra/REPOS/qemu/exec.c:3187
3187        assert(addr < cache->len && *plen <= cache->len - addr);
Missing separate debuginfos, use: dnf debuginfo-install atk-2.20.0-1.fc24.s390x 
boost-iostreams-1.60.0-7.fc24.s390x boost-random-1.60.0-7.fc24.s390x 
boost-system-1.60.0-7.fc24.s390x boost-thread-1.60.0-7.fc24.s390x 
bzip2-libs-1.0.6-20.fc24.s390x cairo-1.14.6-1.fc24.s390x 
cyrus-sasl-lib-2.1.26-26.2.fc24.s390x expat-2.1.1-2.fc24.s390x 
fontconfig-2.11.94-6.fc24.s390x freetype-2.6.3-2.fc24.s390x 
gdk-pixbuf2-2.34.0-1.fc24.s390x glib2-2.48.1-1.fc24.s390x 
glusterfs-api-3.8.1-1.fc24.s390x glusterfs-libs-3.8.1-1.fc24.s390x 
gmp-6.1.1-1.fc24.s390x gnutls-3.4.14-1.fc24.s390x graphite2-1.3.6-1.fc24.s390x 
gtk2-2.24.30-1.fc24.s390x harfbuzz-1.2.7-1.fc24.s390x 
keyutils-libs-1.5.9-8.fc24.s390x krb5-libs-1.14.1-8.fc24.s390x 
libX11-1.6.3-3.fc24.s390x libXau-1.0.8-6.fc24.s390x 
libXcomposite-0.4.4-8.fc24.s390x libXcursor-1.1.14-6.fc24.s390x 
libXdamage-1.1.4-8.fc24.s390x libXext-1.3.3-4.fc24.s390x 
libXfixes-5.0.2-2.fc24.s390x libXi-1.7.6-2.fc24.s390x 
libXinerama-1.1.3-6.fc24.s390x libXrandr-1.5.0-3.fc24.s390x 
libXrender-0.9.9-3.fc24.s390x libXxf86vm-1.1.4-3.fc24.s390x 
libacl-2.2.52-11.fc24.s390x libaio-0.3.110-6.fc24.s390x 
libatomic_ops-7.4.2-9.fc24.s390x libattr-2.4.47-16.fc24.s390x 
libblkid-2.28-3.fc24.s390x libcom_err-1.42.13-4.fc24.s390x 
libcurl-7.47.1-5.fc24.s390x libdatrie-0.2.9-3.fc24.s390x 
libdrm-2.4.70-1.fc24.s390x libffi-3.1-9.fc24.s390x 
libgcc-6.2.1-2.0.ibm.fc24.s390x libidn-1.33-1.fc24.s390x 
libnghttp2-1.7.1-1.fc24.s390x libpng-1.6.23-1.fc24.s390x 
libpsl-0.13.0-1.fc24.s390x librados2-10.2.2-2.fc24.s390x 
librbd1-10.2.2-2.fc24.s390x libselinux-2.5-9.fc24.s390x 
libssh2-1.7.0-5.fc24.s390x libstdc++-6.2.1-2.0.ibm.fc24.s390x 
libtasn1-4.8-2.fc24.s390x libthai-0.1.24-1.fc24.s390x 
libunistring-0.9.4-3.fc24.s390x libuuid-2.28-3.fc24.s390x 
libwayland-client-1.10.0-1.fc24.s390x libwayland-server-1.10.0-1.fc24.s390x 
libxcb-1.11.1-2.fc24.s390x libxshmfence-1.2-3.fc24.s390x 
lttng-ust-2.6.2-3.fc24.s390x mesa-libEGL-13.0.0-3.fc24.s390x 
mesa-libGL-13.0.0-3.fc24.s390x mesa-libgbm-13.0.0-3.fc24.s390x 
mesa-libglapi-13.0.0-3.fc24.s390x ncurses-libs-6.0-6.20160709.fc24.s390x 
nettle-3.2-3.fc24.s390x nspr-4.13.0-1.fc24.s390x nss-3.27.0-1.1.fc24.s390x 
nss-softokn-freebl-3.27.0-1.0.fc24.s390x nss-util-3.27.0-1.0.fc24.s390x 
openldap-2.4.44-1.fc24.s390x openssl-libs-1.0.2j-1.fc24.s390x 
p11-kit-0.23.2-2.fc24.s390x pango-1.40.1-1.fc24.s390x pcre-8.39-2.fc24.s390x 
pixman-0.34.0-2.fc24.s390x userspace-rcu-0.8.6-2.fc24.s390x 
zlib-1.2.8-10.fc24.s390x
(gdb) bt
#0  0x0000000001024a26 in address_space_translate_cached (cache=0x38, addr=2, 
xlat=0x3ffe587bff8, plen=0x3ffe587bff0, is_write=false) at 
/home/cborntra/REPOS/qemu/exec.c:3187
#1  0x0000000001025596 in address_space_lduw_internal_cached (cache=0x38, 
addr=2, attrs=..., result=0x0, endian=DEVICE_BIG_ENDIAN) at 
/home/cborntra/REPOS/qemu/memory_ldst.inc.c:264
#2  0x0000000001025846 in address_space_lduw_be_cached (cache=0x38, addr=2, 
attrs=..., result=0x0) at /home/cborntra/REPOS/qemu/memory_ldst.inc.c:322
#3  0x000000000102597e in lduw_be_phys_cached (cache=0x38, addr=2) at 
/home/cborntra/REPOS/qemu/memory_ldst.inc.c:340
#4  0x0000000001114856 in virtio_lduw_phys_cached (vdev=0x1c57cd0, cache=0x38, 
pa=2) at /home/cborntra/REPOS/qemu/include/hw/virtio/virtio-access.h:164
#5  0x000000000111523c in vring_avail_idx (vq=0x3fffde1e090) at 
/home/cborntra/REPOS/qemu/hw/virtio/virtio.c:201
#6  0x0000000001115bba in virtio_queue_empty (vq=0x3fffde1e090) at 
/home/cborntra/REPOS/qemu/hw/virtio/virtio.c:332
#7  0x000000000111c312 in virtio_queue_host_notifier_aio_poll 
(opaque=0x3fffde1e0f8) at /home/cborntra/REPOS/qemu/hw/virtio/virtio.c:2294
#8  0x000000000147a036 in run_poll_handlers_once (ctx=0x1bb8bb0) at 
/home/cborntra/REPOS/qemu/util/aio-posix.c:490
#9  0x000000000147a2fe in try_poll_mode (ctx=0x1bb8bb0, blocking=true) at 
/home/cborntra/REPOS/qemu/util/aio-posix.c:566
#10 0x000000000147a3ca in aio_poll (ctx=0x1bb8bb0, blocking=true) at 
/home/cborntra/REPOS/qemu/util/aio-posix.c:595
#11 0x00000000011a0176 in iothread_run (opaque=0x1bb86c0) at 
/home/cborntra/REPOS/qemu/iothread.c:59
#12 0x000003ffe9087bc4 in start_thread () at /lib64/libpthread.so.0
#13 0x000003ffe8f8a9f2 in thread_start () at /lib64/libc.so.6

It seems to make a difference if its the boot disk or not. Maybe the reset of 
the
devices that the bootloader does before handling over control to Linux creates
some trouble here.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]