lxsession risks filling disk with improper log handling

Bug #1376380 reported by Dennis Knorr
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
lxsession (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My PC run for 2-3 days, and this evening, when i came back from work, the computer was full, since the .cache/lxsession/Lubuntu/run.log was 600gb.
the applications which were running are firefox and ktorrent.
Obviously, i cannot upload the file and i will not keep it...

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxsession 0.4.9.2+git20140410-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
CurrentDesktop: LXDE
Date: Wed Oct 1 20:06:19 2014
SourcePackage: lxsession
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dennis Knorr (dennis-knorr) wrote :
Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote : Re: [Bug 1376380] [NEW] lxsession run.log fills up disk

hi again. :) please monitor that location for additional writes. if
you see more in the run.log, please post the results here or parse it
for something useful! have you had any `lxsession` crashes recently?
there appears to be at least one other similar problem
(http://homeduino.blogspot.com/2014/05/lubuntu-installing-vnc-server.html)
which resulted from a bad `lxsession` call. this may be your problem.
see if `ps` can give you the flags `lxsession` is running with. not
sure if it spawns again, but that may be a good place to start.

On Wed, Oct 1, 2014 at 11:10 AM, Dennis Knorr
<email address hidden> wrote:
> Public bug reported:
>
> My PC run for 2-3 days, and this evening, when i came back from work, the computer was full, since the .cache/lxsession/Lubuntu/run.log was 600gb.
> the applications which were running are firefox and ktorrent.
> Obviously, i cannot upload the file and i will not keep it...
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: lxsession 0.4.9.2+git20140410-0ubuntu1.1
> ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
> Uname: Linux 3.13.0-34-generic x86_64
> ApportVersion: 2.14.1-0ubuntu3.4
> Architecture: amd64
> CurrentDesktop: LXDE
> Date: Wed Oct 1 20:06:19 2014
> SourcePackage: lxsession
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> ** Affects: lxsession (Ubuntu)
> Importance: Undecided
> Status: New
>
>
> ** Tags: amd64 apport-bug trusty
>
> --
> You received this bug notification because you are a member of Lubuntu
> Packages Team, which is subscribed to lxsession in Ubuntu.
> https://bugs.launchpad.net/bugs/1376380
>
> Title:
> lxsession run.log fills up disk
>
> Status in “lxsession” package in Ubuntu:
> New
>
> Bug description:
> My PC run for 2-3 days, and this evening, when i came back from work, the computer was full, since the .cache/lxsession/Lubuntu/run.log was 600gb.
> the applications which were running are firefox and ktorrent.
> Obviously, i cannot upload the file and i will not keep it...
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: lxsession 0.4.9.2+git20140410-0ubuntu1.1
> ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
> Uname: Linux 3.13.0-34-generic x86_64
> ApportVersion: 2.14.1-0ubuntu3.4
> Architecture: amd64
> CurrentDesktop: LXDE
> Date: Wed Oct 1 20:06:19 2014
> SourcePackage: lxsession
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lxsession/+bug/1376380/+subscriptions

Revision history for this message
Launchpad Janitor (janitor) wrote : Re: lxsession run.log fills up disk

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxsession (Ubuntu):
status: New → Confirmed
Revision history for this message
dj (dwight7) wrote :

i had exactly the same problem. just came into work and run.log was 76GB. My Home partion was completely full ( glad i made it a partition ). i restarted lightdm and it cleared it out. uptime shows 1 day 22 hours. at this point run.log does not seem to be growing without bound, but there are errors in the log file.

Revision history for this message
dj (dwight7) wrote :

the log file looks almost like a trace file. should the logging be turned from debug to info or warning? And there are a lot of communications errors.

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

there's a similar bug on the upstream tracker: https://sourceforge.net/p/lxde/bugs/634/. it seems to me that the issue can happen for several reasons, none of which have to do with lxsession itself. however, i think that how lxsession handles logs makes no sense.

Revision history for this message
Lyn Perrine (walterorlin) wrote :

Yes there is no way to patch every game which might make a call to lxsession or similar appliaction with developers that might not have much care for lxde.

Revision history for this message
Dennis Knorr (dennis-knorr) wrote :

That may be, but then the session log must be under rotation.

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote : Re: [Bug 1376380] Re: lxsession run.log fills up disk

Agree. This is still an issue with lxsession: improper handling of logging.

summary: - lxsession run.log fills up disk
+ lxsession risks filling disk with improper log handling
Revision history for this message
ambossarm (ambossarm) wrote :

Just had a full home disk. Problem was mplayer writing "seek failed" into run.log for the last day. I had a broken video file, that I deleted when it did not start. Seems that one or two mplayer kept running in the background. Had to kill it with -9.

Revision history for this message
Christopher Redden (christopher-redden) wrote :

I am getting this on Lubuntu 16.04. Is there a way to disable run.log? Every few weeks I have to delete it.

Revision history for this message
Javier Marino (marino-javier) wrote :

hi everyone

Any fix fot this behaviour? i getting a lot using KODI, fill all my disk with the file run.log

Thanks

Revision history for this message
Donald (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcvq9spp6z3w5j1m33k06tlsf-c04cs2xj0-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rlwaer06ogwvqwv9mrqoku2x334n7di44o65qze67n1wneepmidnuwnde1rqcbpgdf70gtqq2) wrote :

Same here.

root@raspberrypi:/home/pi/.cache/lxsession/LXDE-pi# tail -f run.log

** (pcmanfm:672): WARNING **: 14:23:20.696: got unmount for unknown desktop item

** (pcmanfm:672): WARNING **: 14:23:20.696: got unmount for unknown desktop item

** (pcmanfm:672): WARNING **: 14:23:20.696: got unmount for unknown desktop item

** (pcmanfm:672): WARNING **: 14:23:20.696: got unmount for unknown desktop item

In my case the funny thing is that although the root FS seems ext4 I keep getting

    write(2, "\n** (pcmanfm:672): WARNING **: 2"..., 82) = -1 EFBIG ...

when looking at the strace output of the pcmanfm process. Any new on how to avoid this?

Revision history for this message
Elvis de Freitas Souza (edigitalb) wrote :

It filled all my disk, when I checked it was about 50gb!

I used the following hack to fix the problem for now, removed the write permission for all users

chmod a= ~/.cache/lxsession/Lubuntu/run.log

ls -lha ~/.cache/lxsession/Lubuntu/run.log
---------- 1 typer typer 17K nov 23 21:47 /home/typer/.cache/lxsession/Lubuntu/run.log

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.