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#11417: 24.0.96; infinite looping in xdisp.c Date: Sun, 06 May 2012 19:18:45 +0300 Message-ID: <83havt4716.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336321334 29580 80.91.229.3 (6 May 2012 16:22:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 May 2012 16:22:14 +0000 (UTC) Cc: 11417@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 06 18:22:13 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 1SR4Dt-0005Wv-8S for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 May 2012 18:22:13 +0200 Original-Received: from localhost ([::1]:58052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR4Ds-0000lk-Jx for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 May 2012 12:22:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR4Dp-0000l8-1z for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:22:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SR4Dn-0000d8-4a for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:22:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR4Dn-0000d3-0g for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:22:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SR4Fe-0003w0-Fx for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 12:24: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: Sun, 06 May 2012 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11417-submit@debbugs.gnu.org id=B11417.133632138315057 (code B ref 11417); Sun, 06 May 2012 16:24:02 +0000 Original-Received: (at 11417) by debbugs.gnu.org; 6 May 2012 16:23:03 +0000 Original-Received: from localhost ([127.0.0.1]:38771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR4Eg-0003um-JB for submit@debbugs.gnu.org; Sun, 06 May 2012 12:23:02 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38511) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR4Ee-0003uD-5c for 11417@debbugs.gnu.org; Sun, 06 May 2012 12:23:01 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M3M00600022CY00@a-mtaout22.012.net.il> for 11417@debbugs.gnu.org; Sun, 06 May 2012 19:20:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3M004L202IQ8S0@a-mtaout22.012.net.il>; Sun, 06 May 2012 19:20:43 +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:59818 Archived-At: > From: Leo > Date: Sun, 06 May 2012 12:24:34 +0800 > > I have yet to find a minimal example to reproduce this. I know the > following few facts. It must be run under tty and seems to related to > overlays. It was triggered by flymake in some python files. The contents > of those files are only partly displayed by Emacs (see screenshots > attached). My Emacs was built on 2012-04-28. >From which branch did you build your Emacs? Trunk or emacs-24? > Run till exit from #0 0x000000010003d316 in move_it_in_display_line_to (it=0x7fff5fbfb248, to_charpos=411, to_x=-1, op=12) at xdisp.c:7990 > 0x000000010003f702 in move_it_to (it=0x7fff5fbfb248, to_charpos=411, to_x=-1, to_y=-1, to_vpos=1, op=12) at xdisp.c:8536 > 8536 skip = move_it_in_display_line_to (it, to_charpos, to_x, op); > Value returned is $2 = MOVE_POS_MATCH_OR_ZV > (gdb) > Run till exit from #0 0x000000010003f702 in move_it_to (it=0x7fff5fbfb248, to_charpos=411, to_x=-1, to_y=-1, to_vpos=1, op=12) at xdisp.c:8536 > move_it_vertically_backward (it=0x7fff5fbfce20, dy=0) at xdisp.c:8816 > 8816 && SREF (it2.string, IT_STRING_BYTEPOS (it2) - 1) == '\n'))); > (gdb) next > 8804 move_it_to (&it2, start_pos, -1, -1, it2.vpos + 1, > (gdb) > 8816 && SREF (it2.string, IT_STRING_BYTEPOS (it2) - 1) == '\n'))); > (gdb) > 8804 move_it_to (&it2, start_pos, -1, -1, it2.vpos + 1, > (gdb) > 8816 && SREF (it2.string, IT_STRING_BYTEPOS (it2) - 1) == '\n'))); > (gdb) > 8804 move_it_to (&it2, start_pos, -1, -1, it2.vpos + 1, > (gdb) > 8816 && SREF (it2.string, IT_STRING_BYTEPOS (it2) - 1) == '\n'))); > (gdb) > 8804 move_it_to (&it2, start_pos, -1, -1, it2.vpos + 1, > (gdb) > 8816 && SREF (it2.string, IT_STRING_BYTEPOS (it2) - 1) == '\n'))); First, please provide the entire backtrace from here to main, and also the Lisp backtrace (from the "xbacktrace" command). You will need to make sure GDB reads the src/.gdbinit file for "xbacktrace" to work, and also for several other commands below. Second, I need to see some of the variables involved in this: (gdb) p start_pos (gdb) p it2.vpos (gdb) p it2.current (gdb) p it2.string (gdb) xtype (gdb) p it2.method Finally, can you describe what should be displayed on the portion of the screen that is around the character position (shown by "p it2.current" above) where Emacs loops? The following command should display detailed information about the screen line that includes the above buffer position: (gdb) pgrowx (it2.w->desired_matrix->rows+N) where N is the zero-based number of the screen line. If you cannot easily figure out the value of N, try the above command for successive values starting from zero, until you see the first screen line that is not displayed. Thanks.