[01:39] I wonder what the right thing to do with bug 671837 is [01:39] Launchpad bug 671837 in xorg-server (Ubuntu) "Xorg crashes due to known bug in Xinerama code (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/671837 [01:40] it references an upstream mailing list (not a bug report though) and points to a patch [01:45] hmm bed [08:49] may I describe a problem and someone tell me how to best describe it for a bug report [08:50] I have images of the issue as well === yofel_ is now known as yofel === AbhiJit is now known as Guest27905 === AbhiJit_ is now known as AbhiJit [15:12] Trying to draw a little attention to my somewhat humerous yet rather damaging bug. [15:12] bug #661494 [15:12] Launchpad bug 661494 in x11-apps (Ubuntu) "Request to limit xinit writes to .xsession-errors to some reasonable value, such as 10 megs (affects: 1) (heat: 157)" [Undecided,New] https://launchpad.net/bugs/661494 [15:12] wondering if I could get one of the good folk of this channel to look it over, maybe, dunno, say whether the idea has merit [15:16] * penguin42 looks [15:16] hehe, 373G that might be a record [15:17] indeed, at least I haven't yet seen another report with a file >100GiB yet [15:18] nemo: So I've seen the same thing happen many times - I used to admin a ~100 person network with peoples ~ on NFS, and filling up /home due to .xsession-errors was a common screw up [15:19] penguin42: but. yeah. why on earth isn't this piped to head or a rolling log appender? [15:19] seems like a trivial fix [15:19] penguin42: if the log really overshot, say, 10 megs, it probably shouldn't be growing more anyway [15:19] it isn't like the information in it is critical [15:20] or 20 megs or 40. whatever [15:20] ... or a percentage of the disc that $HOME is on... [15:20] or /home :) [15:21] nemo: if it seems like a trivial fix and still it isn't fixed then it probably isn' trivial after all ;) [15:22] kklimonda_: quite possibly, but then it should be easy to shoot down the trivial fix :) [15:22] hm [15:22] I guess I could make some headway by, oh, trying head -c on my local system [15:22] nemo: I do remember that at some point it was limited - after some time no new messages were logged. And it was terrible ;) [15:22] kklimonda_: depends on what it was limited to [15:22] in a normal session, it'll never get more than a few megs [15:22] but if the limit is set high, then if it hits it, you're probably glad it did [15:23] as I would have been [15:23] but. ok. lemme test my trivial solution w/ a ceiling of, oh, 50 megs === JoeSett is now known as JoeMaverickSett [15:30] kklimonda_: a rolling log app would avoid the halting errors prob of course, since it could just keep .xsession-errors and .xession-errors.1.gz etc w/ a few copies [15:30] nemo: sure but X would have to support it [15:30] why? [15:30] this is outside of X [15:30] nemo: well, actually the application that does log it there [15:30] unless you mean as a dependancy in ubuntu [15:30] exec >"$ERRFILE" 2>&1 [15:30] vs [15:31] exec 2>&1 | head -c 5000000 > "$ERRFILE" [15:31] or [15:31] exec 2>&1 | rollinglogfile "$ERRFILE" [15:31] Xsession is only run once right? [15:31] $ rollinglogfile [15:31] rollinglogfile: command not found [15:31] :P [15:31] kklimonda_: smartass [15:32] kklimonda_: I'm sure they exist, and not just as generic logging mechanisms [15:32] worse to worse, could use one of those [15:32] probably, someone should investigate :) [15:32] well. I'm trying head -c 50000000 right now :) [15:33] if *that* works it'd already be a lot less evil to users [15:34] kklimonda_: hm. there's some truncation code in there now, but looks like it is just called on starting a new exec [15:34] well, /etc/X11/Xsession has a DoS protection currently... but the way it's done it's pointless if it gets run just once (line 77ff in maverick) [15:34] doesn't limit the existing session [15:34] yofel: yeah. reading that [15:35] yofel: and is much more aggressive than me. limits to only 500000 [15:35] right [15:35] so clearly 5 megs or 50 megs is a generous sanity [15:35] limit [15:37] nemo: doing a log rotate type of thing might work [15:38] head -c 5000000 seems to be working fine too :) [15:38] I'll put it on all my systems [15:38] but [15:38] it'd be nice to not have to merge it [15:39] oh well. just trying to get some visibility. and yes, 373 gigs is extreme [15:39] what is alarming is how easily it happened [15:40] and the result basically shut down the system for that user [15:40] nemo: Yeh it only takes one app to go nuts [15:40] penguin42: hell. someone could possibly do it w/ a web browser. plugins and such sometimes write to err [15:40] I could DOS an ubuntu user remotely [15:40] if I was clever [15:41] and I got them to hang out on my page long enough [15:41] nemo: There are some related problems 1) It's difficult to tell what actually wrote into the log and 2) No one really takes care to clean apps up so they don't normally [15:41] I think webgl still does a bit of error spam in some situations, that would avoid even needing to load a plugin :) [15:41] well, "a bit of error spam" isn't bad [15:41] penguin42: well. those are more usability. I'd just like to not have it kill my systems by accident ;) [15:42] the Oracle Installer is an extreme case [15:42] kklimonda_: I've seen lots of other things do similar [15:42] penguin42: oh? that's the only app I've seen doing that :) [15:42] some do spam a lot [15:42] but not nearly enough [15:43] for it to be a concern (enter fail) ;) [15:43] well [15:43] let me check what gets written in firefox on plugin / webgl activation [15:43] I bet I could whip up a page that is malicious [15:43] w/o it using too much CPU [15:43] nemo: can you give me the *exact* syntax of exec you want to use? (the one with head) [15:43] hell. noscript writes to stderr [15:44] yofel: can show you what I'm testing in my VM right now, sure [15:44] nemo: but that would require you to have a malicious intent. [15:44] kklimonda_: yes. but remote malicious intent [15:44] just as bad as local accidental :) [15:44] and insidious since oomkill won't pick it up and it'd persist [15:46] yofel: exec 2>&1 | head -c 50000000 >>"$ERRFILE" [15:46] yofel: the other truncation code will still work fine on restart. [15:47] .xession-errors still seemed to be written to normally [15:48] yofel: cleverer code might do a fraction of disc, but 50 megs isn't that much in this day and age. anyone really short on space might want to use /dev/null anyway :-p [15:49] hm, right, this does work, but with head the limit should be like 50MiB, some apps do put a lot of messages in there, and they rarely fail at the beginning [15:49] yofel: that *is* 50 megs [15:49] admittedly not 50MiB ;) [15:49] err, right, too many zeroes :P [15:49] but. yeah 2 orders of magnitude more than the truncation [15:51] the truncation code uses tail which is the right thing to use, but I agree that head with a sane limit would be ok to use. Won't protect against everything, but against most failures I guess [15:52] easier than hooking up a rolling appender :-p [15:52] could do that as a "later" === kyubutsu is now known as Guest18874 [22:05] http://dpaste.de/mGIK/ *** buffer overflow detected ***: tftp terminated======= Backtrace: =========/lib/libc.so.6(__fortify_fail+0x37)[0x7f29b446b527]... [22:06] whats the shell command to post the bug report to lp? [22:52] CarlFK: run 'sudo service apport start force_start=1' - crash it again and file the crash report in /var/crash with ubuntu-bug (if it hopefully catches the crash) [22:53] got it already. but thanks [22:53] np, sorry for being late [22:53] while I got you, question bout https://wiki.ubuntu.com/DebuggingProgramCrash [22:53] echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list [22:53] why not use apt-add-repository "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse [22:54] backwards compatibility I think. As far as I know hardy doesn't have add-apt-repository [22:54] k [22:55] and is there a way to do that in a preseed file that doesn't hardcode "natty"? [22:55] d-i apt-setup/local0/repository string http://ddebs.ubuntu.com natty main restricted universe multiverse [22:55] CarlFK: it uses '$(lsb_release -cs)' which will insert natty only if you run it on natty [22:55] preseed file [22:56] really an installer question than a -debug [22:56] I don't know about preseed files I fear [22:57] no prob [22:57] maybe ask in #ubuntu-installer if it's d-i specific [23:03] Can someone wishlist https://bugs.launchpad.net/ubuntu/+source/glade-3/+bug/672313 please [23:03] Launchpad bug 672313 in glade-3 (Ubuntu) "Maximized window not remembered (affects: 1) (heat: 6)" [Undecided,Opinion] === Guest18874 is now known as kyubutsu