all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: latest cvs segfault
Date: Wed, 11 Dec 2002 12:45:10 -0500	[thread overview]
Message-ID: <E18MAv0-00027L-00@fencepost.gnu.org> (raw)
In-Reply-To: <200212101224.gBACOFH05204@billwlx.wolfram.com> (message from Bill White on Tue, 10 Dec 2002 06:24:15 -0600)

    - backtrace:

    #0  set_cursor_from_row (w=0x92e0818, row=0x0, matrix=0x9399ef8, delta=0, 
	delta_bytes=0, dy=0, dvpos=0) at xdisp.c:9439
    #1  0x0806cef8 in try_window_id (w=0x92e0818) at xdisp.c:11773

That appears to be related to a bug fix I made a few days ago.
row_containing_pos must have returned zero.

The change below may fix the problem, but I am not certain it is
correct.  Anyway, can you please run under GDB all the time, with a
breakpoint set in set_cursor_from_row like this?

  b set_cursor_from_row if row==0

If it stops there, please try calling row_containing_pos the same way
it was called by try_window_id, but step through it and see precisely
why it returns zero.  In particular, what line does it return at?
(Show us the code on and around that line, not just the line number!)
What is the value of MATRIX_ROW_BOTTOM_Y (row) for the last row that
it thinks about?  And what is last_y?  Should it have found PT in the
previous row?


*** xdisp.c.~1.794.~	Sun Dec  8 16:06:46 2002
--- xdisp.c	Tue Dec 10 22:22:07 2002
***************
*** 11514,11520 ****
        /* Give up if we have gone too far.  */
        if (end && row >= end)
  	return NULL;
!       if (MATRIX_ROW_BOTTOM_Y (row) >= last_y)
  	return NULL;
  
        /* If it is in this row, return this row.  */
--- 11516,11522 ----
        /* Give up if we have gone too far.  */
        if (end && row >= end)
  	return NULL;
!       if (MATRIX_ROW_BOTTOM_Y (row) > last_y)
  	return NULL;
  
        /* If it is in this row, return this row.  */

       reply	other threads:[~2002-12-11 17:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200212101224.gBACOFH05204@billwlx.wolfram.com>
2002-12-11 17:45 ` Richard Stallman [this message]
2002-12-16 17:06   ` latest cvs segfault Bill White
2002-12-17 18:44     ` Richard Stallman
2002-12-18 12:32       ` Robert J. Chassell
2002-12-19 10:37         ` Miles Bader
2002-12-19 12:43           ` Robert J. Chassell

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

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

  git send-email \
    --in-reply-to=E18MAv0-00027L-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.