Re: Memory leak in Emacs 23.1 - SL.6.1

2011-10-25 Thread Jean-Paul Chaput
Hello Mr. Moll,

I've made a backport of Emacs 23.3 from Fedora 16 to SL 6.
I use it daily without problems so far, nevertheless I cannot
tell if it solves the problem you're facing.

If you want to uses Yum with my repository, instructions are here:
  
http://ftp.lip6.fr/pub/linux/distributions/slsoc/6x/dim/soc-release/doc/SoCrepo/

If you want to download only the Emacs packages, the
repositories contents are here:
  http://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/SRPMS/repoview/
  http://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/i386/repoview/
  http://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/x86_64/repoview/

Hope this helps.

On Mon, 2011-10-24 at 21:48 +0200, Felip Moll wrote:
 Hello all!,
 
 Recently I installed a SL6.1 Cluster with 16 nodes, slurm resource
 manager, etc.
 
 I use Emacs to edit my files as do some of the researchers of my
 investigation center.
 
 One day I detected that some daemons hunged. I discovered that the
 kernel was killing some processes because the system went out of
 memory. I couldn't reproduce the error anymore, and the thing seemed
 to occurr on very random times.
 
 Since this day, I limited with limits.conf the user stack to 15Gb. (my
 server has 16gb, and consumes normally no more than 1gb).
 
 Today, when I was doing some tasks I could see what is causing the
 problem. It's Emacs!. There seems to be a user that uses emacs and
 that does logout from his session without exiting it. The access to
 the server is done by ssh.
 
 I will try to install the latest 23.3 version with .tar.gz package but
 I like to use the Yum package if it's possible in order to keep the
 installation as clean as possible.
 
 
 Should I report it to some place?
 
 Thank you.
 Felip.
 
 Here there is the info. that I gathered:
 
 
 [root@acuario ~]# free -m
  total   used   free sharedbuffers
 cached
 Mem: 16080  15904175  0 88
 1081
 -/+ buffers/cache:  14734   1345
 Swap:16381353  16028
 
 [root@acuario ~]# uname -a
 Linux acuario 2.6.32-131.17.1.el6.x86_64 #1 SMP Wed Oct 5 17:19:54 CDT
 2011 x86_64 x86_64 x86_64 GNU/Linux
 
 [root@acuario ~]# who
 root pts/12011-10-24 21:25 (192.168.xx.xx)
 
 [root@acuario ~]# lastlog
 ...
 rrossi   pts/3halley.rmeecimne Mon Oct 24 09:30:54 +0200
 2011
 ...
 
 [root@acuario rrossi]# ps aux | grep rrossi
 rrossi   19902 13.1 85.9 14679980 14151208 ?   ROct21 605:18 emacs
 -nw acuari_configure.sh
 root 21157  0.0  0.0 103228   856 pts/1S+   21:33   0:00 grep
 rrossi
 
 [root@acuario rrossi]# du
 -chs ./kratos/cmake_build/acuari_configure.sh
 4.0K./kratos/cmake_build/acuari_configure.sh   (it is a 55 lines
 normal flat text file, I checked it with my root emacs instance and
 all went ok)
 4.0Ktotal
 
 [root@acuario ~]# emacs --version
 GNU Emacs 23.1.1
 Copyright (C) 2009 Free Software Foundation, Inc.
 GNU Emacs comes with ABSOLUTELY NO WARRANTY.
 You may redistribute copies of Emacs
 under the terms of the GNU General Public License.
 For more information about these matters, see the file named COPYING.
 
 [root@acuario ~]# lsof | grep rrossi  (the same as grep emacs)
 COMMAND PID  USER   FD  TYPE DEVICE SIZE/OFF
 NODE NAME
 emacs 19902rrossi  cwd   DIR   8,33 4096
 83886081 /home/kratos_common
 emacs 19902rrossi  rtd   DIR9,0 4096
 2 /
 emacs 19902rrossi  txt   REG9,0 11143104
 5779966 /usr/bin/emacs-23.1
 emacs 19902rrossi  mem   REG9,0   228984
 5768561 /usr/lib64/librsvg-2.so.2.26.0
 emacs 19902rrossi  mem   REG9,0   155696
 2752626 /lib64/ld-2.12.so
 emacs 19902rrossi  mem   REG9,0  1904312
 2752790 /lib64/libc-2.12.so
 emacs 19902rrossi  mem   REG9,0   141576
 2752807 /lib64/libpthread-2.12.so
 emacs 19902rrossi  mem   REG9,0   598816
 2752609 /lib64/libm-2.12.so
 emacs 19902rrossi  mem   REG9,047064
 2752595 /lib64/librt-2.12.so
 emacs 19902rrossi  mem   REG9,0   941440
 2752780 /lib64/libglib-2.0.so.0.2200.5
 emacs 19902rrossi  mem   REG9,088240
 2752794 /lib64/libz.so.1.2.3
 emacs 19902rrossi  mem   REG9,0   283584
 2752597 /lib64/libgobject-2.0.so.0.2200.5
 emacs 19902rrossi  mem   REG9,0   109808
 2752599 /lib64/libresolv-2.12.so
 emacs 19902rrossi  mem   REG9,0   268200
 2752880 /lib64/libdbus-1.so.3.4.0
 emacs 19902rrossi  mem   REG9,0   411200
 5773480 /usr/lib64/libtiff.so.3.9.4
 emacs 19902rrossi  mem   REG9,0   112856
 5770325 /usr/lib64/libxcb.so.1.1.0
 emacs 19902rrossi  mem   REG9,0

Re: Memory leak in Emacs 23.1 - SL.6.1

2011-10-25 Thread Stephan Wiesand
Hello Felip,

On Oct 24, 2011, at 21:48, Felip Moll wrote:

 Recently I installed a SL6.1 Cluster with 16 nodes, slurm resource manager, 
 etc.
 
 I use Emacs to edit my files as do some of the researchers of my 
 investigation center.
 
 One day I detected that some daemons hunged. I discovered that the kernel was 
 killing some processes because the system went out of memory. I couldn't 
 reproduce the error anymore, and the thing seemed to occurr on very random 
 times.
 
 Since this day, I limited with limits.conf the user stack to 15Gb. (my server 
 has 16gb, and consumes normally no more than 1gb).
 
 Today, when I was doing some tasks I could see what is causing the problem. 
 It's Emacs!. There seems to be a user that uses emacs and that does logout 
 from his session without exiting it. The access to the server is done by ssh.
 
 I will try to install the latest 23.3 version with .tar.gz package but I like 
 to use the Yum package if it's possible in order to keep the installation as 
 clean as possible.
 
 Should I report it to some place?

it seems someone else already has: 
https://bugzilla.redhat.com/show_bug.cgi?id=732157

There's a proposed patch attached to that BZ.

Regards,
Stephan


-- 
Stephan Wiesand
DESY -DV-
Platanenallee 6
15738 Zeuthen, Germany


Re: Memory leak in Emacs 23.1 - SL.6.1

2011-10-25 Thread Felip Moll
Thanks to all!

I didn't search very well into the bugs database. Sorry.

Jean-Paul, I took a look to your repos but I didn't find any emacs package.
I can only see:

   - 
emacs-doxymacshttp://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/SRPMS/repoview/emacs-doxymacs.html-
Doxygen
   add-on for Emacs/XEmacs
   - 
emacs-w3http://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/SRPMS/repoview/emacs-w3.html-
W3
   package for Emacs


   - 
emacs-sdcchttp://ftp.lip6.fr/pub/linux/distributions/slsoc/soc/x86_64/repoview/emacs-sdcc.html-
Emacs
   extensions for SDCC


But no emacs and emacs-common package.

Best regards.
Felip

2011/10/25 Stephan Wiesand stephan.wies...@desy.de

 Hello Felip,

 On Oct 24, 2011, at 21:48, Felip Moll wrote:

  Recently I installed a SL6.1 Cluster with 16 nodes, slurm resource
 manager, etc.
 
  I use Emacs to edit my files as do some of the researchers of my
 investigation center.
 
  One day I detected that some daemons hunged. I discovered that the kernel
 was killing some processes because the system went out of memory. I couldn't
 reproduce the error anymore, and the thing seemed to occurr on very random
 times.
 
  Since this day, I limited with limits.conf the user stack to 15Gb. (my
 server has 16gb, and consumes normally no more than 1gb).
 
  Today, when I was doing some tasks I could see what is causing the
 problem. It's Emacs!. There seems to be a user that uses emacs and that does
 logout from his session without exiting it. The access to the server is done
 by ssh.
 
  I will try to install the latest 23.3 version with .tar.gz package but I
 like to use the Yum package if it's possible in order to keep the
 installation as clean as possible.
 
  Should I report it to some place?

 it seems someone else already has:
 https://bugzilla.redhat.com/show_bug.cgi?id=732157

 There's a proposed patch attached to that BZ.

 Regards,
Stephan


 --
 Stephan Wiesand
 DESY -DV-
 Platanenallee 6
 15738 Zeuthen, Germany



Re: Memory leak in Emacs 23.1 - SL.6.1

2011-10-25 Thread Stephan Wiesand
On Oct 25, 2011, at 15:36, Felip Moll wrote:

 Thanks to all!
 
 I didn't search very well into the bugs database. Sorry.
 
 Jean-Paul, I took a look to your repos but I didn't find any emacs package. I 
 can only see:
   • emacs-doxymacs - Doxygen add-on for Emacs/XEmacs
   • emacs-w3 - W3 package for Emacs
   • emacs-sdcc - Emacs extensions for SDCC
 
 But no emacs and emacs-common package.

I built packages with the proposed fix from BZ. It seems to work, and fix the 
issue. If you're interested even though they had no real testing, find them in 
http://www-zeuthen.desy.de/~wiesand/SL6/emacs/

Regards,
Stephan

 Best regards.
 Felip
 
 2011/10/25 Stephan Wiesand stephan.wies...@desy.de
 Hello Felip,
 
 On Oct 24, 2011, at 21:48, Felip Moll wrote:
 
  Recently I installed a SL6.1 Cluster with 16 nodes, slurm resource manager, 
  etc.
 
  I use Emacs to edit my files as do some of the researchers of my 
  investigation center.
 
  One day I detected that some daemons hunged. I discovered that the kernel 
  was killing some processes because the system went out of memory. I 
  couldn't reproduce the error anymore, and the thing seemed to occurr on 
  very random times.
 
  Since this day, I limited with limits.conf the user stack to 15Gb. (my 
  server has 16gb, and consumes normally no more than 1gb).
 
  Today, when I was doing some tasks I could see what is causing the problem. 
  It's Emacs!. There seems to be a user that uses emacs and that does logout 
  from his session without exiting it. The access to the server is done by 
  ssh.
 
  I will try to install the latest 23.3 version with .tar.gz package but I 
  like to use the Yum package if it's possible in order to keep the 
  installation as clean as possible.
 
  Should I report it to some place?
 
 it seems someone else already has: 
 https://bugzilla.redhat.com/show_bug.cgi?id=732157
 
 There's a proposed patch attached to that BZ.

-- 
Stephan Wiesand
DESY -DV-
Platanenallee 6
15738 Zeuthen, Germany


Re: Memory leak in Emacs 23.1 - SL.6.1

2011-10-25 Thread Jean-Paul Chaput
Hello Felip,

I'm very ashamed. They are now...
Though, they will not contains the BZ patch for 23.1, but maybe
it was no longer needed.

Best regards.

On Tue, 2011-10-25 at 15:36 +0200, Felip Moll wrote:
 Thanks to all!
 
 I didn't search very well into the bugs database. Sorry.
 
 Jean-Paul, I took a look to your repos but I didn't find any emacs
 package. I can only see:
   * emacs-doxymacs - Doxygen add-on for Emacs/XEmacs 
   * emacs-w3 - W3 package for Emacs
   * emacs-sdcc - Emacs extensions for SDCC 
 
 But no emacs and emacs-common package.
 
 Best regards.
 Felip
 
 2011/10/25 Stephan Wiesand stephan.wies...@desy.de
 Hello Felip,
 
 On Oct 24, 2011, at 21:48, Felip Moll wrote:
 
  Recently I installed a SL6.1 Cluster with 16 nodes, slurm
 resource manager, etc.
 
  I use Emacs to edit my files as do some of the researchers
 of my investigation center.
 
  One day I detected that some daemons hunged. I discovered
 that the kernel was killing some processes because the system
 went out of memory. I couldn't reproduce the error anymore,
 and the thing seemed to occurr on very random times.
 
  Since this day, I limited with limits.conf the user stack to
 15Gb. (my server has 16gb, and consumes normally no more than
 1gb).
 
  Today, when I was doing some tasks I could see what is
 causing the problem. It's Emacs!. There seems to be a user
 that uses emacs and that does logout from his session without
 exiting it. The access to the server is done by ssh.
 
  I will try to install the latest 23.3 version with .tar.gz
 package but I like to use the Yum package if it's possible in
 order to keep the installation as clean as possible.
 
  Should I report it to some place?
 
 
 it seems someone else already has:
 https://bugzilla.redhat.com/show_bug.cgi?id=732157
 
 There's a proposed patch attached to that BZ.
 
 Regards,
Stephan
 
 
 --
 Stephan Wiesand
 DESY -DV-
 Platanenallee 6
 15738 Zeuthen, Germany
 

-- 
  .-. J e a n - P a u l   C h a p u t  /  Administrateur Systeme
  /v\ jean-paul.cha...@lip6.fr
/(___)\   work: (33) 01.44.27.53.99  
 ^^ ^^cell:  06.66.25.35.55   home: 01.47.46.01.31

U P M C   Universite Pierre  Marie Curie
L I P 6   Laboratoire d'Informatique de Paris VI
S o C System On Chip


Memory leak in Emacs 23.1 - SL.6.1

2011-10-24 Thread Felip Moll
Hello all!,

Recently I installed a SL6.1 Cluster with 16 nodes, slurm resource manager,
etc.

I use Emacs to edit my files as do some of the researchers of my
investigation center.

One day I detected that some daemons hunged. I discovered that the kernel
was killing some processes because the system went out of memory. I couldn't
reproduce the error anymore, and the thing seemed to occurr on very random
times.

Since this day, I limited with limits.conf the user stack to 15Gb. (my
server has 16gb, and consumes normally no more than 1gb).

Today, when I was doing some tasks I could see what is causing the problem.
It's Emacs!. There seems to be a user that uses emacs and that does logout
from his session without exiting it. The access to the server is done by
ssh.

I will try to install the latest 23.3 version with .tar.gz package but I
like to use the Yum package if it's possible in order to keep the
installation as clean as possible.


Should I report it to some place?

Thank you.
Felip.

Here there is the info. that I gathered:


[root@acuario ~]# free -m
 total   used   free sharedbuffers cached
Mem: 16080  15904175  0 88   1081
-/+ buffers/cache:  14734   1345
Swap:16381353  16028

[root@acuario ~]# uname -a
Linux acuario 2.6.32-131.17.1.el6.x86_64 #1 SMP Wed Oct 5 17:19:54 CDT 2011
x86_64 x86_64 x86_64 GNU/Linux

[root@acuario ~]# who
root pts/12011-10-24 21:25 (192.168.xx.xx)

[root@acuario ~]# lastlog
...
rrossi   pts/3halley.rmeecimne Mon Oct 24 09:30:54 +0200 2011
...

[root@acuario rrossi]# ps aux | grep rrossi
rrossi   19902 13.1 85.9 14679980 14151208 ?   ROct21 605:18 emacs -nw
acuari_configure.sh
root 21157  0.0  0.0 103228   856 pts/1S+   21:33   0:00 grep rrossi

[root@acuario rrossi]# du -chs ./kratos/cmake_build/acuari_configure.sh
4.0K./kratos/cmake_build/acuari_configure.sh   (it is a 55 lines normal
flat text file, I checked it with my root emacs instance and all went ok)
4.0Ktotal

[root@acuario ~]# emacs --version
GNU Emacs 23.1.1
Copyright (C) 2009 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

[root@acuario ~]# lsof | grep rrossi  (the same as grep emacs)
COMMAND PID  USER   FD  TYPE DEVICE SIZE/OFF
NODE NAME
emacs 19902rrossi  cwd   DIR   8,33 4096
83886081 /home/kratos_common
emacs 19902rrossi  rtd   DIR9,0
4096  2 /
emacs 19902rrossi  txt   REG9,0 11143104
5779966 /usr/bin/emacs-23.1
emacs 19902rrossi  mem   REG9,0   228984
5768561 /usr/lib64/librsvg-2.so.2.26.0
emacs 19902rrossi  mem   REG9,0   155696
2752626 /lib64/ld-2.12.so
emacs 19902rrossi  mem   REG9,0  1904312
2752790 /lib64/libc-2.12.so
emacs 19902rrossi  mem   REG9,0   141576
2752807 /lib64/libpthread-2.12.so
emacs 19902rrossi  mem   REG9,0   598816
2752609 /lib64/libm-2.12.so
emacs 19902rrossi  mem   REG9,047064
2752595 /lib64/librt-2.12.so
emacs 19902rrossi  mem   REG9,0   941440
2752780 /lib64/libglib-2.0.so.0.2200.5
emacs 19902rrossi  mem   REG9,088240
2752794 /lib64/libz.so.1.2.3
emacs 19902rrossi  mem   REG9,0   283584
2752597 /lib64/libgobject-2.0.so.0.2200.5
emacs 19902rrossi  mem   REG9,0   109808
2752599 /lib64/libresolv-2.12.so
emacs 19902rrossi  mem   REG9,0   268200
2752880 /lib64/libdbus-1.so.3.4.0
emacs 19902rrossi  mem   REG9,0   411200
5773480 /usr/lib64/libtiff.so.3.9.4
emacs 19902rrossi  mem   REG9,0   112856
5770325 /usr/lib64/libxcb.so.1.1.0
emacs 19902rrossi  mem   REG9,013168
5772993 /usr/lib64/libXau.so.6.0.0
emacs 19902rrossi  mem   REG9,0   166840
2752803 /lib64/libexpat.so.1.5.2
emacs 19902rrossi  mem   REG9,0   644752
5770324 /usr/lib64/libfreetype.so.6.3.22
emacs 19902rrossi  mem   REG9,0   159728
5771050 /usr/lib64/libpng12.so.0.46.0
emacs 19902rrossi  mem   REG9,0   223040
5769852 /usr/lib64/libfontconfig.so.1.4.4
emacs 19902rrossi  mem   REG9,0   132464
5773317 /usr/lib64/libatk-1.0.so.0.2809.1
emacs 19902rrossi  mem   REG9,0   400528
5769962 /usr/lib64/libpixman-1.so.0.18.4
emacs 19902rrossi  mem   REG9,078848
5779139 /usr/lib64/libotf.so.0.0.0
emacs