From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.emacs.bugs Subject: bug#27498: 25.2; Memory leak in M-x shell Date: Tue, 27 Jun 2017 07:17:59 +0200 Message-ID: <87vanidn5k.fsf@elephly.net> References: <87lgofko1i.fsf@elephly.net> <87k23znek5.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498540753 5544 195.159.176.226 (27 Jun 2017 05:19:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2017 05:19:13 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 Cc: 27498@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 27 07:19:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPiu3-00017e-Ps for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jun 2017 07:19:07 +0200 Original-Received: from localhost ([::1]:50668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPiu8-0004cn-Nc for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jun 2017 01:19:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPiu3-0004cU-Au for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 01:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPity-000314-CL for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 01:19:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPity-00030u-8g for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 01:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPitx-0007CV-VR for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 01:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2017 05:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27498 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27498-submit@debbugs.gnu.org id=B27498.149854068927607 (code B ref 27498); Tue, 27 Jun 2017 05:19:01 +0000 Original-Received: (at 27498) by debbugs.gnu.org; 27 Jun 2017 05:18:09 +0000 Original-Received: from localhost ([127.0.0.1]:39836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPit6-0007BC-Ty for submit@debbugs.gnu.org; Tue, 27 Jun 2017 01:18:09 -0400 Original-Received: from sender-of-o51.zoho.com ([135.84.80.216]:21089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPit4-0007Az-8L for 27498@debbugs.gnu.org; Tue, 27 Jun 2017 01:18:08 -0400 Original-Received: from localhost (port-92-200-22-210.dynamic.qsc.de [92.200.22.210]) by mx.zohomail.com with SMTPS id 1498540682751730.36795525885; Mon, 26 Jun 2017 22:18:02 -0700 (PDT) In-reply-to: <87k23znek5.fsf@users.sourceforge.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:133939 Archived-At: npostavs@users.sourceforge.net writes: > This is Bug#26952, it's due to using the custom "GNU version of malloc" > without the "relocating allocater" (there were several bugs with the > relocating allocater in 25.1). To fix you can configure with > REL_ALLOC=yes (this should be okay in 25.2), or use Emacs' master branch > where the standard system allocater can be used once again. I have tried this and while the memory consumption still grows as the buffer fills up (which I suppose is expected), memory is released as soon as the buffer is killed. Thank you for the hint! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net