GNU bug report logs - #32531
Emacs 27 crash with `memory-use-counts'

Previous Next

Package: emacs;

Reported by: Karl Otness <karl <at> karlotness.com>

Date: Sun, 26 Aug 2018 03:51:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32531: closed (Emacs 27 crash with `memory-use-counts')
Date: Sun, 26 Aug 2018 14:55:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 26 Aug 2018 17:54:03 +0300
with message-id <83tvnh5gc4.fsf <at> gnu.org>
and subject line Re: bug#32531: Emacs 27 crash with `memory-use-counts'
has caused the debbugs.gnu.org bug report #32531,
regarding Emacs 27 crash with `memory-use-counts'
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32531: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32531
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Karl Otness <karl <at> karlotness.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs 27 crash with `memory-use-counts'
Date: Sat, 25 Aug 2018 22:50:25 -0500
I've observed a crash with Emacs master (version as of a couple days
ago). To reproduce with "emacs -q" just eval (memory-use-counts) in
scratch. Printing or manipulating the list causes the crash.

The cause seems to that listn is called with a length of 8 rather than
7 in the source of memory-use-counts (alloc.c line 7020) when only
seven elements are specified. Might be leftover from getting rid of
misc. Bumping that number down to 7 fixed the crash for me.

I didn't attach a patch since it's a one-line change, but if it would
be easier for me to put one together I'd be happy to come back with
one.

Thanks,
Karl


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Karl Otness <karl <at> karlotness.com>
Cc: 32531-done <at> debbugs.gnu.org
Subject: Re: bug#32531: Emacs 27 crash with `memory-use-counts'
Date: Sun, 26 Aug 2018 17:54:03 +0300
> From: Karl Otness <karl <at> karlotness.com>
> Date: Sat, 25 Aug 2018 22:50:25 -0500
> 
> I've observed a crash with Emacs master (version as of a couple days
> ago). To reproduce with "emacs -q" just eval (memory-use-counts) in
> scratch. Printing or manipulating the list causes the crash.
> 
> The cause seems to that listn is called with a length of 8 rather than
> 7 in the source of memory-use-counts (alloc.c line 7020) when only
> seven elements are specified. Might be leftover from getting rid of
> misc. Bumping that number down to 7 fixed the crash for me.

Thanks, fixed.


This bug report was last modified 6 years and 328 days ago.

Previous Next


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