Article View: gnu.emacs.bug
Article #87973Memory leak at frame creation/deletion
From: Bertil Askelid 66781
Date: Fri, 19 Aug 1994 00:44
Date: Fri, 19 Aug 1994 00:44
46 lines
2421 bytes
2421 bytes
I ran the following test in a bare bones Emacs in lisp-interaction-mode:
(defun MemoryTest (&optional max)
(interactive "nNumber of frames: ")
(let ((i -1) (m (memory-limit)))
(while (< (setq i (1+ i)) max)
(switch-to-buffer-other-frame (int-to-string i)) (delete-frame))
(message (concat "Memory usage: " (int-to-string (- (memory-limit) m))))))
MemoryTest
(memory-limit)
3224
(MemoryTest 100)
"Memory usage: 7208"
(memory-limit)
10488
(MemoryTest 100)
(memory-limit)
16476
As you can see, I didn't even get the last frames created. Instead, I
got the following:
Warning: memory in use exceeds lisp pointer size
Killing some buffers may delay running out of memory.
However, certainly by the time you receive the 95% warning,
you should clean up, kill this Emacs, and start a new one.
P.S.
Installation information:
Emacs 19.25 / Sparc IPX / SunOs 4.1.3_U1 / X11r5 patchlevel 26 / gcc-2.5.8
./configure sparc-sun-sunos4.1.3 --with-x11 --x-includes=/pub/X11r5/include --x-libraries=/pub/X11r5/lib --with-x-toolkit --with-gcc --prefix=/pub/gnu
make CFLAGS=-O2 LDFLAGS=-s
./src/keyboard.c patched to solve delayed character refresh when
running X and having "(standard-display-european 1)".
./lisp/files.el:insert-directory patched to handle "{}" in dired
when having shell-file-name set to "csh" or "tcsh".
Technical Details
Message-ID:
<199408190043.RAA21253@proton.ebu.ericsson.se>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ebu.ericsson.SE!ebubraShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,2b38eb59bbecd5ac,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-18 18:22:19 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ebu.ericsson.SE!ebubra From: ebubra@ebu.ericsson.SE (Bertil Askelid 66781) Newsgroups: gnu.emacs.bug Subject: Memory leak at frame creation/deletion Date: 18 Aug 1994 20:44:59 -0400 Organization: Ericsson GE Mobile Communications, Cypress, California Lines: 46 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199408190043.RAA21253@proton.ebu.ericsson.se> Reply-To: ebubra@ebu.ericsson.se (Bertil Askelid)