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 17:26:55 +0300 Message-ID: <83h9szsz4g.fsf@gnu.org> References: <83mw2vzui9.fsf@gnu.org> <83fv8ltjvw.fsf@gnu.org> <551BA414.40209@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427898504 8448 80.91.229.3 (1 Apr 2015 14:28:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 14:28:24 +0000 (UTC) Cc: 20220@debbugs.gnu.org, mariovalspi@gmail.com To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 16:28: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 1YdJcq-0002ZS-3J for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 16:28:12 +0200 Original-Received: from localhost ([::1]:52955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJcp-00029O-Ch for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 10:28:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJcl-000293-GX for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdJcg-0002Ev-3C for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:28:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJcf-0002En-WE for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdJcf-0001ne-Ko for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:28: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 14:28: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.14278984326856 (code B ref 20220); Wed, 01 Apr 2015 14:28:01 +0000 Original-Received: (at 20220) by debbugs.gnu.org; 1 Apr 2015 14:27:12 +0000 Original-Received: from localhost ([127.0.0.1]:42581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdJbs-0001mV-4P for submit@debbugs.gnu.org; Wed, 01 Apr 2015 10:27:12 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48101) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdJbq-0001mA-Gq for 20220@debbugs.gnu.org; Wed, 01 Apr 2015 10:27:11 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NM400L00T8R2800@a-mtaout20.012.net.il> for 20220@debbugs.gnu.org; Wed, 01 Apr 2015 17:27:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM400LX2TH32J00@a-mtaout20.012.net.il>; Wed, 01 Apr 2015 17:27:04 +0300 (IDT) In-reply-to: <551BA414.40209@dancol.org> 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:101111 Archived-At: > Date: Wed, 01 Apr 2015 00:53:56 -0700 > From: Daniel Colascione > Cc: 20220@debbugs.gnu.org > > Whatever bit of code is starting a thread (or otherwise permanently > consuming resources) on ShellExecute is broken, not Emacs. I don't think > I've seen that behavior myself. As I wrote, I only see something similar on one particular system out of 4 I tried this on. And I'm not yet sure what I see there is what happens on Mario's system. > What's the thread start function on that new thread? SHWLAPI.dll!IUnknown_QueryService+0x87 on my system where I see this. > What's on its stack? This: wow64win.dll+0x3fe3a wow64win.dll+0x1aeac wow64.dll!Wow64SystemServiceEx+0xd7 wow64cpu.dll!TurboDispatchJumpAddressEnd+0x2d wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42a ntdll.dll!RtlIsDosDeviceName_U+0x23a27 ntdll.dll!LdrInitializeThunk+0xe USER32.dll!DispatchMessageW+0x5c SHLWAPI.dll!Ordinal173+0x287b ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 Mario, can you tell if you see similar things on your system? I suggest you verify that you have the same issue, by installing the Process Explorer and looking in the Properties for the Emacs process, in the Threads tab. There you should see a new thread created each time w32-shell-execute is invoked, and also the symbolic Start Address of each such thread.