Description of problem: Can no longer run qemu on F26. The same qemu command worked fine on F23. I am currently getting a seg fault with the following output: $ sudo ./command.sh Running qemu-system-x86_64 -cpu host -m 6144 -vga qxl -device qxl -device vfio-pci,host=01:00.0 -device vfio-pci,host=01:00.1 -enable-kvm -smp 8,sockets=1,cores=4,threads=2 -drive file=/mnt/VM_Images/win10_cdrive.raw.bak,if=virtio,index=1 -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF-pure-efi.fd -drive if=pflash,format=raw,file=/mnt/VM_Images/win10_ovmf_vars_x64.bin.bak -net nic,vlan=0,model=virtio -net bridge,vlan=0,br=brmain -rtc base=localtime ** (qemu-system-x86_64:2562): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-LkU8sIZDue: Connection refused qemu-system-x86_64: -net nic,vlan=0,model=virtio: 'vlan' is deprecated. Please use 'netdev' instead. WARNING: Image format was not specified for '/mnt/VM_Images/win10_cdrive.raw.bak' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. qemu-system-x86_64: /builddir/build/BUILD/qemu-2.10.0-rc1/util/qemu-thread-posix.c:64: qemu_mutex_lock: Assertion `mutex->initialized' failed. ./command.sh: line 60: 2562 Aborted (core dumped) $ENV qemu-system-x86_64 $OPTS Version-Release number of selected component (if applicable): I have enabled the fedora virt preview repo: $ sudo dnf list installed | grep qemu | head -n 4 @qemu-firmware-jenkins ipxe-roms-qemu.noarch 20161108-4.gitb991c67.fc26 libvirt-daemon-driver-qemu.x86_64 3.6.0-1.fc26 @fedora-virt-preview qemu.x86_64 2:2.10.0-0.1.rc1.fc26 @fedora-virt-preview How reproducible: consistent Steps to Reproduce: 1. 2. 3. Actual results: Seg fault and command terminated Expected results: A windows host running Additional info:
Can you grab a stack trace from the core dump? Knowing that the error occurs in qemu-thread-posix.c is not very helpful since that's simply a set of wrappers around the pthread functions.
Created attachment 1312731 [details] Stacktrace
Something in QXL then ... #3 0x00007f86572e5da2 __GI___assert_fail (libc.so.6) #4 0x0000556c1cca2a65 qemu_mutex_lock (qemu-system-x86_64) #5 0x0000556c1cae1ea8 qxl_render_update (qemu-system-x86_64) #6 0x0000556c1cbb8f82 dpy_refresh (qemu-system-x86_64) #7 0x0000556c1cc9f8f0 timerlist_run_timers (qemu-system-x86_64) #8 0x0000556c1cc9faf7 qemu_clock_run_timers (qemu-system-x86_64) #9 0x0000556c1cc9ffda main_loop_wait (qemu-system-x86_64) #10 0x0000556c1c911bef main (qemu-system-x86_64) #11 0x00007f86572d74da __libc_start_main (libc.so.6) #12 0x0000556c1c914afa _start (qemu-system-x86_64)
Created attachment 1312744 [details] Stacktrace with backtrace output
(In reply to Richard W.M. Jones from comment #3) > Something in QXL then ... > > #3 0x00007f86572e5da2 __GI___assert_fail (libc.so.6) > #4 0x0000556c1cca2a65 qemu_mutex_lock (qemu-system-x86_64) > #5 0x0000556c1cae1ea8 qxl_render_update (qemu-system-x86_64) > #6 0x0000556c1cbb8f82 dpy_refresh (qemu-system-x86_64) > #7 0x0000556c1cc9f8f0 timerlist_run_timers > (qemu-system-x86_64) > #8 0x0000556c1cc9faf7 qemu_clock_run_timers > (qemu-system-x86_64) > #9 0x0000556c1cc9ffda main_loop_wait (qemu-system-x86_64) > #10 0x0000556c1c911bef main (qemu-system-x86_64) > #11 0x00007f86572d74da __libc_start_main (libc.so.6) > #12 0x0000556c1c914afa _start (qemu-system-x86_64) Gerd, this is with qemu-2.10.0-rc1, seen any reports about this yet?
Minimal reproducer: $ qemu-system-x86_64 -device qxl ademaria, as a workaround are you sure you need both "-vga qxl" and "-device qxl"?
Ran an update pulling 2.10.0-0.2.rc3.fc26, and this particular bug is now resolved. Now running into a new issue where the guest doesn't start and the host hangs consuming a bunch of cpu time.
Since this issue sounds like it's gone, closing this bug. ademaria please file a separate bug about the host hang, and provide your kernel version (and make sure you are running latest f26 kernel)