180,000 _XSERVTrans error log lines on single boot

Bug #1577341 reported by John Bester
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
New
Undecided
Unassigned

Bug Description

lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

uname -a
Linux popeye 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

My PC booted in 18 seconds before upgrading to Ubuntu Gnome 16.04 - now it takes 2 minutes. I tried to find the culprit in the logs. There is a set of 4 lines that repeats abount 50,000 times (to be exact, a total of 179628 log lines containing "gdm-x-session[2329]: _XSERVTrans".) Although these entries are logged over a timespan of 4 seconds, I cannot but wonder how long syslog takes to acually log the individual entries to the /var/log/syslog file. In total, this adds 22MB of logging output to syslog.
(By the way, my Gnome 3 session starts just fine, the log is just outrageous)

What I expect to happen: Logging the same error as may times in such a short period indicates one of two problems:
1) If something fails (maybe some service is not ready yet), then allow more time before trying again - there is no point in taking away processing power if some service is trying to start up.
2) If it is an absolute necessity for the number of failures (there might be 50,000 small components all trying the same thing), then limit log output. Logging the 4 lines once, then adjust a counter which you then log once the process is complete.

Here follows this first and last lines of just such a block of errors:

May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransmkdir: ERROR: Cannot create /tmp/.X11-unix
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 13
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransmkdir: ERROR: Cannot create /tmp/.X11-unix
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 13
May 2 10:10:55 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix
...
...
...
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransOpen: transport open failed for unix/popeye:59533
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransOpen: transport open failed for unix/popeye:59534
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransSocketOpenCOTSServer: Unable to open socket for unix
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransOpen: transport open failed for unix/popeye:59535
May 2 10:10:58 popeye /usr/lib/gdm3/gdm-x-session[2329]: _XSERVTransMakeAllCOTSServerListeners: failed to open listener for unix

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.