From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20220: severe memory leak on emacs 24.4.1 Date: Wed, 01 Apr 2015 05:47:39 +0300 Message-ID: <83oan8sgxg.fsf@gnu.org> References: <83mw2vzui9.fsf@gnu.org> <83fv8ltjvw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427856567 3251 80.91.229.3 (1 Apr 2015 02:49:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 02:49:27 +0000 (UTC) Cc: 20220@debbugs.gnu.org To: Mario Valencia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 04:49:16 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 1Yd8iN-0000sg-Sx for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 04:49:12 +0200 Original-Received: from localhost ([::1]:41349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8iN-0000Ow-6p for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 22:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8iJ-0000Oa-9r for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 22:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd8iE-0005Zk-Aw for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 22:49:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8iE-0005Zd-7T for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 22:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yd8iD-0007RT-Os for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 22:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 02:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20220 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20220-submit@debbugs.gnu.org id=B20220.142785648928548 (code B ref 20220); Wed, 01 Apr 2015 02:49:01 +0000 Original-Received: (at 20220) by debbugs.gnu.org; 1 Apr 2015 02:48:09 +0000 Original-Received: from localhost ([127.0.0.1]:41564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd8hM-0007QO-Sr for submit@debbugs.gnu.org; Tue, 31 Mar 2015 22:48:09 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:38710) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd8hK-0007Pt-UH for 20220@debbugs.gnu.org; Tue, 31 Mar 2015 22:48:07 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NM300400WXLAT00@mtaout26.012.net.il> for 20220@debbugs.gnu.org; Wed, 01 Apr 2015 05:48:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM3002VWX5KXW10@mtaout26.012.net.il>; Wed, 01 Apr 2015 05:48:56 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:101099 Archived-At: > Date: Tue, 31 Mar 2015 20:19:27 -0600 > From: Mario Valencia > Cc: Eli Zaretskii , 20220@debbugs.gnu.org > > > However, I think that > >"worthless" is too extreme, and not using it at all is too radical, > >even if you can do nothing in terms of your system configuration to > >bring down the amount of resources consumed by each invocation. One > >thread and 8 MB of memory is not that large, unless you really invoke > >that command tens or times in a row. > > You are wrong. Calling shellexecute tens of times is very common. Just consider > when editing an html file, saving and viewing the file may happen more than > once a minute, so in less than 30 minutes it will hit the bug. You can use the browser's "refresh" function instead, don't? That's what I'd do, regardless of this problem. > Or when opening files with an external application in dired, if you > open more than 30 files with shellexecute, it will hit the bug, > which is not unlikely. Afterwards, after quitting the debugger, a > few more times of calling the function and emacs will hang > permanently. Did you actually see this problem in real life, not with your recipe? Anyway, I still think you should look at your system's configuration, since I see nothing similar to this large memory consumption on all but 1 system where I tried this. So there are factors here at work that depend on the system.