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 #20 received at 24368 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 24368 <at> debbugs.gnu.org
Subject: Re: bug#24368: 25.1; Assertion failure in attach_marker
Date: Mon, 05 Sep 2016 19:25:56 +0300
> Date: Mon, 05 Sep 2016 17:04:08 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> 
> 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.

Obviously, the BUF_z vs BUF_Z_BYTE test should be done for the same
buffer whose character and byte positions we compare in the
assertions.




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.