GNU bug report logs - #17269
24.3.90; assertion failure at buf_charpos_to_bytepos (marker.c)

Previous Next

Package: emacs;

Reported by: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>

Date: Tue, 15 Apr 2014 14:29:01 UTC

Severity: normal

Found in version 24.3.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 17269 <at> debbugs.gnu.org
Subject: Re: bug#17269: 24.3.90;
 assertion failure at buf_charpos_to_bytepos (marker.c)
Date: Tue, 15 Apr 2014 21:11:45 +0300
> Date: Tue, 15 Apr 2014 18:11:59 +0200
> From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
> CC: 17269 <at> debbugs.gnu.org
> 
> > It's related, but can you reproduce this in "emacs -Q"?
> 
> Not yet, but it seems to be triggered by the bug report because it just happened again. I'll look at it later. I have to run now.

Thanks.

> > What is the value of BUF_Z(b) in frame #2?
> 
> (gdb) f 2
> #2  0x081bc08d in buf_charpos_to_bytepos (b=0x9b42080, charpos=14233) at marker.c:145
> 145       eassert (BUF_BEG (b) <= charpos && charpos <= BUF_Z (b));
> (gdb) p BUF_Z(b)
> $1 = 14231
> (gdb) xpr
> Lisp_Float
> Cannot access memory at address 0x3790
> 
> Perhaps I'm using the wrong command ?

No, you just don't need xpr, 14231 is a simple number.

> > Also, what is the major mode in the buffer in question?
> 
> Could you tell me how to find out with gdb ?

(gdb) p b->name_
(gdb) xstring

This will print the name of the buffer, which should be enough for you
to know its major mode.




This bug report was last modified 11 years and 98 days ago.

Previous Next


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