GNU bug report logs - #24368
25.1; Assertion failure in attach_marker

Previous Next

Package: emacs;

Reported by: martin rudalics <rudalics <at> gmx.at>

Date: Mon, 5 Sep 2016 07:26:02 UTC

Severity: normal

Found in version 25.1

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: 24368 <at> debbugs.gnu.org
Subject: Re: bug#24368: 25.1; Assertion failure in attach_marker
Date: Mon, 05 Sep 2016 17:04:08 +0200
> The ensuing assertion failure should not happen though - somehow we
> don't recognize that we set a marker in the wrong buffer.

FWIW, in attach_marker if m->buffer != b the check

  if (BUF_Z (b) == BUF_Z_BYTE (b))
    eassert (charpos == bytepos);
  else
    eassert (charpos <= bytepos);

will fail when b has the same char and byte sizes but charpos and
bytepos differ in m->buffer (like *Help* with its various quotes).  A
thinko.

martin




This bug report was last modified 8 years and 292 days ago.

Previous Next


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