From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks Date: Tue, 10 Nov 2020 09:22:20 +0100 Message-ID: <87v9edk4eb.fsf@igel.home> References: <87r1r5428d.fsf@web.de> <87mu1sry72.fsf@mail.linkov.net> <875z8fc224.fsf@web.de> <20200915175418.GV20869@maokai> <838sda98jm.fsf@gnu.org> <20200915211209.GW20869@maokai> <83pn6l7ozj.fsf@gnu.org> <20200917204704.GA20217@maokai> <83zh5n4hpd.fsf@gnu.org> <878sbagsx8.fsf@web.de> <87imaefck8.fsf@web.de> <87wnyudws1.fsf@web.de> <83pn4l3mts.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39934"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Michael Heerdegen , 43389@debbugs.gnu.org, RLAdams@AdamsInfoServ.Com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 10 09:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcOvm-000AIG-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 09:23:10 +0100 Original-Received: from localhost ([::1]:37342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcOvl-0007MG-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 03:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcOve-0007M3-VQ for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2020 03:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcOve-0004Vr-HY for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2020 03:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kcOve-00035G-DE for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2020 03:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Nov 2020 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs Original-Received: via spool by 43389-submit@debbugs.gnu.org id=B43389.160499654511792 (code B ref 43389); Tue, 10 Nov 2020 08:23:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 10 Nov 2020 08:22:25 +0000 Original-Received: from localhost ([127.0.0.1]:36258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcOv3-000348-6B for submit@debbugs.gnu.org; Tue, 10 Nov 2020 03:22:25 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:45181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcOv1-00033z-JM for 43389@debbugs.gnu.org; Tue, 10 Nov 2020 03:22:24 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CVgp55ldRz1qskR; Tue, 10 Nov 2020 09:22:21 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CVgp553Mpz1qyXv; Tue, 10 Nov 2020 09:22:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id NoWFB7jqPjOH; Tue, 10 Nov 2020 09:22:20 +0100 (CET) X-Auth-Info: yHUSOR88iKdEDCV9WpyJvLgVzrKRhbGiVXsnY//NgsXpCjhKK9u3rfEsqm7EDoh5 Original-Received: from igel.home (ppp-46-244-173-48.dynamic.mnet-online.de [46.244.173.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 10 Nov 2020 09:22:20 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 42FCD2C35D5; Tue, 10 Nov 2020 09:22:20 +0100 (CET) X-Yow: I want to dress you up as TALLULAH BANKHEAD and cover you with VASELINE and WHEAT THINS.. In-Reply-To: <83pn4l3mts.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Nov 2020 05:36:15 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192993 Archived-At: On Nov 10 2020, Eli Zaretskii wrote: >> From: Michael Heerdegen >> Cc: 43389@debbugs.gnu.org, Russell Adams >> Date: Mon, 09 Nov 2020 22:51:10 +0100 >> >> Michael Heerdegen writes: >> >> > I found this line in pmap output: >> > >> > 0000557322314000 6257824K rw--- [ anon ] >> >> I guess that's the heap again. > > Yes, the heap. So it more and more looks like this is the result of > glibc not releasing memory to the system, which with some usage > patterns causes the memory footprint grow to ludicrous size. The heap can only shrink if you free memory at the end of it, so there is nothing wrong here. You can call malloc_info (0, stdout) to see the state of the heap. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."