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#18438: 24.4.50; assertion failed in bidi.c Date: Wed, 24 Sep 2014 18:01:14 +0300 Message-ID: <83fvfhvz9h.fsf@gnu.org> References: "\"<4745242cd3e424a6c4d5db0e8d3e33d0@amuri.net> " <54109EB5.2060801@amuri.net> " <8338bz9tt7.fsf@gnu.org> " <153d642db591b29dba44712b44194385@amuri.net> " <8361gt8jjz.fsf@gnu.org> " <8338bx8enz.fsf@gnu.org> " <47b6853869d32221142fecc7dff1d3e8@amuri.net> " <83sijs46yu.fsf@gnu.org> " " <83ppev4ouy.fsf@gnu.org> " " <8361gm4yy1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411570953 1043 80.91.229.3 (24 Sep 2014 15:02:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 15:02:33 +0000 (UTC) Cc: 18438@debbugs.gnu.org, aidalgol@amuri.net To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 24 17:02:25 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 1XWo5H-0005ry-Bj for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2014 17:02:23 +0200 Original-Received: from localhost ([::1]:60376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWo5G-0002sA-W8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2014 11:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWo57-0002qA-Ta for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2014 11:02:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWo51-00081f-Ls for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2014 11:02:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWo51-00080n-JC for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2014 11:02:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XWo4v-0000ZJ-Nn for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2014 11:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Sep 2014 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18438-submit@debbugs.gnu.org id=B18438.14115708832131 (code B ref 18438); Wed, 24 Sep 2014 15:02:01 +0000 Original-Received: (at 18438) by debbugs.gnu.org; 24 Sep 2014 15:01:23 +0000 Original-Received: from localhost ([127.0.0.1]:50901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XWo4I-0000YI-Sk for submit@debbugs.gnu.org; Wed, 24 Sep 2014 11:01:23 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:53222) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XWo4F-0000Y3-IK for 18438@debbugs.gnu.org; Wed, 24 Sep 2014 11:01:20 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCE00900V0VTS00@a-mtaout22.012.net.il> for 18438@debbugs.gnu.org; Wed, 24 Sep 2014 18:01:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCE009R3V25C070@a-mtaout22.012.net.il>; Wed, 24 Sep 2014 18:01:17 +0300 (IDT) In-reply-to: <5422CFE6.3010109@cornell.edu> 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:93684 Archived-At: > Date: Wed, 24 Sep 2014 10:06:30 -0400 > From: Ken Brown > CC: Eli Zaretskii > > By the way, I just got the same assertion failure in bidi.c, with a > backtrace under gdb 7.8 (attached). What is the backtrace of the other threads? > The assertion failure still doesn't make sense because > type=STRONG_L. But I see lots of strange values of "type" in frames > 3 and higher. Which ones? The only ones I see are these: #3 0x00000001005009cc in bidi_level_of_next_char (bidi_it=0x426878) at /usr/src/debug/emacs-24.3.93-4/src/bidi.c:2325 eob = 811 type = UNKNOWN_BT level = 0 prev_level = -1 next_for_neutral = { bytepos = 4353152, charpos = 4300194024, type = 4344736, <<<<<<<<<<<<<<<<<<<<<<<<<<< type_after_w1 = UNKNOWN_BT, orig_type = 2148292989 <<<<<<<<<<<<<<<<<<<<<<<<<<< } which is OK, since the next_for_neutral member doesn't have to be initialized (the UNKNOWN_BT value in type_after_w1 says it isn't), and will not be used until it is. Others are in frame #6, like this: bidi_it = { bytepos = 4348392, charpos = 4306733202, ch = 5482662, nchars = 25775286310, ch_len = 25775286790, type = 4348416, type_after_w1 = UNKNOWN_BT, orig_type = 6632775, but it is from the wrap_it variable, which is not assigned values unless you have word-wrap turned on in that buffer. I also see a 'struct it' in redisplay_window (frame #8) with garbled bidi type values, but that variable is only used under certain conditions (see line 16178 of xdisp.c), and I have no reason to believe those conditions were true in this case. So I don't really see any immediate problems here. We are left with the riddle.