From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50061: 28.0.50; Hang caused by savehist-save when saving kill ring with large amount of data from nxml-mode buffer Date: Sun, 15 Aug 2021 10:36:35 +0300 Message-ID: <83r1ev9n24.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50061@debbugs.gnu.org To: Matt Beshara Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 15 09:37:10 2021 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 1mFAhh-0008SW-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 09:37:09 +0200 Original-Received: from localhost ([::1]:39180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFAhg-0008K8-KC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Aug 2021 03:37:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFAha-0008Jm-OB for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 03:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFAha-0000Gx-HY for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 03:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFAha-0003bD-D9 for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2021 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Aug 2021 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50061 X-GNU-PR-Package: emacs Original-Received: via spool by 50061-submit@debbugs.gnu.org id=B50061.162901302013828 (code B ref 50061); Sun, 15 Aug 2021 07:37:02 +0000 Original-Received: (at 50061) by debbugs.gnu.org; 15 Aug 2021 07:37:00 +0000 Original-Received: from localhost ([127.0.0.1]:45662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFAhU-0003au-W2 for submit@debbugs.gnu.org; Sun, 15 Aug 2021 03:37:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFAhQ-0003ae-Ba for 50061@debbugs.gnu.org; Sun, 15 Aug 2021 03:36:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42474) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFAhK-0008WO-Sp; Sun, 15 Aug 2021 03:36:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1384 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFAhJ-0001g8-Fw; Sun, 15 Aug 2021 03:36:46 -0400 In-Reply-To: (message from Matt Beshara on Sun, 15 Aug 2021 12:46:09 +1000) 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:211869 Archived-At: > From: Matt Beshara > Date: Sun, 15 Aug 2021 12:46:09 +1000 > > >From emacs -Q: > 1. M-x eww RET > 2. mfa.pw/brave-new-world.xml RET > 3. C-x h > 4. M-w > 5. C-x b *scratch* RET > 6. (require 'savehist) C-j > 7. (setq savehist-additional-variables '(kill-ring)) C-j > 8. (savehist-save) C-j > At this point ‘savehist-save’ will work as intended, even with > the > large amount of XML in the kill ring. > 9. C-x b *eww* RET > 10. M-x nxml-mode RET > 11. C-x h > 12. M-w > 13. C-x b *scratch* RET > 14. (savehist-save) C-j > Here is where Emacs hangs. The Emacs process’s CPU usage goes > to > 100%, and it starts consuming greater and greater amounts of > memory. nXML puts a lot of its private text properties on the text. My guess is that producing a printed representation for that consumes inordinate amounts of memory. For me, Emacs runs out of memory even if I M-w only the initial chunk of the file that ends with "

Created with abbyy2epub (v.1.7.6)

", and then do this in *scratch*: kill-ring C-x C-e