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#16457: 24.3.50; crash rendering Arabic Uthmani script Date: Fri, 17 Jan 2014 11:10:16 +0200 Message-ID: <83ppnr0y9z.fsf@gnu.org> References: <52D6C466.9080909@yandex.ru> <838uuh3zx7.fsf@gnu.org> <7obnzcor73.fsf@fencepost.gnu.org> <52D791C0.7000405@yandex.ru> <83a9ev3k7x.fsf@gnu.org> <52D8DCF3.5030603@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1389949871 3508 80.91.229.3 (17 Jan 2014 09:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2014 09:11:11 +0000 (UTC) Cc: 16457@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 10:11:17 2014 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 1W45SO-0006wf-Pr for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 10:11:17 +0100 Original-Received: from localhost ([::1]:36965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45SN-0007sh-TB for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 04:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45SG-0007sP-1S for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:11:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W45SA-0002bn-LI for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:11:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45SA-0002Zm-AL for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W45S9-00044b-RP for bug-gnu-emacs@gnu.org; Fri, 17 Jan 2014 04:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jan 2014 09:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16457-submit@debbugs.gnu.org id=B16457.138994982115585 (code B ref 16457); Fri, 17 Jan 2014 09:11:01 +0000 Original-Received: (at 16457) by debbugs.gnu.org; 17 Jan 2014 09:10:21 +0000 Original-Received: from localhost ([127.0.0.1]:54414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W45RU-00043I-Jk for submit@debbugs.gnu.org; Fri, 17 Jan 2014 04:10:21 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:63841) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W45RR-000438-PY for 16457@debbugs.gnu.org; Fri, 17 Jan 2014 04:10:19 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MZJ00200G272500@a-mtaout23.012.net.il> for 16457@debbugs.gnu.org; Fri, 17 Jan 2014 11:10:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZJ001RLG53YC90@a-mtaout23.012.net.il>; Fri, 17 Jan 2014 11:10:15 +0200 (IST) In-reply-to: <52D8DCF3.5030603@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:83633 Archived-At: > Date: Fri, 17 Jan 2014 11:34:11 +0400 > From: Dmitry Antipov > CC: 16457@debbugs.gnu.org > > On 01/16/2014 09:33 PM, Eli Zaretskii wrote: > > > This is really strange. First, I cannot reproduce the crash on > > MS-Windows, so the problem might be related to the shaping engine > > being used (I presume yours is libotf and libm17n). (I tried on both > > Windows XP and on Windows 7, which have very different versions of > > Uniscribe, and they both work fine.) > > Yes, with ' --without-m17n-flt' it doesn't crash. Can you show the same results of debugging printouts in a "--without-m17n-flt" build? > ;; BAD > composition_update_it: from 7, nchars 2, header 0x100c958 is: > [# 1648 1583 1616 1593 1615 1608 1606 1614] > at 8: char 2, 1 bytes > at 7: char 1614, 2 bytes > > IIUC 2 is the garbage at (presumably invalid) position 8. What I see on my system that the CHARACTERs part of the header is 12 characters long: 1610 1615 1582 1614 1648 1583 1616 1593 1615 1608 1606 1614 and the value of cmp_it->from + i never goes beyond 11, which is OK. Also, note that the indices into the header seem to be off-by-one in your case: the characters to compose for buffer position 11 are 1606 and 1614, whereas in your case 1606 is used for the previous buffer position. Also, the index 1 is nowhere to be seen. So what does that mean? that cmp_it->nchars here cmp_it->nchars = LGLYPH_TO (glyph) + 1 - from; is incorrect in your case? Or that the gstring header becomes corrupted somehow? > > And the characters in the LGSTRING object are simply copied from the > > buffer in fill_gstring_header, when LGSTRING is created: > > > > for (i = 0; i < len; i++) > > { > > int c; > > > > if (NILP (string)) > > FETCH_CHAR_ADVANCE_NO_CHECK (c, from, from_byte); > > else > > FETCH_STRING_CHAR_ADVANCE_NO_CHECK (c, string, from, from_byte); > > ASET (header, i + 1, make_number (c)); > > } > > AFAICS gstring header is correct here. Can you show the gstring header at that point in the build that crashes? Also, if you manually move point to buffer position 11, what column number do you see there?