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#11199: 24.0.95; killing right-to-left text at eob leads to inconsistent state Date: Mon, 09 Apr 2012 00:07:42 +0300 Message-ID: <83ty0u7x0h.fsf@gnu.org> References: <83bon2ad9z.fsf@gnu.org> <8762dacc3w.fsf@maru.md5i.com> <831uny9ekk.fsf@gnu.org> <87ty0uasiq.fsf@maru.md5i.com> <83y5q67z7h.fsf@gnu.org> <87lim6as39.fsf@maru.md5i.com> <83wr5q7yf1.fsf@gnu.org> <87hawuar05.fsf@maru.md5i.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1333919418 3355 80.91.229.3 (8 Apr 2012 21:10:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2012 21:10:18 +0000 (UTC) Cc: 11199@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 23:10:17 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 1SGzNJ-0002rb-Ah for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 23:10:17 +0200 Original-Received: from localhost ([::1]:37119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGzNI-0002iv-L0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 17:10:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGzNF-0002i4-FA for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 17:10:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGzND-00042L-BG for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 17:10:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGzND-00042G-7Z for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 17:10:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SGzO2-0007Cw-Fm for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 17:11: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, 08 Apr 2012 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11199 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11199-submit@debbugs.gnu.org id=B11199.133391943827673 (code B ref 11199); Sun, 08 Apr 2012 21:11:02 +0000 Original-Received: (at 11199) by debbugs.gnu.org; 8 Apr 2012 21:10:38 +0000 Original-Received: from localhost ([127.0.0.1]:45021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGzNd-0007CH-22 for submit@debbugs.gnu.org; Sun, 08 Apr 2012 17:10:37 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:63903) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGzNa-0007C8-0w for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 17:10:35 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2600J00I1MJQ00@a-mtaout23.012.net.il> for 11199@debbugs.gnu.org; Mon, 09 Apr 2012 00:09:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2600J66IS2HBA0@a-mtaout23.012.net.il>; Mon, 09 Apr 2012 00:09:39 +0300 (IDT) In-reply-to: <87hawuar05.fsf@maru.md5i.com> 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:58604 Archived-At: > From: Michael Welsh Duggan > Cc: mituharu@math.s.chiba-u.ac.jp, 11199@debbugs.gnu.org > Date: Sun, 08 Apr 2012 16:49:14 -0400 > > > Btw, if you set bidi-display-reordering nil in *scratch* before typing > > the recipe, does the crash still happen? > > It does not. If you need me to poke around just point me in the right > direction. Well, it would help if you could find out how does row->end get out of sync with row->maxpos, for this specific row. Both end and maxpos are set near the end of display_line, around line 19480 of xdisp.c. They are identical when bidi-display-reordering is turned off, but different when it's on (because maxpos-1 gives the largest buffer position of the characters in the row, while end-1 gives the buffer position of the rightmost character on display). In this case, it looks like row->end came from a totally different screen line, the one that was killed by C-k. I wonder how could that happen and which code is responsible. Perhaps some code tries to reuse existing rows, and goofs. One way to find out is to step through the code in display_line that computes row->end and row->maxpos for the offending line, the one that starts with " (insert", and then put a hardware watchpoint on the 'end' field of that glyph_row structure, and see when it triggers. TIA