From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#17817: 24.3.91; Assertion failure in bidi.c (Cygwin-w32 build) Date: Fri, 20 Jun 2014 15:40:28 +0100 Message-ID: <53A447DC.3000108@cornell.edu> References: <53A43A2D.8020802@cornell.edu> <83wqcbr79c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1403275287 28953 80.91.229.3 (20 Jun 2014 14:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 14:41:27 +0000 (UTC) Cc: 17817@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 16:41:18 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 1Wy00E-0006vu-EG for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 16:41:18 +0200 Original-Received: from localhost ([::1]:41411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy00D-00077H-Vc for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 10:41:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy005-00074w-43 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:41:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxzzy-0001Ei-Gk for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:41:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxzzy-0001Ec-D5 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wxzzx-0002mN-OW for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jun 2014 14:41:01 +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.140327524510650 (code B ref 17817); Fri, 20 Jun 2014 14:41:01 +0000 Original-Received: (at 17817) by debbugs.gnu.org; 20 Jun 2014 14:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:54851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxzzd-0002la-AV for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:40:45 -0400 Original-Received: from limerock03.mail.cornell.edu ([128.84.12.34]:54643) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxzzW-0002lF-Ew for 17817@debbugs.gnu.org; Fri, 20 Jun 2014 10:40:38 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s5KEeSuQ019459; Fri, 20 Jun 2014 10:40:28 -0400 Original-Received: from [128.84.234.164] (dijon.math.cornell.edu [128.84.234.164]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s5KEeRvG027448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 20 Jun 2014 10:40:28 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <83wqcbr79c.fsf@gnu.org> 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:90592 Archived-At: On 6/20/2014 3:21 PM, Eli Zaretskii wrote: >> 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? Yes. >> #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. (gdb) p type + 0 $2 = 1 (gdb) p UNKNOWN_BT + 0 $3 = 0 (gdb) p NEUTRAL_ON + 0 $4 = 23 So, as you said, this is nonsense. Ken