From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#20220: severe memory leak on emacs 24.4.1 Date: Wed, 01 Apr 2015 00:53:56 -0700 Message-ID: <551BA414.40209@dancol.org> References: <83mw2vzui9.fsf@gnu.org> <83fv8ltjvw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CUeKgBf9v6IoiCSVdIf1249IhjumbRsqr" X-Trace: ger.gmane.org 1427874922 3770 80.91.229.3 (1 Apr 2015 07:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 07:55:22 +0000 (UTC) Cc: 20220@debbugs.gnu.org To: Mario Valencia , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 09:55: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 1YdDUY-0000T4-3C for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 09:55:14 +0200 Original-Received: from localhost ([::1]:41978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdDUX-0005nM-J2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 03:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdDUS-0005iN-1C for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 03:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdDUM-00054k-N8 for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 03:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdDUM-00054H-Kb for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 03:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdDUM-0006gs-AV for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 03:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 07:55:02 +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.142787485925664 (code B ref 20220); Wed, 01 Apr 2015 07:55:02 +0000 Original-Received: (at 20220) by debbugs.gnu.org; 1 Apr 2015 07:54:19 +0000 Original-Received: from localhost ([127.0.0.1]:41633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdDTe-0006fs-U1 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 03:54:19 -0400 Original-Received: from dancol.org ([96.126.100.184]:53444) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdDTc-0006fj-K3 for 20220@debbugs.gnu.org; Wed, 01 Apr 2015 03:54:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=wFRBgfp5dS57w4PFtDKWc95ayzBKaX1WAQBRvx0aYfA=; b=fVMTUf1FBfHiEDyFfg7unpdV9kTGi7Qm+dUWXQylfxnV/TuhCUau9M9IAV8M3u92+d5vDWgIFZiANOTvLjETexy1xZV5HEhpapTisigj422Ju4aVJBmm877uO47jB1sXCJah1AbMjZ+EiM11W8nwHW9ECBpfYKnX/cPuZr4mrhETQqGgO1RK2vhXIITQDciyZS+ix+HK869NHrxFILxHQZrXymFKRyv5eSRR7SPVibnH4cIHkz3+NPZSfIqgb+E1Nfr9rq7CavaM1qC4vDq+qdd4Fvzw2IZ8coSLDs2/SPW6CgWQQFtrRkJnsd7a1OCkYLSAp46jE/ZcsgNYssYDSQ==; Original-Received: from [166.177.250.187] (helo=[192.168.1.206]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1YdDTa-0002Y0-IJ; Wed, 01 Apr 2015 00:54:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: 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:101104 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CUeKgBf9v6IoiCSVdIf1249IhjumbRsqr Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/31/2015 07:19 PM, Mario Valencia wrote: >> 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. >=20 > 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. Or when opening files with an external application in dired, i= f > 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. 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. What's the thread start function on that new thread? What's on its stack? Anyway, you should be able to work around the problem by using cmd.exe's "start" builtin, which will run ShellExecute on your behalf. --CUeKgBf9v6IoiCSVdIf1249IhjumbRsqr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVG6QUAAoJEN4WImmbpWBlDo0P/1KoHlIcLgwFJQnNrObGwJDg /HGI5uiV2AUzbQBjddWNHnFzMo81/0yKn2naUTk7/v/FTM4YK1DmoA9l9cNRrliZ RPAS253Lwg/D3WrvDGEhERbiK+GvFQPRpyH2Ju+57vxWTJQPT3spKiihLrkGFJVR ulIJph2bZWpadDOOjtkRJJUclxxWcvpDg22KpGrv2muJ9i3i96s5qtApCvZ+W/+L S4faFkJ61bOn/fqR/49nAkQUEBmkHVYH5hTcvOncp/agObxCa2wzvGT7PH0dyxPG BZqxBgs+hIvGCjvyWOt62jRLfZ5tPP1CNncJ+N105b1qm6KOxnPCCSxBqrBa4iWe yCIqXMPYIJRFTjM8WZhfd+ifnAjxRZTLDJXkPrB4dWm7gJH+A8RDekTzGFYT+flt jf4MFEf/H5Ub1ztAqq0mQt0CVGXKm7G1pumRu57YYJyVn5RRWVodIQhKD8LHkYrL BlvPEL/RhV4VGcBtswdBubDSQ139+FKmWaUi8cXYRqVWfbYwa5Co8R21/44azwgi HUI3vS7E1DCXEsugB8crs+0j83/mRGj2oW5/QoBJvvrG2coXb2VJKzTLWvGsJ0Vk R14JO5TgwKgxLDk0TqH8kt+Td1vBrXn8jX0NjxA5un98hSItJVi80LkwQ+dUWAo0 Cw9/fyebp/l5fwTAINKx =Qkim -----END PGP SIGNATURE----- --CUeKgBf9v6IoiCSVdIf1249IhjumbRsqr--