Bug 1340931

Summary: qemu -nodefaults -sdl crashes
Product: [Fedora] Fedora Reporter: Michael Young <m.a.young>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, pbonzini, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-2.6.0-4.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-25 19:26:44 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 Michael Young 2016-05-30 18:02:48 UTC
I am not sure if this due to qemu or xen (or both), but if I try booting a xen pv guest with graphics using /usr/bin/qemu-system-i386 I either get a crash with sdl or a failure to produce graphics with vnc.
The sdl crash (with qemu-system-x86-2.6.0-3.fc24.x86_64) has backtrace
#0  0x000056408e9f9e6e in sdl_display_init (ds=<optimized out>, full_screen=0, 
    no_frame=<optimized out>) at ui/sdl2.c:822
#1  0x000056408e793136 in main (argc=<optimized out>, argv=<optimized out>, 
    envp=<optimized out>) at vl.c:4571
where the qemu command line was
/usr/bin/qemu-system-i386 -xen-domid 2 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait -no-shutdown -mon chardev=libxl-cmd,mode=control -chardev socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-2,server,nowait -mon chardev=libxenstat-cmd,mode=control -nodefaults -xen-attach -name f24test -vnc 127.0.0.1:0,to=99 -display none -sdl -machine xenpv -m 1024
and the command line for vnc was
/usr/bin/qemu-system-i386 -xen-domid 4 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-4,server,nowait -no-shutdown -mon chardev=libxl-cmd,mode=control -chardev socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-4,server,nowait -mon chardev=libxenstat-cmd,mode=control -nodefaults -xen-attach -name f24test -vnc 127.0.0.1:0,to=99 -display none -machine xenpv -m 1024

Comment 1 Cole Robinson 2016-05-31 20:38:10 UTC
There's some weirdness here. The command line has both '-display none' and -vnc/-sdl, which seems odd, but I don't think it's the root issue. Maybe just a xen buglet

The root issue is that -nodefaults sets -vga none, which explains the lack of output for -vnc, and is tickling the sdl crash. So let's use this to track the sdl crasher, but maybe you need a xen bug if the lack of video hardware is unexpected

Comment 2 Cole Robinson 2016-05-31 21:01:40 UTC
Patch posted: http://lists.nongnu.org/archive/html/qemu-devel/2016-05/msg05735.html

Comment 3 Fedora Update System 2016-06-22 17:32:35 UTC
qemu-2.6.0-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a80eab65ba

Comment 4 Fedora Update System 2016-06-22 23:00:44 UTC
qemu-2.6.0-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a80eab65ba

Comment 5 Fedora Update System 2016-06-25 19:22:42 UTC
qemu-2.6.0-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.