GNU bug report logs - #18180
24.3.92; Segfault in mark_object

Previous Next

Package: emacs;

Reported by: Mat Smiglarski <penthief <at> SDF.ORG>

Date: Sun, 3 Aug 2014 15:05:02 UTC

Severity: normal

Found in version 24.3.92

Fixed in version 24.3.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Dmitry Antipov <dmantipov <at> yandex.ru>
To: Mat Smiglarski <penthief <at> SDF.ORG>
Cc: 18180 <at> debbugs.gnu.org
Subject: Re: bug#18180: 24.3.92; Segfault in mark_object
Date: Mon, 04 Aug 2014 13:15:32 +0400
On 08/04/2014 10:46 AM, Mat Smiglarski wrote:

> I have not been able to reproduce this by automating the calls to stress-speed-read.

Reproduced with (dotimes (i 100) (stress-speed-read (current-buffer)))).

Ugh, it seems that we never initialize undo-list of indirect buffer.  You can use
this trivial fix just to avoid crash:

=== modified file 'src/buffer.c'
--- src/buffer.c	2014-07-27 13:21:30 +0000
+++ src/buffer.c	2014-08-04 09:06:08 +0000
@@ -825,6 +825,7 @@
   name = Fcopy_sequence (name);
   set_string_intervals (name, NULL);
   bset_name (b, name);
+  bset_undo_list (b, BVAR (b->base_buffer, undo_list));

   reset_buffer (b);
   reset_buffer_local_variables (b, 1);

But this bug raises an interesting question: should an indirect buffer's undo list
be always the same as the one of its base buffer?

Dmitry





This bug report was last modified 10 years and 282 days ago.

Previous Next


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