unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32531: Emacs 27 crash with `memory-use-counts'
@ 2018-08-26  3:50 Karl Otness
  2018-08-26 14:54 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Otness @ 2018-08-26  3:50 UTC (permalink / raw)
  To: 32531

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#32531: Emacs 27 crash with `memory-use-counts'
  2018-08-26  3:50 bug#32531: Emacs 27 crash with `memory-use-counts' Karl Otness
@ 2018-08-26 14:54 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2018-08-26 14:54 UTC (permalink / raw)
  To: Karl Otness; +Cc: 32531-done

> From: Karl Otness <karl@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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-26 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-26  3:50 bug#32531: Emacs 27 crash with `memory-use-counts' Karl Otness
2018-08-26 14:54 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).