[Bug 786730] Re: emacs spins when ssh is uncleanly terminated

2012-05-08 Thread Brian Gernhardt
While it's lovely that it's fixed in 12.04, 10.04 is supposed to be
supported on the desktop for another year and on servers for another
three.  I don't find Upgrade to the newest Ubuntu to be a nice
solution for a bug in an LTS package.

My first comment (#2) includes a link to the patch from emacs that fixes
this issue.  Why can't it just be applied to emacs23 for 10.04?

I hate to be a pain about this, but it's likely to take some time to
update the machines I have to administer to a new version of Ubuntu and
having to check all the machines periodically for spinning emacs is
getting old.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/786730

Title:
  emacs spins when ssh is uncleanly terminated

To manage notifications about this bug go to:
https://bugs.launchpad.net/emacs/+bug/786730/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 786730] Re: emacs spins when ssh is uncleanly terminated

2012-05-08 Thread Brian Gernhardt
** Description changed:

- Binary package hint: emacs23
+ (Description updated by Brian Gernhardt)
  
- On several systems that I maintain, we occasionally see user's emacs
- processes that are using 100% of a CPU, usually when that user is not
- even logged in.  Some follow-up with the users seems to indicate that
- this can happen when emacs is running in an ssh session, and ssh is
- terminated uncleanly.
+ When emacs is running in an ssh session and ssh is terminated uncleanly,
+ it begins to use 100% CPU and slowly but constantly increase its used
+ memory.
  
- I have been able to reproduce this somewhat-reliably (say, one time in
- five) by starting emacs, entering M-x shell, running 'yes', and then
- using the ssh escape ~. to end my session.  The emacs process lives,
- continuing to use CPU (and consume more memory, which is presumably tied
- to my test case continuing to produce output to an emacs buffer).  I
- have obtained a core file for such a process by attaching to it with gdb
- and using the 'gcore' command, but my build with DEB_BUILD_OPTIONS=debug
- does not seem to have preserved debug symbols (I guess I need nostrip as
- well?), so it's unclear how useful it is.  (It's also 700M, due to the
- aforementioned RAM usage ballooning.)
+ [Impact]
  
- I looked at the NEWS file for upstream emacs 23.2 and 23.3 and didn't
- see anything that looked relevant to this issue, so I suspect it's still
- a problem.
+ In a department with approximately 50 desktops, one publicly accessible
+ server, and a couple hundred users, I have to kill on average one emacs
+ process a day.  If left alone, those processes not only slow down the
+ machine (by using up CPU time) but also eventually trigger the OOM
+ killer when their memory usage exceeds the amount of available swap
+ space.
  
- My testing has been done on:
- root@caspian:~# uname -a
- Linux caspian 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 
x86_64 GNU/Linux
- root@caspian:~# lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description:Ubuntu 10.04.1 LTS
- Release:10.04
- Codename:   lucid
+ Unfortunately, the Linux OOM killer is not 100% accurate at removing the
+ cause and I have seen other long-running high-memory processes.  While I
+ have heard no complaints about data loss, it is possible.
  
- And I've been using the source package version 23.1+1-4ubuntu7.2
+ [Development Fix]
+ 
+ Newer versions of Ubuntu have fixed this problem by having newer
+ versions of emacs.  The issue was fixed in 23.2a, so all Ubuntu packages
+  23.2 are fixed.
+ 
+ [Stable Fix]
+ 
+ The fix from emacs applies cleanly to the source for 23.1 and can be
+ found in their git repository:
+ 
http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=1857569af70493e9dcd446c8bfb029096b355593
+ 
+ [Test Case]
+ 
+ 1) ssh to localhost
+ 2) start emacs
+ 3) Control-Z
+ 4) Enter, tilde, period (to kill the SSH session)
+ 5) emacs starts spinning and eating memory (verified by top)
+ 
+ [Regression Portential]
+ 
+ Given that the fix only affects emacs when it is exiting, it is unlikely
+ to cause any user regressions.

** Description changed:

- (Description updated by Brian Gernhardt)
- 
  When emacs is running in an ssh session and ssh is terminated uncleanly,
  it begins to use 100% CPU and slowly but constantly increase its used
  memory.
  
  [Impact]
  
  In a department with approximately 50 desktops, one publicly accessible
  server, and a couple hundred users, I have to kill on average one emacs
  process a day.  If left alone, those processes not only slow down the
  machine (by using up CPU time) but also eventually trigger the OOM
  killer when their memory usage exceeds the amount of available swap
  space.
  
  Unfortunately, the Linux OOM killer is not 100% accurate at removing the
  cause and I have seen other long-running high-memory processes.  While I
  have heard no complaints about data loss, it is possible.
  
  [Development Fix]
  
  Newer versions of Ubuntu have fixed this problem by having newer
  versions of emacs.  The issue was fixed in 23.2a, so all Ubuntu packages
   23.2 are fixed.
  
  [Stable Fix]
  
  The fix from emacs applies cleanly to the source for 23.1 and can be
  found in their git repository:
  
http://git.savannah.gnu.org/cgit/emacs.git/patch/?id=1857569af70493e9dcd446c8bfb029096b355593
  
  [Test Case]
  
  1) ssh to localhost
  2) start emacs
  3) Control-Z
  4) Enter, tilde, period (to kill the SSH session)
  5) emacs starts spinning and eating memory (verified by top)
  
  [Regression Portential]
  
  Given that the fix only affects emacs when it is exiting, it is unlikely
  to cause any user regressions.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/786730

Title:
  emacs spins when ssh is uncleanly terminated

To manage notifications about this bug go to:
https

[Bug 786730] Re: emacs spins when ssh is uncleanly terminated

2012-05-08 Thread Brian Gernhardt
Marius:  I know how to perform the updates, but there are logistical
problems too.  Thanks for pointing out the SRU procedure.  I updated the
description to match the requested sections.  The next step is to Ask a
bug supervisor to nominate for the appropriate Ubuntu releases, which I
don't know how to do.  (Other than ask here and on #ubuntu-bugs, which
I've now done.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/786730

Title:
  emacs spins when ssh is uncleanly terminated

To manage notifications about this bug go to:
https://bugs.launchpad.net/emacs/+bug/786730/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 786730] Re: emacs spins when ssh is uncleanly terminated

2011-11-10 Thread Brian Gernhardt
I don't know how to draw more attention to this bug but I would say that
I'd classify it as serious.  Emacs ends up silently consuming memory in
the background until the out of memory killer is triggered.  And the OOM
killer doesn't always kill emacs, it sometimes kills other long running
processes which can lead to data loss.  I have to work on machines on
LTS and I'd really appreciate this patch being applied in lucid-updates.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/786730

Title:
  emacs spins when ssh is uncleanly terminated

To manage notifications about this bug go to:
https://bugs.launchpad.net/emacs/+bug/786730/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 786730] Re: emacs spins when ssh is uncleanly terminated

2011-10-03 Thread Brian Gernhardt
100% reliable method of reproducing on my 10.4 machine:

1) ssh to  localhost
2) start emacs
3) Control-Z
4) Enter, tilde, period (to kill the SSH session)
5) emacs starts spinning and eating memory

emacs bug reports:
http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=4970
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7951

The fix was included in 23.2a, but the patch applies cleanly to 23.1 as well.
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-23id=1857569af70493e9dcd446c8bfb029096b355593

** Bug watch added: debbugs.gnu.org #4970
   http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=4970

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/786730

Title:
  emacs spins when ssh is uncleanly terminated

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 90085] Re: When /tmp is mounted noexec, preconfigure fails

2011-01-14 Thread Brian Gernhardt
In shared hosting environments, even root may not have control over
mount points, so Don't do that and noexec is useless are not useful
replies.

  APT::ExtractTemplates::TempDir /var/tmp;

Is useful, however.  Thank you, Hans.  (In my case, /var/tmp is also
noexec, but I can set it to something else completely.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/90085

Title:
  When /tmp is mounted noexec, preconfigure fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632984] Re: libwx_gtk2u_media-2.8.so.0 missing from libwxgtk2.8-0

2010-10-26 Thread Brian Gernhardt
Debian removed --enable-mediactl in 2.8.10.1-1, to close Debian bug
#493090 (libwxgtk2.8-0: unwanted dependency on libgconf) and remove wx's
dependency on gconf.  Fair enough, but they really should have provided
a wxmedia package instead of just removing it.  :-(

-- 
libwx_gtk2u_media-2.8.so.0 missing from libwxgtk2.8-0
https://bugs.launchpad.net/bugs/632984
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 632984] Re: libwx_gtk2u_media-2.8.so.0 missing from libwxgtk2.8-0

2010-10-16 Thread Brian Gernhardt
This also keeps the wxruby gem from running.

-- 
libwx_gtk2u_media-2.8.so.0 missing from libwxgtk2.8-0
https://bugs.launchpad.net/bugs/632984
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs