bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17269: 24.3.90; assertion failure at buf_charpos_to_bytepos (marker.


From: Eli Zaretskii
Subject: 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@yahoo.fr>
> CC: 17269@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]