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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32531 in the body.
You can then email your comments to 32531 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#32531; Package emacs. (Sun, 26 Aug 2018 03:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Karl Otness <karl <at> karlotness.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 26 Aug 2018 03:51:02 GMT) Full text and rfc822 format available.

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

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




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 26 Aug 2018 14:55:02 GMT) Full text and rfc822 format available.

Notification sent to Karl Otness <karl <at> karlotness.com>:
bug acknowledged by developer. (Sun, 26 Aug 2018 14:55:02 GMT) Full text and rfc822 format available.

Message #10 received at 32531-done <at> debbugs.gnu.org (full text, mbox):

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.




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

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

Previous Next


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