unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 35429@debbugs.gnu.org
Subject: bug#35429: 27.0.50; Arbitrary xdisp.c related crashes when working with overlay-using packages
Date: Fri, 26 Apr 2019 22:04:54 +0300	[thread overview]
Message-ID: <83o94swpt5.fsf@gnu.org> (raw)
In-Reply-To: <CAFyQvY2VTpGbxtb1C40BvpVFxdK6VSNBCBwpYEZ3zMgDHAcygg@mail.gmail.com> (message from Kaushal Modi on Fri, 26 Apr 2019 14:34:38 -0400)

> From: Kaushal Modi <kaushal.modi@gmail.com>
> Date: Fri, 26 Apr 2019 14:34:38 -0400
> Cc: 35429@debbugs.gnu.org
> 
> (gdb) fr 2
> #2  0x0000000000456b44 in init_iterator (it=it@entry=0x7fffffff3040, w=w@entry=0x89da880, charpos=2874,
>     bytepos=<optimized out>, row=<optimized out>,
> base_face_id=base_face_id@entry=DEFAULT_FACE_ID)
>     at xdisp.c:3047
> 3047          eassert (charpos == BYTE_TO_CHAR (bytepos));
> (gdb) p w->start
> $13 = XIL(0x89daa95)
> (gdb) xmarker
> $14 = (struct Lisp_Marker *) 0x89daa90
> (gdb) p *$
> $15 = {
>   header = {
>     size = 4611686018477740032
>   },
>   buffer = 0x8d95c10,
>   need_adjustment = false,
>   insertion_type = false,
>   next = 0x89daaf0,
>   charpos = 2874,
>   bytepos = 2874
> }
> (gdb) 

So the window's start point is outdated.  How did that happen?  What
kind of stuff do you have on window-scroll-functions?  This should
show us:

  (gdb) pp Vwindow_scroll_functions

Also, what buffer does the window-start marker record?

  (gdb) fr 2
  (gdb) p w->start
  (gdb) xmarker
  (gdb) p $->buffer->name_
  (gdb) xstring





  reply	other threads:[~2019-04-26 19:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 15:36 bug#35429: 27.0.50; Arbitrary xdisp.c related crashes when working with overlay-using packages Kaushal Modi
2019-04-25 20:25 ` Eli Zaretskii
2019-04-25 20:39   ` Kaushal Modi
2019-04-26  7:17     ` Eli Zaretskii
2019-04-26 14:08       ` Kaushal Modi
2019-04-26 18:08         ` Eli Zaretskii
2019-04-26 18:22           ` Kaushal Modi
2019-04-26 18:32             ` Eli Zaretskii
2019-04-26 18:34               ` Kaushal Modi
2019-04-26 19:04                 ` Eli Zaretskii [this message]
2019-04-26 19:12                   ` Kaushal Modi
2019-04-26 19:25                     ` Eli Zaretskii
2019-04-26 19:39                       ` Kaushal Modi
2019-04-26 19:43                         ` Eli Zaretskii
2019-05-01 15:45                           ` Kaushal Modi
2019-05-01 17:19                             ` Eli Zaretskii
2019-04-26 19:43                         ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83o94swpt5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=35429@debbugs.gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).