From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Valencia Newsgroups: gmane.emacs.bugs Subject: bug#20220: severe memory leak on emacs 24.4.1 Date: Sat, 28 Mar 2015 17:39:38 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3da0a1d7661051261c3d2 X-Trace: ger.gmane.org 1427586022 28920 80.91.229.3 (28 Mar 2015 23:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 23:40:22 +0000 (UTC) To: 20220@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 29 00:40:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yc0Kq-0000Rg-5C for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Mar 2015 00:40:12 +0100 Original-Received: from localhost ([::1]:55523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0Kp-0008WJ-8L for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2015 19:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0Kk-0008Sw-3H for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yc0Ki-0003Mt-EK for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:40:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0Ki-0003MA-Bs for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yc0Kh-0006nh-OY for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mario Valencia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Mar 2015 23:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20220 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142758599626118 (code B ref -1); Sat, 28 Mar 2015 23:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Mar 2015 23:39:56 +0000 Original-Received: from localhost ([127.0.0.1]:39177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yc0KY-0006nB-Op for submit@debbugs.gnu.org; Sat, 28 Mar 2015 19:39:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52691) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yc0KV-0006mv-V6 for submit@debbugs.gnu.org; Sat, 28 Mar 2015 19:39:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yc0KO-00032X-FD for submit@debbugs.gnu.org; Sat, 28 Mar 2015 19:39:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0KO-000328-CH for submit@debbugs.gnu.org; Sat, 28 Mar 2015 19:39:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0KM-0008P1-GB for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:39:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yc0KK-0002pe-Iv for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:39:42 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:33993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yc0KK-0002l6-3d for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:39:40 -0400 Original-Received: by lagg8 with SMTP id g8so94212353lag.1 for ; Sat, 28 Mar 2015 16:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1lAEdz12r8TqNW5dZLftiM7wK435TwatWgkZjcPpthE=; b=K48g1fv3rkT4JcgUt/6+IyQ+j3bkuOjS/ERkteHQ2xdzQjvDTaPB5pDf0KWE4xlqen tEU5p+rdwZW0LxedELqTvz2swjd34P3+KzoCPqzeVRnH6tPBB6Y+oRGjc2xxERfDZ/U6 DIWpbuFtyQBGsxXay0e7etIPNeE2eAPZbzfPGdm94ylpugyxN/WFxkv4sGWHa88Ln/hb zgu4gvlPk8Gaxsrv0/pTvikOBMD18diQadF9C++MkKqhDFcV/LEsb2hojf6NPXUybeOA tzpBbooRyJeW+Mzd5wAe4sZ5pYqp+bb3bBFoAwB+N1DI0FfrKqKSfZQfxYDpiA87tyL7 R8kw== X-Received: by 10.112.159.137 with SMTP id xc9mr929844lbb.87.1427585978167; Sat, 28 Mar 2015 16:39:38 -0700 (PDT) Original-Received: by 10.112.170.130 with HTTP; Sat, 28 Mar 2015 16:39:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101007 Archived-At: --001a11c3da0a1d7661051261c3d2 Content-Type: text/plain; charset=UTF-8 to reproduce it, i create a small emtpy html document. then i evaluate the following expression: (dotimes (i 100) (browse-url-of-file)) This causes emacs to start opening the file using google chrome. In the task manager, i can see emacs' memory usage go up by about 5 megabytes each time a tab is opened. When it opens about 30 tabs, emacs is using 138 megabytes of memory, and it gives the error below. the translation is something like this: "ShellExecute failed: Storage space insufficient to process this command" My harddrive has enough storage space btw. I was able to reproduce this bug 3 times. I ran emacs with -Q on windows 8. Im using emacs version: GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Debugger entered--Lisp error: (error "ShellExecute failed: Espacio de almacenamiento insuficiente para procesar este comando.") w32-shell-execute("open" "file:///c:/Users/mario/Desktop/x.html") browse-url-default-windows-browser("file:///c:/Users/mario/Desktop/x.html" nil) apply(browse-url-default-windows-browser "file:///c:/Users/mario/Desktop/x.html" nil) browse-url-default-browser("file:///c:/Users/mario/Desktop/x.html" nil) apply(browse-url-default-browser "file:///c:/Users/mario/Desktop/x.html" nil) browse-url("file:///c:/Users/mario/Desktop/x.html") browse-url-of-file("c:/Users/mario/Desktop/x.html") browse-url-of-buffer() (while (< i --dotimes-limit--) (browse-url-of-buffer) (setq i (1+ i))) (let ((--dotimes-limit-- 100) (i 0)) (while (< i --dotimes-limit--) (browse-url-of-buffer) (setq i (1+ i)))) (dotimes (i 100) (browse-url-of-buffer)) eval((dotimes (i 100) (browse-url-of-buffer)) nil) eval-expression((dotimes (i 100) (browse-url-of-buffer)) nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) In GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=/c/usr' Important settings: value of $LANG: ESM locale-coding-system: cp1252 Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f x . h m l t m l C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-x C-s M-: ( d o t i m e s - SPC ( i SPC 1 0 0 ) SPC ( b r o w s e - u r l b u f ) ) C-a M-w e i q C-h C-a C-c M-w M-w M-x r e p o r t - e m Recent messages: Wrote c:/Users/mario/Desktop/x.html user-error: Beginning of history; no preceding item Entering debugger... Mark set End of buffer [6 times] Saved text from "Debugger entered--Lisp error: (error "Sh" 30 (#o36, #x1e, ?\C-^) Back to top level. Mark set C-c M-w is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils mule-util help-mode easymenu debug browse-url sgml-mode time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 82170 4244) (symbols 32 17933 0) (miscs 32 88 151) (strings 16 12976 3656) (string-bytes 1 327227) (vectors 8 10094) (vector-slots 4 391999 3862) (floats 8 61 285) (intervals 28 398 48) (buffers 508 15)) --001a11c3da0a1d7661051261c3d2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
to reproduce it, i create a small emtpy html document. the= n i evaluate the following expression:

(dotimes (i 100) = (browse-url-of-file))

This causes emacs to start o= pening the file using google chrome. In the task manager, i can see emacs&#= 39; memory usage go up by about 5 megabytes each time a tab is opened. When= it opens about 30 tabs, emacs is using 138 megabytes of memory, and it giv= es the error below.
the translation is something like this: "= ;ShellExecute failed: Storage space insufficient to process this command&qu= ot;
My harddrive has enough storage space btw.
I was able to reproduce this bug 3 times. I ran emacs with -Q o= n windows 8.
Im using emacs version:
GNU Emacs 24.= 4.1 (i686-pc-mingw32)
=C2=A0of 2014-10-24 on LEG570

Debugger entered--Lisp error: (error "ShellExec= ute failed: Espacio de almacenamiento insuficiente para procesar este coman= do.")
=C2=A0 w32-shell-execute("open" "file:/= //c:/Users/mario/Desktop/x.html")
=C2=A0 browse-url-default-= windows-browser("file:///c:/Users/mario/Desktop/x.html" nil)
=C2=A0 apply(browse-url-default-windows-browser "file:///c:/User= s/mario/Desktop/x.html" nil)
=C2=A0 browse-url-default-brows= er("file:///c:/Users/mario/Desktop/x.html" nil)
=C2=A0 = apply(browse-url-default-browser "file:///c:/Users/mario/Desktop/x.htm= l" nil)
=C2=A0 browse-url("file:///c:/Users/mario/Deskt= op/x.html")
=C2=A0 browse-url-of-file("c:/Users/mario/D= esktop/x.html")
=C2=A0 browse-url-of-buffer()
=C2= =A0 (while (< i --dotimes-limit--) (browse-url-of-buffer) (setq i (1+ i)= ))
=C2=A0 (let ((--dotimes-limit-- 100) (i 0)) (while (< i --d= otimes-limit--) (browse-url-of-buffer) (setq i (1+ i))))
=C2=A0 (= dotimes (i 100) (browse-url-of-buffer))
=C2=A0 eval((dotimes (i 1= 00) (browse-url-of-buffer)) nil)
=C2=A0 eval-expression((dotimes = (i 100) (browse-url-of-buffer)) nil)
=C2=A0 call-interactively(ev= al-expression nil nil)
=C2=A0 command-execute(eval-expression)

In GNU Emacs 24.4.1 (i686-pc-mingw3= 2)
=C2=A0of 2014-10-24 on LEG570
Windowing system distr= ibutor `Microsoft Corp.', version 6.3.9600
Configured using:<= /div>
=C2=A0`configure --prefix=3D/c/usr'

= Important settings:
=C2=A0 value of $LANG: ESM
=C2=A0 l= ocale-coding-system: cp1252

Major mode: Fundamenta= l

Minor modes in effect:
=C2=A0 tooltip-= mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-whe= el-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode= : t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-= lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-co= mposition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 buffer-read-only: t
= =C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:
<help-echo> C-x C-f <back= space> <backspace> <backspace>=C2=A0
<backspace= > <backspace> <backspace> <backspace> <backspace>= ;=C2=A0
<backspace> <backspace> <backspace> <= ;backspace> <backspace>=C2=A0
<backspace> <back= space> x . h m l <backspace> <backspace>=C2=A0
t m= l <return> C-k C-k C-k C-k C-k C-k C-k C-k C-k=C2=A0
C-k C= -k C-x C-s M-: <up> ( d o t i m e s - <backspace>=C2=A0
SPC ( i SPC 1 0 0 ) SPC ( b r o w s e - u r l <tab>=C2=A0
<backspace> <backspace> <backspace> b u f <tab> )= )=C2=A0
<return> C-a <S-down> <S-down> <S-d= own> <S-down> <S-down>=C2=A0
<S-down> <S-= down> <S-down> <S-down> <S-down> <S-down>=C2=A0<= /div>
<S-down> <S-down> <S-down> <S-down> <S= -down> <S-down>=C2=A0
<S-down> <S-down> <= S-down> <S-down> <S-down> M-w <help-echo>=C2=A0
<= div>e i <return> <help-echo> <help-echo> <help-echo>= ; q=C2=A0
C-h C-a <down> <S-down> <S-down> C-c = <help-echo> <help-echo>=C2=A0
<help-echo> <h= elp-echo> <help-echo> M-w M-w <help-echo>=C2=A0
&l= t;help-echo> <help-echo> M-x r e p o r t - e m <tab>=C2=A0
<return>

Recent messages:
Wrote c:/Users/mario/Desktop/x.html
user-error: Beginning of his= tory; no preceding item
Entering debugger...
Mark set
End of buffer [6 times]
Saved text from "Debugger e= ntered--Lisp error: (error "Sh"
30 (#o36, #x1e, ?\C-^)<= /div>
Back to top level.
Mark set
C-c M-w is undefi= ned

Load-path shadows:
None found.
=

Features:
(shadow sort gnus-util mail-extr em= acsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies= mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sen= dmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail= -utils mule-util help-mode easymenu debug
browse-url sgml-mode ti= me-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-= type mwheel dos-w32 ls-lisp w32-common-fns
disp-table w32-win w32= -vars tool-bar dnd fontset image regexp-opt fringe
tabulated-list= newcomment lisp-mode prog-mode register page menu-bar
rfn-eshado= w timer select scroll-bar mouse jit-lock font-lock syntax
facemen= u font-core frame cham georgian utf-8-lang misc-lang vietnamese
t= ibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
=
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button=
faces cus-face macroexp files text-properties overlay sha1 md5 b= ase64
format env code-pages mule custom widget hashtable-print-re= adable
backquote make-network-process w32notify w32 multi-tty ema= cs)

Memory information:
((conses 8 82170= 4244)
=C2=A0(symbols 32 17933 0)
=C2=A0(miscs 32 88 15= 1)
=C2=A0(strings 16 12976 3656)
=C2=A0(string-bytes 1 = 327227)
=C2=A0(vectors 8 10094)
=C2=A0(vector-slots 4 3= 91999 3862)
=C2=A0(floats 8 61 285)
=C2=A0(intervals 28= 398 48)
=C2=A0(buffers 508 15))

--001a11c3da0a1d7661051261c3d2--