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: Tue, 31 Mar 2015 15:46:11 +0300 Message-ID: <83fv8ltjvw.fsf@gnu.org> References: <83mw2vzui9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427806048 6142 80.91.229.3 (31 Mar 2015 12:47:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 12:47:28 +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 Tue Mar 31 14:47:15 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 1YcvZW-0004dY-Cb for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 14:47:10 +0200 Original-Received: from localhost ([::1]:38555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvZV-000278-SJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 08:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvZR-00026n-T8 for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 08:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcvZO-0000Gk-KT for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 08:47:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvZO-0000GY-HG for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 08:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YcvZN-0002bY-Un for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Mar 2015 12:47: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.14278059939973 (code B ref 20220); Tue, 31 Mar 2015 12:47:01 +0000 Original-Received: (at 20220) by debbugs.gnu.org; 31 Mar 2015 12:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:40982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcvYu-0002an-Hw for submit@debbugs.gnu.org; Tue, 31 Mar 2015 08:46:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcvYs-0002aZ-0g for 20220@debbugs.gnu.org; Tue, 31 Mar 2015 08:46:30 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NM200C00TZV3000@a-mtaout22.012.net.il> for 20220@debbugs.gnu.org; Tue, 31 Mar 2015 15:46:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM200B3PU5BS170@a-mtaout22.012.net.il>; Tue, 31 Mar 2015 15:46:23 +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:101072 Archived-At: > Date: Mon, 30 Mar 2015 20:07:29 -0600 > From: Mario Valencia > Cc: 20220@debbugs.gnu.org > > Then the shell execute function is worthless. I had used it for opening the > browser and also for opening files with an external program, or to open them in > the explorer, i guess i will have to remove all use of that function from my > scripts. Well, it's your decision, of course. 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. Moreover, after reproducing your recipe on several machine, I concluded that the actual consumption of resources does somehow depend on system configuration. Out of 4 systems I tried that on, only 1 showed a 8MB increase in the memory footprint and an additional thread per invocation of w32-shell-execute; all the other systems didn't start any additional threads and their memory footprint growth was much smaller. On Windows 8.1, I actually saw no memory growth at all. So perhaps reviewing your shell extensions, like Daniel suggested, and removing those you don't need, will fix this. It is also possible that if you leave Emacs running for a long enough time after closing the URL, the thread and its memory will be released; I didn't try to investigate that.