GNU bug report logs - #26952
25.2; repeated buffer insertion (e.g. yank-rectangle) consumes excessive memory (4GB+ for 90MB of text)

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Tue, 16 May 2017 14:55:01 UTC

Severity: important

Merged with 27498, 31092, 38629

Found in versions 25.1, 25.2

Fixed in version 26.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #12 received at control <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Francesco Potortì <pot <at> gnu.org>
Cc: 26952 <at> debbugs.gnu.org
Subject: Re: bug#26952: 25.1;
 loops eating all memory while yanking big rectangle
Date: Fri, 19 May 2017 20:24:03 -0400
found 26952 25.2
fixed 26952 26.1
quit

Francesco Potortì <pot <at> gnu.org> writes:

> $ emacs -Q -nw
>
> I find a big text file that you can download from
> <http://fly.isti.cnr.it/tmp/bigfile.txt.xz>
>
> Once decompressed, the file is 80 MB long, composed of over 600000 lines
> around 150 characters long each
>
> Then I do this:
>
> C-u 29 M-f		--> point is on the tab after "21"
> M->
> C-b
> C-u 30 SPC
> M-x kill-rectangle	--> Emacs discards the undo buffer
> C-x b aa		--> create a scratch buffer
> M-x yank-rectangle
>
> at this point, Emacs freezes and starts growing in size.  On my system,
> it started from less than 1GB vmem and grew to over 10GB when I killed
> it.  Only kill -9 succeded to kill it.

I see the issue also with 25.2, but not with master (no idea what might
have fixed it though).




This bug report was last modified 5 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.