GNU bug report logs - #31092
25.2: apropos-value: memory leak

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Sun, 8 Apr 2018 07:28:02 UTC

Severity: important

Merged with 26952, 27498, 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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31092 in the body.
You can then email your comments to 31092 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 07:28:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 08 Apr 2018 07:28:03 GMT) Full text and rfc822 format available.

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

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: 25.2: apropos-value: memory leak
Date: Sun, 8 Apr 2018 03:27:19 -0400
In emacs version 25.2, in debian, I am reliably experiencing memory
exhaustion condition within five repeats of calls to function
`apropos-value'.

In the course of a cursory attempt to see what might be causing this, I
came across a curious global variable declaration `apropos-accumulator',
which doesn't look to be the culprit, but should be converted to a
locally scoped variable.

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 07:59:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 08 Apr 2018 09:58:08 +0200
On Apr 08 2018, Boruch Baum <boruch_baum <at> gmx.com> wrote:

> In the course of a cursory attempt to see what might be causing this, I
> came across a curious global variable declaration `apropos-accumulator',
> which doesn't look to be the culprit, but should be converted to a
> locally scoped variable.

That wouldn't change the amount of garbage produced, though.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 08:05:01 GMT) Full text and rfc822 format available.

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

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 8 Apr 2018 04:04:02 -0400
On 2018-04-08 09:58, Andreas Schwab wrote:
> That wouldn't change the amount of garbage produced, though.

Didn't I say that myself?

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 12:39:01 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 08 Apr 2018 08:38:02 -0400
Boruch Baum <boruch_baum <at> gmx.com> writes:

> In emacs version 25.2, in debian, I am reliably experiencing memory
> exhaustion condition within five repeats of calls to function
> `apropos-value'.

I think this another manifestation of Bug#26952 "repeated buffer
insertion (e.g. yank-rectangle) consumes excessive memory (4GB+ for 90MB
of text)".

You can configure with REL_ALLOC=yes, or try Emacs 26.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 13:00:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: boruch_baum <at> gmx.com, 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 08 Apr 2018 15:59:41 +0300
> From: Noam Postavsky <npostavs <at> gmail.com>
> Date: Sun, 08 Apr 2018 08:38:02 -0400
> Cc: 31092 <at> debbugs.gnu.org
> 
> Boruch Baum <boruch_baum <at> gmx.com> writes:
> 
> > In emacs version 25.2, in debian, I am reliably experiencing memory
> > exhaustion condition within five repeats of calls to function
> > `apropos-value'.
> 
> I think this another manifestation of Bug#26952

Indeed, because I couldn't reproduce the problem on my system.

I suggest to try the latest pretest of Emacs 26.1 or build the
emacs-26 branch of the Emacs Git repository.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 13:36:02 GMT) Full text and rfc822 format available.

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

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 8 Apr 2018 09:34:58 -0400
On 2018-04-08 08:38, Noam Postavsky wrote:
> You can configure with REL_ALLOC=yes, or try Emacs 26.

Call me coward (not lazy); I guess I'll wait for emacs26 to leave alpha
state a distant memory and be packaged for debian.

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 13:44:02 GMT) Full text and rfc822 format available.

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

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Noam Postavsky <npostavs <at> gmail.com>, 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 8 Apr 2018 09:43:04 -0400
On 2018-04-08 15:59, Eli Zaretskii wrote:
> Indeed, because I couldn't reproduce the problem on my system.
>
> I suggest to try the latest pretest of Emacs 26.1 or build the
> emacs-26 branch of the Emacs Git repository.

Too much the coward for either option. BTW, at line 1154 of the file
apropos.el is a brief comment "permit gc", which might indicate that
this was a known issue at some point. The way that package uses variable
`apropos-accumulator' seems all wrong, creating it as a global and then
manually unsetting it; seems to me it should be locally scoped and
passed as an argument when necessary.

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 14:02:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: npostavs <at> gmail.com, 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 08 Apr 2018 17:01:03 +0300
> Date: Sun, 8 Apr 2018 09:34:58 -0400
> From: Boruch Baum <boruch_baum <at> gmx.com>
> Cc: 31092 <at> debbugs.gnu.org
> 
> On 2018-04-08 08:38, Noam Postavsky wrote:
> > You can configure with REL_ALLOC=yes, or try Emacs 26.
> 
> Call me coward (not lazy); I guess I'll wait for emacs26 to leave alpha
> state a distant memory and be packaged for debian.

Emacs 26 has left alpha state long ago, we expect RC1 in a day or two.
And I expect you to be able to find it packaged for Debian already.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31092; Package emacs. (Sun, 08 Apr 2018 14:24:02 GMT) Full text and rfc822 format available.

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

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: npostavs <at> gmail.com, 31092 <at> debbugs.gnu.org
Subject: Re: bug#31092: 25.2: apropos-value: memory leak
Date: Sun, 8 Apr 2018 10:23:25 -0400
On 2018-04-08 17:01, Eli Zaretskii wrote:
> Emacs 26 has left alpha state long ago, we expect RC1 in a day or two.

Hooray & congratulations!

> And I expect you to be able to find it packaged for Debian already.

I looked before I posted and didn't see it in the official debian
repositories. Looking a second time... Still don't see it. Not even in
the 'experimental' repository. Give them time. When it shows up in
'unstable' I'll notice. I'm looking forward to it!

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Forcibly Merged 26952 27498 31092. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 09 Apr 2018 12:02:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 May 2018 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 17 Dec 2019 13:15:02 GMT) Full text and rfc822 format available.

Forcibly Merged 26952 27498 31092 38629. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 17 Dec 2019 13:15:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Feb 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 72 days ago.

Previous Next


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