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#17817: 24.3.91; Assertion failure in bidi.c (Cygwin-w32 build) Date: Fri, 20 Jun 2014 17:21:51 +0300 Message-ID: <83wqcbr79c.fsf@gnu.org> References: <53A43A2D.8020802@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403276336 10773 80.91.229.3 (20 Jun 2014 14:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 14:58:56 +0000 (UTC) Cc: 17817@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 16:58:47 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 1Wy0H6-0007us-Kv for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 16:58:44 +0200 Original-Received: from localhost ([::1]:41464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0H6-0005xZ-CO for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 10:58:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxzie-0000ld-QC for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:23:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxziY-0002MD-U2 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:23:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxziY-0002M8-QT for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WxziY-0002H1-G1 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jun 2014 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17817-submit@debbugs.gnu.org id=B17817.14032741358671 (code B ref 17817); Fri, 20 Jun 2014 14:23:02 +0000 Original-Received: (at 17817) by debbugs.gnu.org; 20 Jun 2014 14:22:15 +0000 Original-Received: from localhost ([127.0.0.1]:54823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxzhm-0002Fn-J1 for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:22:14 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47983) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxzhi-0002FR-R4 for 17817@debbugs.gnu.org; Fri, 20 Jun 2014 10:22:12 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N7H00400168RQ00@a-mtaout20.012.net.il> for 17817@debbugs.gnu.org; Fri, 20 Jun 2014 17:22:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7H004UW18RCO30@a-mtaout20.012.net.il>; Fri, 20 Jun 2014 17:22:04 +0300 (IDT) In-reply-to: <53A43A2D.8020802@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:90595 Archived-At: > Date: Fri, 20 Jun 2014 14:42:05 +0100 > From: Ken Brown > > I just got the following assertion failure: > > bidi.c:329: Emacs fatal error: assertion failed: UNKNOWN_BT <= type > && type <= NEUTRAL_ON Is this the same 64-bit Cygwin-w32 build that was reported lately to produce nonsensical backtraces? > #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:351 > No locals. > #1 0x00000001005ba95d in die ( > msg=0x100a2e538 "UNKNOWN_BT <= type && type <= NEUTRAL_ON", file=0x100a2e530 "bidi.c", line=329) > at alloc.c:6826 > No locals. > #2 0x00000001004fb4fe in bidi_check_type (type=STRONG_L) at bidi.c:329 > No locals. > #3 0x0000000100500630 in bidi_level_of_next_char (bidi_it=0x2267d8) > at bidi.c:2430 > type = STRONG_L > level = 0 > prev_level = 0 > next_for_neutral = { > bytepos = 0, > charpos = -1, > type = UNKNOWN_BT, > type_after_w1 = UNKNOWN_BT, > orig_type = UNKNOWN_BT > } > next_char_pos = 1 This makes no sense at all: STRONG_L is one of the bidi types defined by 'enum bidi_type_t' (see dispextern.h), and therefore its value _must_ be between UNKNOWN_BT (whose value is zero) and NEUTRAL_ON, the last tag in the enumeration type. Can you see the numerical value of 'type' in frame #2? Like this: (gdb) fr 2 (gdb) p type + 0 Also, using a similar technique, display the values of UNKNOWN_BT and of NEUTRAL_ON. Other than that, the backtrace you show is just a normal redisplay cycle. Nothing catches my eye. In particular, the crash was while the display engine was recomputing the mode-line display.