From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: latest cvs segfault Date: Wed, 11 Dec 2002 12:45:10 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200212101224.gBACOFH05204@billwlx.wolfram.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1039636585 18650 80.91.224.249 (11 Dec 2002 19:56:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 19:56:25 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MCxz-0004qc-00 for ; Wed, 11 Dec 2002 20:56:23 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18MD9B-0008D2-00 for ; Wed, 11 Dec 2002 21:07:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MCf9-0000Fv-05 for emacs-devel@quimby.gnus.org; Wed, 11 Dec 2002 14:36:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18MCeo-0000DE-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 14:36:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18MCem-0000CE-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 14:36:33 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MAv1-0000kL-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 12:45:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18MAv0-00027L-00; Wed, 11 Dec 2002 12:45:10 -0500 Original-To: billw@wolfram.com In-reply-to: <200212101224.gBACOFH05204@billwlx.wolfram.com> (message from Bill White on Tue, 10 Dec 2002 06:24:15 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10066 - 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. */