1.1.7 : breaks xsession-errors, no more rotated

Bug #951597 reported by dino99
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Light Display Manager
Fix Released
Medium
Unassigned
lightdm (Ubuntu)
Fix Released
High
Robert Ancell

Bug Description

Precise i386, logged as gnome-classic

Usually we was starting a new xsession-errors log on each log out/in or cold boot. But since a few days its no more the case.

Downgrading lightdm/liblightdm-gobject to 1.1.6 restores previous behavior, see nothing in the changelog for 1.1.7 other than 'new upstream'

As i'm using lightdm-gtk-greeter instead of the default unity-greeter, i'm wondering if lightdm-gtk-greeter 1.0.6-0ubuntu4 is fully compatible with lightdm 1.1.7-0ubuntu1 ?

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lightdm 1.1.7-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.29~pre201203090400-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.94.1-0ubuntu2
Architecture: i386
Date: Sat Mar 10 16:45:39 2012
SourcePackage: lightdm
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
tags: added: 1.17-0ubuntu1
Doug McMahon (mc3man)
Changed in lightdm (Ubuntu):
status: New → Confirmed
dino99 (9d9)
description: updated
Changed in lightdm (Ubuntu):
importance: Undecided → High
assignee: nobody → Robert Ancell (robert-ancell)
Revision history for this message
dino99 (9d9) wrote :

User comment:

Did a new install today, xsession-errors is now totally worthless.
Was written to only on the 1st session or so, then it stops completely & just shows the same thru restarts. log outs

So it's not replaced & it's being treated as if it was modified which prevents any further writing to

Revision history for this message
Doug McMahon (mc3man) wrote :

That was me - to add,
What's happening now is lines are being written but inside the file, not at the end. Also every time it writes a line some are removed.
Ex. - the file is now1886 lines. (xs1). I take a screenshot, (xs2) , a couple of lines are written, several are removed -

$ diff /home/doug/Desktop/xs1 /home/doug/Desktop/xs2
350d349
< ull)
352,358c351,352
< `menu_proxy_module_load': guayadeque: undefined symbol: menu_proxy_module_load
<
< Gtk-WARNING **: Failed to load type module: (null)
<
< `menu_proxy_module_load': guayadeque: undefined symbol: menu_proxy_module_load
<
< Gtk-WARNING **: Failed to load type module: (null)
---
> ** WARNING **: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11. Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
> NG **: Failed to load type module: (null)

Changed in lightdm (Ubuntu):
assignee: Robert Ancell (robert-ancell) → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
dino99 (9d9) wrote :

This issue still persist on Precise i386 logged as gnome-classic:

- the log is not rotated on log out/in and reboot
- new events are not added to the previous not rotated log, seems to be like locked
- the only workaround to get a working xsession-errors log is to delete the previous one before logging out or reboot

Revision history for this message
Lucazade (lucazade) wrote :

still present in daily iso image

dino99 (9d9)
tags: added: regression
Changed in lightdm (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Robert Ancell (robert-ancell) wrote :

LightDM has never rotated the files, it does now in the trunk version. I can confirm the odd writing into the middle of the file, investigating that now. I haven't been able to reproduce the case where an existing log file doesn't get overwritten - can you check the permissions on the file?

Changed in lightdm (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Robert Ancell (robert-ancell)
Revision history for this message
Doug McMahon (mc3man) wrote :

It still seems to be using the the *same* .xsession.errors thru log out/ins & restarts except parts are overwritten
So after a full day that includes numerous log out/ins & restarts the file would be 4 -5000 lines, even after a full restart.

Hard to make sense of because new entries can go anywhere.
As example deleted the file, did a full restart, after login it looked normal, about 50 lines

Then opened, closed firefox which wrote (appended), some lines, started ccsm which always writes. Some of the ccsm lines went to end, some disappeared, the rest in middle.

Then did a log out/in, followed by full restart.
Attached is file after that - notice that some lines only seen when restarting are found at the end so it's not a completely overwritten file

-rw------- 1 doug doug 8081 Mar 26 04:02 .xsession-errors

Revision history for this message
dino99 (9d9) wrote :

.xsession-errors user:user with read/write allowed for user ( -rw------- )

since this date report i need to delete that log to get a new one on next reboot or log out/in, otherwise some lines are added to the previous xsession-errors then seems to be locked (no more lines added)

Not very sure about lightdm , could be elsewhere.

Revision history for this message
Doug McMahon (mc3man) wrote :

Sorry to spam - a small progression may illustrate a bit clearer ? -

Fresh boot, no existing file, (removed from other install

Revision history for this message
Doug McMahon (mc3man) wrote :

Immediately restarting from the above (waited 60 sec

Revision history for this message
Doug McMahon (mc3man) wrote :

from the above opened & closed firefox, lines written to middle of file

Revision history for this message
Doug McMahon (mc3man) wrote :

A restart from above after closing FF, the lines are still there in middle

Revision history for this message
dFlyer (ggaribaldi) wrote :

This bug is also present on the beta2 dvd install on 29 March 2012. The .xsession-error file does not rotate on log out or reboot. It just keeps adding to the file size until I manually remove the file than it keeps adding line to the file until I again delele the file.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

lightdm trunk now rotates the log files and opens them in append mode.

Changed in lightdm:
status: New → Fix Committed
Changed in lightdm (Ubuntu):
status: Triaged → Fix Committed
Changed in lightdm:
importance: Undecided → Medium
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in 1.2.0

Changed in lightdm:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.2.0-0ubuntu1

---------------
lightdm (1.2.0-0ubuntu1) precise; urgency=low

  * New upstream release.
    - Backup .xsession-errors on login (LP: #951597)
    - Handle failures in pam_setcred
    - Open log files in append mode (LP: #951597)
    - Add extra checks in liblightdm so that it doesn't send invalid messages
      to the daemon (LP: #969023)
    - Fix gdmflexiserver not being added to the path (broken since 1.1.4)
      (LP: #953554)
    - Fix PAM conversations after authentication from locking up sessions
      (LP: #956848)
    - Fix PAM informational messages locking up autologin
    - Change XDMCP manage timeout from 10ms to 126s (maximum specified in the
      XDMCP specification)
    - Fix greeter-show-guest example (LP: #972711)
 -- Robert Ancell <email address hidden> Thu, 05 Apr 2012 17:26:50 +1000

Changed in lightdm (Ubuntu):
status: Fix Committed → Fix Released
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.