*** This bug is a duplicate of bug 589275 ***
    https://bugs.launchpad.net/bugs/589275

So, today had an experience w/ a runaway nx client that wrote 44 gigs to
~/.gnomerc-errors in a matter of minutes.

Presumably the uniq -c approach from the prior comment would have
prevented that, although I don't know if there's a handy wrapper layer
in between.  I believe the client had a direct handle to the error file.

Just thought I'd mention in terms of sucking up disc space.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/661494

Title:
  Request to limit xinit writes to .xsession-errors to some reasonable
  value, such as 10 megs

Status in “gdm” package in Ubuntu:
  New

Bug description:
  Binary package hint: x11-apps

  Recently, I discovered a system that had been completely shut down for a 
rather ridiculous reason.
  Over a period of 21 hours, a user's .xsession-filled with the following:
  ============================
  Starting Oracle Universal Installer...
  Checking installer requirements...
  Checking operating system version: must be redhat-4, redhat-5, SuSE-9 or 
SuSE-10 Passed
  All installer requirements met.
  Checking Temp space: must be greater than 400 MB.   Actual 384320 MB    Passed
  Checking swap space: must be greater than 512 MB.   Actual 7730MB    Passed
  Checking monitor: must be configured to display at least 256 colors    Failed 
<<<<
      >>> Could not execute /usr/X11R6/bin/xdpyinfo
  Checking if CPU speed is above 300 MHz.    Actual 2992 MHz    Passed

  Some optional pre-requisite checks have failed (see above). Continue?
  (y/n) [n] Continue? (y/n) [n] Continue? (y/n) [n] Continue? (y/n) [n]
  Continue? (y/n) [n] Continue? (y/n) [n]

  ... repeat that last portion about 20 billion times, approximately
  256,000 repetitions of the phrase per second, until:

  # ls -lh .xsession-errors
  -rw------- 1 1000 1000 373G 2010-08-26 13:11 .xsession-errors

  Now.  I have looked into the history of this, and I've noted that this
  sort of thing happens periodically.  Users file a bug, and it is
  closed.

  Now, I'm aware that this is obviously the fault of misbehaving apps...
  But.
  Is there any reason this couldn't be mitigated?

  I've read elsewhere that right now the syntax for this file is xinit calling:
  exec >"$ERRFILE" 2>&1

  Could that not be changed to:
  exec 2>&1 | head -c 5000000 > "$ERRFILE"

  Or something similar?

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/661494/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to