From unknown Sun Jun 22 07:37:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27498: 25.2; Memory leak in M-x shell Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2017 11:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27498 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 27498@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149847511130072 (code B ref -1); Mon, 26 Jun 2017 11:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2017 11:05:11 +0000 Received: from localhost ([127.0.0.1]:38071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPRpO-0007ox-Ck for submit@debbugs.gnu.org; Mon, 26 Jun 2017 07:05:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPRpM-0007ol-Am for submit@debbugs.gnu.org; Mon, 26 Jun 2017 07:05:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPRpF-00056r-6O for submit@debbugs.gnu.org; Mon, 26 Jun 2017 07:05:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46931) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPRpF-00056m-3I for submit@debbugs.gnu.org; Mon, 26 Jun 2017 07:05:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPRpC-0000Ng-TX for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2017 07:05:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPRp9-00053Z-Jp for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2017 07:04:58 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dPRp9-00050c-CC for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2017 07:04:55 -0400 Received: from localhost (141.80.244.69 [141.80.244.69]) by mx.zohomail.com with SMTPS id 1498475084398967.4186813731055; Mon, 26 Jun 2017 04:04:44 -0700 (PDT) User-agent: mu4e 0.9.18; emacs 25.2.1 From: Ricardo Wurmus 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 Date: Mon, 26 Jun 2017 13:04:41 +0200 Message-ID: <87lgofko1i.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Emacs leaks memory as lines are printed in a shell buffer. Here is a recipe: emacs -Q M-x shell yes "This should not leak, but it does." Observe the memory usage grow in a tool like “top”. Once you decide that Emacs has eaten enough memory, kill the shell buffer. Note that memory is not released. This is a problem for me because I often compile software in shell buffers (via “guix build”). The compilation processes often print out very large amounts of text and Emacs quickly eats up all memory on my machine, freezing it. I can only recover from this by killing Emacs (which is terrible, because I live in Emacs). This has not been a problem in Emacs 24.x; I’m also pretty confident that this was no problem in version 25.1. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.12) of 2017-04-24 built on localhost Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 Configured using: 'configure CONFIG_SHELL=/gnu/store/k7029k5va68lkapbzcycdzj7m5bjb4b8-bash-4.4.12/bin/bash SHELL=/gnu/store/k7029k5va68lkapbzcycdzj7m5bjb4b8-bash-4.4.12/bin/bash --prefix=/gnu/store/q3kvsn12x99fpiw08a2jgw9h6biky907-emacs-25.2 --enable-fast-install' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: mu4e:compose Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t mml-mode: t erc-track-mode: t erc-track-minor-mode: t erc-ring-mode: t erc-networks-mode: t erc-netsplit-mode: t erc-menu-mode: t erc-list-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-autojoin-mode: t erc-autoaway-mode: t erc-smiley-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t typo-mode: t TeX-PDF-mode: t guide-key-mode: t diff-auto-refine-mode: t pdf-occur-global-minor-mode: t savehist-mode: t global-undo-tree-mode: t undo-tree-mode: t delete-selection-mode: t desktop-save-mode: t display-time-mode: t projectile-global-mode: t projectile-mode: t ido-ubiquitous-mode: t ido-vertical-mode: t global-paren-face-mode: t global-guix-prettify-mode: t guix-prettify-mode: t shell-switcher-mode: t shell-dirtrack-mode: t show-paren-mode: t save-place-mode: t global-eldoc-mode: t electric-indent-mode: t global-prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: message-do-auto-fill transient-mark-mode: t abbrev-mode: t Recent messages: Mark saved where search started [2 times] Contacting host: debbugs.gnu.org:80 Opening nndoc server on /tmp/gnus-temp-group-266625pe-ephemeral...done Mark set Mark saved where search started Mark set Quit [3 times] (New file) Mark set (Inserted HYPHEN-MINUS; type - for other options) Quit Load-path shadows: […] Features: (shadow emacsbug gnus-cite gnus-async gnus-bcklg gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-ml gnus-msg nndoc gnus-cache url-handlers gnus-dup mm-archive debbugs-gnu debbugs soap-client warnings rng-xsd rng-dt rng-util xsd-regexp woman tabify man vc vc-dispatcher tramp-cache epa-mail qp mail-extr sort rect shr-color epa-file latexenc autoconf autoconf-mode ffap find-dired network-stream nsm starttls url-http url-gw url-cache url-auth mu4e-contrib org-mu4e mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view epa derived mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils mu4e-lists mu4e-vars hl-line mu4e-meta hippie-exp magit-version magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit magit-utils log-edit pcvs-util add-log with-editor async-bytecomp async tramp-sh server pcmpl-unix guix-build-log smiley gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win znc erc-track erc-match erc-ring erc-networks erc-netsplit erc-menu erc-list erc-pcomplete erc-button erc-fill erc-stamp erc-join erc-autoaway erc-goodies erc erc-backend erc-compat cl misearch multi-isearch markdown-mode preview prv-emacs font-latex tex-mode eww mm-url gnus gnus-ems nnheader mail-utils url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap shr dom browse-url conf-mode typo face-remap sh-script smie executable org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view subr-x org-bibtex bibtex org-bbdb org-w3m org-element avl-tree ob-lilypond org-bullets org-indent org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob-sh ob-scheme ob-R ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs tex-buf latex tex-ispell tex-style tex-info tex dbus xml crm texinfo autorevert filenotify guide-key s popwin vc-git diff-mode easy-mmode guix-devel guix-misc guix-ui guix-ui-messages bui bui-list bui-info bui-entry bui-core bui-history bui-button guix-read guix-help-vars guix-repl guix-profiles guix-external guix-config guix-build-config guix-geiser geiser-mode geiser-xref geiser-compile geiser-debug guix-guile geiser-guile geiser-repl geiser-image geiser-company geiser-doc geiser-menu geiser-autodoc info-look geiser-edit geiser-completion geiser-eval geiser-connection geiser-syntax geiser-impl geiser-custom geiser-log geiser-base geiser-popup view paredit company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb color company scheme linum pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet dired pdf-isearch let-alist pdf-misc imenu pdf-tools pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode savehist undo-tree diff delsel page-break-lines fill-column-indicator re-builder desktop frameset smart-mode-line-respectful-theme smart-mode-line time rich-minority lilypond-mode rot13 disp-table projectile grep compile ibuf-ext ibuffer thingatpt smex ido-ubiquitous ido-completing-read+ cus-edit cus-start cus-load wid-edit ido-vertical-mode paren-face guix-prettify guix-utils bui-utils guix shell-switcher rswitcher tramp tramp-compat auth-source eieio eieio-core gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring format-spec info solarized-light-theme solarized dash better-defaults finder-inf package epg-config znc-autoloads ido-completing-read+-autoloads advice dash-autoloads shell-switcher-autoloads js2-mode-autoloads clojure-mode-autoloads bui-autoloads page-break-lines-autoloads tagedit-autoloads perspective-autoloads org-bullets-autoloads emms-mode-line-cycle-autoloads visual-fill-column-autoloads debbugs-autoloads ivy-autoloads projectile-autoloads emms-player-mpv-autoloads rich-minority-autoloads with-editor-autoloads skewer-mode-autoloads expand-region-autoloads solarized-theme-autoloads ido-ubiquitous-autoloads s-autoloads paren-face-autoloads web-mode-autoloads smart-mode-line-autoloads undo-tree-autoloads epl-autoloads pdf-tools-autoloads typo-autoloads ace-window-autoloads magit-popup-autoloads multiple-cursors-autoloads markdown-mode-autoloads fill-column-indicator-autoloads auctex-autoloads tex-site god-mode-autoloads hydra-autoloads pkg-info-autoloads simple-httpd-autoloads smex-autoloads org-autoloads avy-autoloads lispy-autoloads yasnippet-autoloads better-defaults-autoloads paren edmacro kmacro saveplace ido seq byte-opt bytecomp byte-compile cconv iedit-autoloads async-autoloads company-autoloads mu4e-autoloads emms-auto emacs-paredit-autoloads geiser-install geiser wget-autoloads guix-autoloads cl-extra help-mode easymenu cl-seq guix-emacs cl-macs gv rx cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 5498967 500617) (symbols 48 81951 0) (miscs 40 104299 4766) (strings 32 302649 135536) (string-bytes 1 12956536) (vectors 16 105509) (vector-slots 8 2321803 110802) (floats 8 3961 1252) (intervals 56 409060 3231) (buffers 976 129)) From unknown Sun Jun 22 07:37:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27498: 25.2; Memory leak in M-x shell Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2017 12:00:02 +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: To: Ricardo Wurmus Cc: 27498@debbugs.gnu.org Received: via spool by 27498-submit@debbugs.gnu.org id=B27498.14984783879414 (code B ref 27498); Mon, 26 Jun 2017 12:00:02 +0000 Received: (at 27498) by debbugs.gnu.org; 26 Jun 2017 11:59:47 +0000 Received: from localhost ([127.0.0.1]:38127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPSgF-0002Rm-HO for submit@debbugs.gnu.org; Mon, 26 Jun 2017 07:59:47 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:33284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPSgC-0002RO-BJ; Mon, 26 Jun 2017 07:59:44 -0400 Received: by mail-it0-f66.google.com with SMTP id x12so12223382itb.0; Mon, 26 Jun 2017 04:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=gvZZ1MIBu61fEVso76SF8Qbs8ClaxfCglhUyeAy6CaI=; b=DOcMlLeSIjSKbENbIfnpZOa8TXyQN5HwRH+Q4CAe6PcjjFOwz+aALvT2f3ak906+Eo 8HhdsyCcsUwx6p0lI/4LWA25FpJOv3PA7Y+hTX90+zxswgaVbkEaj9S1A5gqBsBnS4Ze 3I2TqL609F7qBZG+NMdIA3Uny3RfwzNm+BS49bBTLGF1sRO9pcw0AaNwORQtTr7ik2QT oiXAsKUVLHthX8PhqFXCccQ0bB0HFm/PSUm8a0/2bQouYDjyg/lbCLgREEyh6mScLZPv amwh4dw8VbguqMhwY9VOtTaOca7OZb/inrnfvNGXHSIqk1a1K2YhFNnHUuq/Au2n11Ao EdeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=gvZZ1MIBu61fEVso76SF8Qbs8ClaxfCglhUyeAy6CaI=; b=hSYY2mZVC+Z66ao1BmMfSQPM/HMNjoJme8hv8DLh+3OyOjM5GsRqFYeVG5qEVH6UGd Uv6Cs3URvKgJGE/bo2kZ/6mPlijT+mWxHkqnwNvhjNb9wxMVGbl/GxF6Dd7LzcaSnTOj a8dwayE3rQ2+urnhqwa1es782iVZl9ylHJpp7KJEHn4xAi1R3QUD/o4OB8xSuS13Zt9r IstZvda9B+P0FaQdU4S9gOSwKmbniPsmcGWTNMkSlW8DZ6RNVufxkEI4gVfAb7/ytPDC t2cQj/eFuSBwDPxmj3oQF4sby+382dTr01pobdFA+SxcL7Eo/MCWazy5vyMw864m/ua7 qXpA== X-Gm-Message-State: AKS2vOyjsKH42r6l7Rg4Cqikt1vbD4flWZuQzbDS14P4nEyn1SXxXGtj //JLH4xlQMQCdFVT X-Received: by 10.36.213.66 with SMTP id a63mr22926921itg.38.1498478378602; Mon, 26 Jun 2017 04:59:38 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b17sm1728628itd.0.2017.06.26.04.59.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2017 04:59:37 -0700 (PDT) From: npostavs@users.sourceforge.net References: <87lgofko1i.fsf@elephly.net> Date: Mon, 26 Jun 2017 08:01:14 -0400 In-Reply-To: <87lgofko1i.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 26 Jun 2017 13:04:41 +0200") Message-ID: <87k23znek5.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) forcemerge 26952 27498 quit Ricardo Wurmus writes: > Emacs leaks memory as lines are printed in a shell buffer. Here is a > recipe: > > emacs -Q > M-x shell > yes "This should not leak, but it does." > > Observe the memory usage grow in a tool like =E2=80=9Ctop=E2=80=9D. Once= you decide > that Emacs has eaten enough memory, kill the shell buffer. Note that > memory is not released. > > This is a problem for me because I often compile software in shell > buffers (via =E2=80=9Cguix build=E2=80=9D). The compilation processes of= ten print out > very large amounts of text and Emacs quickly eats up all memory on my > machine, freezing it. I can only recover from this by killing Emacs > (which is terrible, because I live in Emacs). 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=3Dyes (this should be okay in 25.2), or use Emacs' master branch where the standard system allocater can be used once again. From unknown Sun Jun 22 07:37:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27498: 25.2; Memory leak in M-x shell Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2017 13:15: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: To: npostavs@users.sourceforge.net Cc: 27498@debbugs.gnu.org Received: via spool by 27498-submit@debbugs.gnu.org id=B27498.149848288223028 (code B ref 27498); Mon, 26 Jun 2017 13:15:01 +0000 Received: (at 27498) by debbugs.gnu.org; 26 Jun 2017 13:14:42 +0000 Received: from localhost ([127.0.0.1]:38171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPTqk-0005zM-Fr for submit@debbugs.gnu.org; Mon, 26 Jun 2017 09:14:42 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPTqj-0005zE-8V for 27498@debbugs.gnu.org; Mon, 26 Jun 2017 09:14:41 -0400 Received: from localhost (141.80.244.69 [141.80.244.69]) by mx.zohomail.com with SMTPS id 1498482875980411.5627874676661; Mon, 26 Jun 2017 06:14:35 -0700 (PDT) References: <87lgofko1i.fsf@elephly.net> <87k23znek5.fsf@users.sourceforge.net> User-agent: mu4e 0.9.18; emacs 25.2.1 From: Ricardo Wurmus 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 Date: Mon, 26 Jun 2017 15:14:33 +0200 Message-ID: <871sq6gabq.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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. Thank you for this information. I’ll give this a try. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sun Jun 22 07:37:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27498: 25.2; Memory leak in M-x shell Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2017 18:23: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: To: Ricardo Wurmus Cc: 27498@debbugs.gnu.org Received: via spool by 27498-submit@debbugs.gnu.org id=B27498.149850136519006 (code B ref 27498); Mon, 26 Jun 2017 18:23:01 +0000 Received: (at 27498) by debbugs.gnu.org; 26 Jun 2017 18:22:45 +0000 Received: from localhost ([127.0.0.1]:39395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPYer-0004wU-8Z for submit@debbugs.gnu.org; Mon, 26 Jun 2017 14:22:45 -0400 Received: from mx1.isti.cnr.it ([194.119.192.3]:47965 helo=blade3.isti.cnr.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPYeo-0004wK-VF for 27498@debbugs.gnu.org; Mon, 26 Jun 2017 14:22:43 -0400 Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.5-x6 #1609) with ESMTPSA id <01QG0GL2KNVQEJD17D@mx-all.isti.cnr.it> for 27498@debbugs.gnu.org; Mon, 26 Jun 2017 20:22:19 +0200 (MEST) Received: from pot by tucano.isti.cnr.it with local (Exim 4.89) (envelope-from ) id 1dPYel-0008A9-M8; Mon, 26 Jun 2017 20:22:39 +0200 Date: Mon, 26 Jun 2017 20:22:39 +0200 From: Francesco =?UTF-8?Q?Potort=C3=AC?= In-reply-to: <87lgofko1i.fsf@elephly.net> Message-id: Organization: CNR-ISTI, via Moruzzi 1, I-56124 Pisa, +39-0503153058 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 References: <87lgofko1i.fsf@elephly.net> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >Emacs leaks memory as lines are printed in a shell buffer. Here is a >recipe: > > emacs -Q > M-x shell > yes "This should not leak, but it does." > >Observe the memory usage grow in a tool like “top”. Once you decide >that Emacs has eaten enough memory, kill the shell buffer. Note that >memory is not released. This may be a duplicate of #26952 From unknown Sun Jun 22 07:37:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27498: 25.2; Memory leak in M-x shell 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: To: npostavs@users.sourceforge.net Cc: 27498@debbugs.gnu.org Received: via spool by 27498-submit@debbugs.gnu.org id=B27498.149854068927607 (code B ref 27498); Tue, 27 Jun 2017 05:19:01 +0000 Received: (at 27498) by debbugs.gnu.org; 27 Jun 2017 05:18:09 +0000 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 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 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) References: <87lgofko1i.fsf@elephly.net> <87k23znek5.fsf@users.sourceforge.net> User-agent: mu4e 0.9.18; emacs 25.2.1 From: Ricardo Wurmus 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 Date: Tue, 27 Jun 2017 07:17:59 +0200 Message-ID: <87vanidn5k.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 08:01:23 2018 Received: (at control) by debbugs.gnu.org; 9 Apr 2018 12:01:23 +0000 Received: from localhost ([127.0.0.1]:43205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5VUB-0000i2-3O for submit@debbugs.gnu.org; Mon, 09 Apr 2018 08:01:23 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:51460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5VUA-0000hp-1r for control@debbugs.gnu.org; Mon, 09 Apr 2018 08:01:22 -0400 Received: by mail-it0-f44.google.com with SMTP id b5-v6so10623491itj.1 for ; Mon, 09 Apr 2018 05:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=tpyWziWUoVnUTUUf/g02/ow+uzJCe3Equ2c5YWwpdZk=; b=J9Xc2J0Vo/NC0ti+BuZgFS59hictAqc7iXt9OXveL4Q3QdusSNwBkiHvcPZTNezvf8 qJeZcnbRRBqGAnS6H7W1/LxI4PLZRg25OmEazN/nnr/BseEcZ1CPyrmiQ6ybk68/A7D3 6MxcULu6dotu4F/DVEcj3uupA4yjSkCmecvF2t+QN8MRxl8aYVL/cwJYjOmxQCiKrBE/ yte3KccFKHn4PIsof9FgSjd7Zwcl6l2qbsjxQNeXONXXzqmcLLQ3as2jJ9tbP8Y293HT Dgt2//Nv06jHg02T+SiBKmsrMiChIRgEX8R+21lyR+He9dcJJZTKgNMBDpB0cyNH3RYr b/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=tpyWziWUoVnUTUUf/g02/ow+uzJCe3Equ2c5YWwpdZk=; b=GdDgobqsGkgL7EzXp8BeyKJbqnXjOISnZvml5T9BVnfK2kQ1S+YYTSM0Wagep1lOb0 1e6ZX35trhkyJpemevpgXipgwNPhGpePGHtMabZ1I+otw0OcfUjefLAutMhcIbMejkJZ pHDJD6I0M5rc8O0RTp/KHX5AaNJdoAXfzqrUdeD2ojN3r6WYJN37TdNBj/lSans00ip1 H7h45Rzg6duFD6ulxpf61CPLNFTWqe0Azw97GLM2nwYx6Zp6qQwErYLkfkIfIVa81pBH gypiJu7UtHQxkvdG3DE36Dktop1de3eQ6/9N4ZsWthRGZ4bOSbNNU+/yw1cPJhK6ZDa/ Lzjg== X-Gm-Message-State: ALQs6tAe6+UBvOXDNe2lAYLZqkm4vHovlLj49PEi4WANe8zCqWB1GMNG 5GMkt86aJ5UtPLSzzT/fyyf++w== X-Google-Smtp-Source: AIpwx48ef1NAHYGOm87Tg4H71kzmMNdE/N2jO1hfRMpC8h1v5KSHUwZOkswaEWYFJyWZqHfz/aYMrw== X-Received: by 2002:a24:45a2:: with SMTP id c34-v6mr29968929itd.31.1523275276512; Mon, 09 Apr 2018 05:01:16 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k197-v6sm70323itk.13.2018.04.09.05.01.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 05:01:15 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #26952 Date: Mon, 09 Apr 2018 08:01:15 -0400 Message-ID: <874lkkmvw4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 26952 forcemerge 26952 31092 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 17 08:14:08 2019 Received: (at control) by debbugs.gnu.org; 17 Dec 2019 13:14:08 +0000 Received: from localhost ([127.0.0.1]:40845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihCfw-00008b-JJ for submit@debbugs.gnu.org; Tue, 17 Dec 2019 08:14:08 -0500 Received: from mail-qv1-f47.google.com ([209.85.219.47]:40651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihCfv-00008C-7H; Tue, 17 Dec 2019 08:14:07 -0500 Received: by mail-qv1-f47.google.com with SMTP id dp13so458630qvb.7; Tue, 17 Dec 2019 05:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=NN0secEnzDDLDW7GNv7tsD4hcIif5QNUn8j7DAlrboc=; b=gdotjuEPDdUJix/0+rsUtXDRARSVzLqSmpCPm7j3wUyMs/67x72kyfSclqAw+L13Uv vH/mCBpCHoW+oGn0wQbdJFKgwk7rmd4ohJ+fgAKlkJchOmGZRzTGeTlTNipUCB65fMPa LnXXnC40yymTMS+1k504clV/t1QO8XBoPeMP4jJRN3kYZ/LER40QKbwQUuLQIYx5mw+S aqtDINccUdUkjxC4QoA+5UI3wyE9PrJ4JZObNXvhX+x8pIpAnmbyaHuoA8b61hcGpOQY CUlGwu1fWZSFavKYJE4QoeUeLN3/+prLzTBWiwCcjjDNg37lFn9qP1ENBvan7GM/vgzw nfbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NN0secEnzDDLDW7GNv7tsD4hcIif5QNUn8j7DAlrboc=; b=OIbDB0IZzUxOYphBZ+wRz5LHmLV+QN8BzDcpyG5TKDTTDLTvr4H/nSySUInUCESF0x KOiOu38Bwe2IfvFT1kHDVdA76AFF1aTtXKUCiuG6JGJAs05grFGptiCXRBbS2AbbQu3R lqOsTmoFKIL/wVqX94+l+fN9SZI3XhWL8DDrTvai4aZPWqWTuhEx8Ryqs2jq1jwkVaUj 2Ad6DEoMTXutyLI8ixvVtVDN5+jB1FBqg80brAs78fsOUMbhV1i8MV3spDoMpn2Iher5 gT+BiUsDd6AS9ryniHFMi6CB+pYy8SqgK2igbo00G6NxSZnL1N4qzrL4Yu1T8KI7hgaI zgGg== X-Gm-Message-State: APjAAAVoSkX9lvLI1CIXKSlRWyfZGW/lLd/b4gvl7bRdxSNtLClTLFqE KhW/dWFinqLqIqf9wrp2Co+vjxlU X-Google-Smtp-Source: APXvYqzFlKnYN+ipeYXd4UzHXl2rTJ/DtdWsDJOEbjKIwc+qtxBrzIYUfCR7p+xEFrIvyqPHmryp2Q== X-Received: by 2002:ad4:478b:: with SMTP id z11mr4459154qvy.185.1576588441674; Tue, 17 Dec 2019 05:14:01 -0800 (PST) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id s26sm7109791qkj.24.2019.12.17.05.14.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Dec 2019 05:14:00 -0800 (PST) From: Noam Postavsky To: Peter Ludemann Subject: Re: bug#38629: 25.2; garbage-collect doesn't reclaim large *compilation* References: <87a77scprp.fsf@gmail.com> Date: Tue, 17 Dec 2019 08:14:00 -0500 In-Reply-To: (Peter Ludemann's message of "Mon, 16 Dec 2019 16:19:44 -0800") Message-ID: <877e2vccx3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 38629@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 26952 forcemerge 26952 38629 quit Peter Ludemann writes: > The sluggishness is not related to the *compilation* window, so we can > close this bug (as fixed by emacs 26.3) and I'll open a new bug report. Thanks for checking.