From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10159: auto-complete causes crash in emacs HEAD Date: Sat, 22 Sep 2012 15:40:15 +0300 Message-ID: <83haqqkz80.fsf@gnu.org> References: <83ipb6l15y.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348317695 12999 80.91.229.3 (22 Sep 2012 12:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 12:41:35 +0000 (UTC) Cc: 10159@debbugs.gnu.org To: Christopher Monsanto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 14:41:39 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TFP1b-0001uS-0a for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 14:41:35 +0200 Original-Received: from localhost ([::1]:46049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFP1W-0007BO-AX for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 08:41:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFP1R-0007AD-76 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:41:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFP1M-0006pJ-Nr for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:41:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFP1M-0006pE-Ks for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:41:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFP30-0002nv-CE for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10159-submit@debbugs.gnu.org id=B10159.134831774310737 (code B ref 10159); Sat, 22 Sep 2012 12:43:02 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 22 Sep 2012 12:42:23 +0000 Original-Received: from localhost ([127.0.0.1]:48275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFP2I-0002n3-S3 for submit@debbugs.gnu.org; Sat, 22 Sep 2012 08:42:23 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:57285) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFP2B-0002mq-FQ for 10159@debbugs.gnu.org; Sat, 22 Sep 2012 08:42:15 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MAR00K004BDAR00@a-mtaout20.012.net.il> for 10159@debbugs.gnu.org; Sat, 22 Sep 2012 15:40:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAR00J8Z4JFTMC0@a-mtaout20.012.net.il>; Sat, 22 Sep 2012 15:40:27 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64736 Archived-At: > From: Christopher Monsanto > Date: Sat, 22 Sep 2012 08:19:11 -0400 > Cc: 10159@debbugs.gnu.org > > Same here. > > (gdb) pp string > #(" " 0 36 (face popup-tip-face > keymap nil popup-item "")) That's good to know, thanks. > Thanks. Seems to me that this value is coming from xdisp.c, > display_line, var n_glyphs_before, derived from row->used[TEXT_AREA] > (line 19425). No, it comes from it->end_charpos, the length of the previous overlay string, because when the next overlay string is loaded, its length was not reflected in the value of it->end_charpos. Should be fixed now in revision 110135 on the trunk. > (I wish I knew what a "struct it" is, not the most > descriptive name! :-)) "it" stands for "iterator". 'struct it' is an object used by the display engine to iterate over buffers or strings to be displayed, one character at a time, with the purpose of generating the information required by the display back-end (X, TTY, etc.) to update the screen. See dispextern.h around line 1925, for more about that. Please test revision 110135 thoroughly with auto-complete, and if you find no problems, I will close this bug.