Bug 1401893

Summary: mutter breaks X11 sessions in VMs with <vmport state='off'/>
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dhgutteridge, fmuellner, james, otaylor, rickatnight11, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mutter-3.22.2-2.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-08 03:53:31 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:
Attachments:
Description Flags
journal during login to X11 (seeing black screen)
none
rpm -qa output none

Description Kamil Páral 2016-12-06 11:05:51 UTC
Description of problem:
Freshly created VMs in virt-manager now have <vmport state='off'/> tag under <features> (this tag is not present in VMs created in the past). For such VMs, latest mutter-3.22.2-1.fc25.x86_64 broke X11 sessions - only black screen is displayed.

The solution is either to downgrade to mutter-3.22.1-8.fc25.x86_64, or remove the <vmport state='off'/> tag from the VM configuration. The "vmport" tag seems to be "emulation of VMware IO port", per this documentation:
https://libvirt.org/formatdomain.html
https://www.redhat.com/archives/libvir-list/2015-April/msg00000.html

When things are broken (VM with vmport tag and latest mutter), this appears in journal:

Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]: X Error of failed request:  BadValue (integer parameter out of range for operation)
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]:   Major opcode of failed request:  131 (XInputExtension)
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]:   Minor opcode of failed request:  57 ()
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]:   Value in failed request:  0x106
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]:   Serial number of failed request:  283
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1429]:   Current serial number in output stream:  284
Dec 06 11:37:56 localhost.localdomain gnome-session[1333]: gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec 06 11:37:56 localhost.localdomain gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]: X Error of failed request:  BadValue (integer parameter out of range for operation)
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]:   Major opcode of failed request:  131 (XInputExtension)
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]:   Minor opcode of failed request:  57 ()
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]:   Value in failed request:  0x106
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]:   Serial number of failed request:  283
Dec 06 11:37:56 localhost.localdomain org.gnome.Shell.desktop[1440]:   Current serial number in output stream:  284
Dec 06 11:37:56 localhost.localdomain gnome-session[1333]: gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec 06 11:37:56 localhost.localdomain gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec 06 11:37:56 localhost.localdomain gnome-session[1333]: gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec 06 11:37:56 localhost.localdomain gnome-session-binary[1333]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec 06 11:37:56 localhost.localdomain gnome-session-binary[1333]: Unrecoverable failure in required component org.gnome.Shell.desktop
Dec 06 11:37:56 localhost.localdomain gnome-session[1333]: Unable to init server: Could not connect: Connection refused
Dec 06 11:37:56 localhost.localdomain audit[1447]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=4 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=1447 comm="gnome-session-f" exe="/usr/libexec/gnome-session-failed" sig=11
Dec 06 11:37:56 localhost.localdomain kernel: show_signal_msg: 189 callbacks suppressed
Dec 06 11:37:56 localhost.localdomain kernel: gnome-session-f[1447]: segfault at 0 ip 00007f9b28fb0579 sp 00007ffc76a27b00 error 4 in libgtk-3.so.0.2200.4[7f9b28cd2000+6f0000]
Dec 06 11:37:56 localhost.localdomain abrt-hook-ccpp[1457]: Process 1447 (gnome-session-failed) of user 1000 killed by SIGSEGV - dumping core

(the crash on the last line leads to bug 1384508, which is a red herring)


Version-Release number of selected component (if applicable):
mutter-3.22.2-1.fc25.x86_64 (not working)
mutter-3.22.1-8.fc25.x86_64 (working)
gnome-shell-3.22.2-2.fc25.x86_64
kernel-4.8.11-300.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a fresh new VM in virt-manager on Fedora 25 host
2. make sure the VM has <vmport state='off'/> by inspecting "virsh edit VMNAME"
3. install latest Fedora 25 in the VM
4. upgrade mutter to 3.22.2-1.fc25
5. see that you can't log in to X11 session any more
6. downgrade mutter and see you can log in to X11 -- or -- remove <vmport state='off'/> from "virsh edit VMNAME" and see you can log in to X11

Comment 1 Kamil Páral 2016-12-06 11:08:47 UTC
Created attachment 1228410 [details]
journal during login to X11 (seeing black screen)

Comment 2 Kamil Páral 2016-12-06 11:09:04 UTC
Created attachment 1228411 [details]
rpm -qa output

Comment 3 Fedora Update System 2016-12-06 12:26:29 UTC
mutter-3.22.2-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-12b729ad09

Comment 4 Kamil Páral 2016-12-06 14:51:13 UTC
Seems to work.

Comment 5 Fedora Update System 2016-12-07 02:27:10 UTC
mutter-3.22.2-2.fc25 has been pushed to the Fedora 25 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-12b729ad09

Comment 6 Rui Matos 2016-12-07 16:06:12 UTC
*** Bug 1400182 has been marked as a duplicate of this bug. ***

Comment 7 David H. Gutteridge 2016-12-07 21:31:21 UTC
Confirming this update fixes the issue for me, as detailed in https://bugzilla.redhat.com/show_bug.cgi?id=1400182.

Comment 8 James 2016-12-07 21:32:28 UTC
(from 1400182) Fixed on my machine with mutter-3.22.2-3.fc25

Comment 9 Fedora Update System 2016-12-08 03:53:31 UTC
mutter-3.22.2-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.