unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Memory leak
@ 2008-05-15 22:50 Stefan Monnier
  2008-05-15 23:06 ` David Kastrup
                   ` (2 more replies)
  0 siblings, 3 replies; 53+ messages in thread
From: Stefan Monnier @ 2008-05-15 22:50 UTC (permalink / raw)
  To: emacs-devel

We have a pretty serious memory leak.
My Emacs session recently died with a memory full situation (the
process was around 500MB VSZ).  So I took a look around and it seem that
every time I create a new frame, my Emacs session grows by around 10MB
and deleting the frame does not recover this memory.
This memory is not accounted for by the counts returned by
`garbage-collect'.

I'm not sure when this problem got introduced, tho the new font code is
a likely culprit.


        Stefan




^ permalink raw reply	[flat|nested] 53+ messages in thread
* memory leak
@ 2008-05-30 22:39 Drew Adams
  2008-05-31  7:57 ` David Kastrup
  0 siblings, 1 reply; 53+ messages in thread
From: Drew Adams @ 2008-05-30 22:39 UTC (permalink / raw)
  To: emacs-devel

Dunno if this helps at all - I haven't been able to track it down.

I get warnings and then emergency messages saying that Emacs is running out of
memory, after just a few minutes of use. If I don't exit when I first get the
emergency messages, then I end up needing to kill Emacs from outside.

GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-05-29 on LENNART-69DE564

[It also takes a long time for Emacs 23 to start up. With emacs -Q, it takes
15-30 seconds. But sometimes it starts immediately. I don't get why it's not
regular, but that seems to be the behavior.]





^ permalink raw reply	[flat|nested] 53+ messages in thread
* Re: Memory leak
@ 2008-05-24 23:02 Nick Roberts
  0 siblings, 0 replies; 53+ messages in thread
From: Nick Roberts @ 2008-05-24 23:02 UTC (permalink / raw)
  To: emacs-devel


I'm joining the thread a bit late but anyway:

Instead of Valgrind, which has been shown to be unsuitable several times, how
about using Coverity to identify the source of the memory leak(s)?  

Ben Chelf the CTO for Coverity said "we have set up a framework internally to
continually scan open source projects" and I have the impression that they
scan the most recent Emacs source, or at least can.

Is anyone still signed up to access their reports?  If not, is it worth
approaching them again?

-- 
Nick                                           http://www.inet.net.nz/~nickrob




^ permalink raw reply	[flat|nested] 53+ messages in thread
* memory leak
@ 2006-04-28 17:51 Robert J. Chassell
  2006-04-28 18:10 ` Andreas Schwab
  2006-04-29  1:56 ` Luc Teirlinck
  0 siblings, 2 replies; 53+ messages in thread
From: Robert J. Chassell @ 2006-04-28 17:51 UTC (permalink / raw)
  Cc: bob

Can anyone else reproduce a memory leak in the current CVS GNU/Emacs?

Debian GNU/Linux, testing, updated this morning
one root console running, one user console running an X windows session

X windows
Enlightenment window manager

Four instances of 
today's GNU Emacs CVS snapshot, Fri, 2006 Apr 28  09:59 UTC
GNU Emacs 22.0.50.64 (i686-pc-linux-gnu, GTK+ Version 2.6.8)
started with

     /usr/local/src/emacs/src/emacs -Q -D

No other instances of Emacs.  During the time of the measurement, I
did nothing with the computer.

These instances of GNU Emacs appear to consume RAM at a rate of 124 kb/min.

How I did it: after instantiating four plain vanilla instances of GNU
Emacs from today's CVS, I recorded the total active memory and then
did that again 10.5 minutes later.

The total active memory comes from `free, and is `used' minus the sum
of `shared, buffers, and cached.  (There was no change in swap size.)

(This is on the usual computer I work with, so it is really painful
getting rid of the instances I use, generally three as a plain user
and two as root; I tend to keep those running for days.)

-- 
    Robert J. Chassell                         
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2008-05-31  7:57 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 22:50 Memory leak Stefan Monnier
2008-05-15 23:06 ` David Kastrup
2008-05-16  0:25   ` Lennart Borgman (gmail)
2008-05-16  8:35     ` Eli Zaretskii
2008-05-16  9:03       ` Juanma Barranquero
2008-05-16  9:25         ` Eli Zaretskii
2008-05-16  9:29           ` Juanma Barranquero
2008-05-16  9:46             ` Eli Zaretskii
2008-05-16  9:49             ` Juanma Barranquero
2008-05-16 20:13               ` Stephen J. Turnbull
2008-05-16 21:15                 ` [OT, silly] " Thomas Lord
2008-05-16 20:41           ` David Robinow
2008-05-16 21:36             ` Lennart Borgman (gmail)
2008-05-17  7:10             ` Eli Zaretskii
2008-05-16  9:43     ` Eli Zaretskii
2008-05-16 12:50       ` Jason Rumney
2008-05-19  8:05         ` Kenichi Handa
2008-05-19  8:45           ` YAMAMOTO Mitsuharu
2008-05-19 11:13             ` Kenichi Handa
2008-05-19 11:59               ` YAMAMOTO Mitsuharu
2008-05-23  2:24                 ` Kenichi Handa
2008-05-19 13:34           ` David Hansen
2008-05-19 19:42             ` David Hansen
2008-05-24  2:30         ` calculation of text extents [Re: Memory leak] Kenichi Handa
2008-05-16  2:19   ` Memory leak Stefan Monnier
2008-05-16  0:38 ` YAMAMOTO Mitsuharu
2008-05-17 15:16 ` Evil Boris
2008-05-17 19:11   ` Stephen J. Turnbull
2008-05-17 19:17     ` Eric Hanchrow
2008-05-18 11:26       ` Jan Djärv
2008-05-18 11:29         ` David Kastrup
2008-05-20  6:46           ` Jan Djärv
2008-05-18 13:34         ` Werner LEMBERG
2008-05-20  6:48           ` Jan Djärv
2008-05-19  2:44         ` Stephen J. Turnbull
2008-05-20  6:50           ` Jan Djärv
2008-05-21  6:10             ` Stephen J. Turnbull
2008-05-21 17:32               ` Stefan Monnier
2008-05-23 13:54   ` Evil Boris
  -- strict thread matches above, loose matches on Subject: below --
2008-05-30 22:39 memory leak Drew Adams
2008-05-31  7:57 ` David Kastrup
2008-05-24 23:02 Memory leak Nick Roberts
2006-04-28 17:51 memory leak Robert J. Chassell
2006-04-28 18:10 ` Andreas Schwab
2006-04-28 20:25   ` Robert J. Chassell
2006-04-29  1:56 ` Luc Teirlinck
2006-04-29 11:16   ` Robert J. Chassell
2006-04-29 14:06     ` Luc Teirlinck
2006-04-29 16:41       ` Robert J. Chassell
2006-04-29 17:07         ` Luc Teirlinck
2006-04-29 19:32           ` Robert J. Chassell
2006-04-30  3:03     ` Richard Stallman
2006-04-30  4:15       ` Luc Teirlinck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).