Bug 1269506

Summary: spice-vdagentd crashes in a VM when GDM autologin is enabled
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: spice-vdagentAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: alon, cfergeau, marcandre.lureau, sandmann, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5d297fcd970b9040e65c3a72699b38ffd3c9c844
Whiteboard: abrt_hash:e997cf8aa87f95e4ef7172e5525a097d3eec92ff;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 10:34:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1170822    
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
full system journal none

Description Kamil Páral 2015-10-07 12:48:48 UTC
Description of problem:
This seems to happen in a VM when I enable automatic login in GNOME. On boot, instead of gdm I see only a black screen. I can switch to other TTYs and log in using text mode. There is spice-vdagentd traceback in journal, I suspect that's what kills gdm. When I try to reboot, I have to wait 90 seconds before systemd kills some processes.

Version-Release number of selected component:
spice-vdagent-0.16.0-1.fc23

Additional info:
reporter:       libreport-2.6.2
backtrace_rating: 4
cmdline:        /usr/sbin/spice-vdagentd
crash_function: __open_memstream
executable:     /usr/sbin/spice-vdagentd
global_pid:     745
kernel:         4.2.2-300.fc23.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (5 frames)
 #3 __open_memstream at memstream.c:85
 #4 __vsyslog_chk at ../misc/syslog.c:167
 #5 __syslog_chk at ../misc/syslog.c:129
 #6 update_active_session_connection at src/vdagentd.c:645
 #7 main_loop at src/vdagentd.c:881

Comment 1 Kamil Páral 2015-10-07 12:48:55 UTC
Created attachment 1080660 [details]
File: backtrace

Comment 2 Kamil Páral 2015-10-07 12:48:57 UTC
Created attachment 1080661 [details]
File: cgroup

Comment 3 Kamil Páral 2015-10-07 12:48:59 UTC
Created attachment 1080662 [details]
File: core_backtrace

Comment 4 Kamil Páral 2015-10-07 12:49:01 UTC
Created attachment 1080663 [details]
File: dso_list

Comment 5 Kamil Páral 2015-10-07 12:49:03 UTC
Created attachment 1080664 [details]
File: environ

Comment 6 Kamil Páral 2015-10-07 12:49:04 UTC
Created attachment 1080665 [details]
File: exploitable

Comment 7 Kamil Páral 2015-10-07 12:49:06 UTC
Created attachment 1080666 [details]
File: limits

Comment 8 Kamil Páral 2015-10-07 12:49:09 UTC
Created attachment 1080667 [details]
File: maps

Comment 9 Kamil Páral 2015-10-07 12:49:10 UTC
Created attachment 1080668 [details]
File: mountinfo

Comment 10 Kamil Páral 2015-10-07 12:49:12 UTC
Created attachment 1080669 [details]
File: namespaces

Comment 11 Kamil Páral 2015-10-07 12:49:14 UTC
Created attachment 1080670 [details]
File: open_fds

Comment 12 Kamil Páral 2015-10-07 12:49:16 UTC
Created attachment 1080671 [details]
File: proc_pid_status

Comment 13 Kamil Páral 2015-10-07 12:49:18 UTC
Created attachment 1080672 [details]
File: var_log_messages

Comment 14 Kamil Páral 2015-10-07 13:16:26 UTC
Created attachment 1080683 [details]
full system journal

This is full journal from an attempt to boot in a VM with GDM autologin enabled. 14:10:21 timestamp is roughly the time when I see only black screen instead of gdm and then I switch to tty2 and try to reboot, which takes 90 seconds.

Comment 15 Kamil Páral 2015-10-07 13:42:22 UTC
This problem is fixed by this update:
https://bodhi.fedoraproject.org/updates/FEDORA-2015-a7f21b1850

Proposing as a FinalFreezeException, this will allow autologin in VMs without updating your system first. If this is not stable, people will have troubles disabling autologin to get working graphics again (you need to edit /etc/gdm/custom.conf).

Comment 16 Kamil Páral 2015-10-08 10:34:11 UTC
The bodhi update has been pushed to stable, closing.