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 12:43:14 -0400 Message-ID: <53A464A2.3080001@cornell.edu> References: <53A43A2D.8020802@cornell.edu> <83wqcbr79c.fsf@gnu.org> <53A447DC.3000108@cornell.edu> <83r42jr63a.fsf@gnu.org> <53A44B18.3040202@cornell.edu> 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 1403282664 27405 80.91.229.3 (20 Jun 2014 16:44:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 16:44:24 +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 18:44: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 1Wy1vD-0004DZ-Va for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 18:44:16 +0200 Original-Received: from localhost ([::1]:42017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy1vD-0001d8-Kl for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 12:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy1v6-0001c6-Hi for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 12:44:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wy1v1-0007Pn-D9 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 12:44:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy1v1-0007Pg-A2 for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 12:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wy1v0-0006zE-Ln for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 12:44:02 -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 16:44: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.140328261126808 (code B ref 17817); Fri, 20 Jun 2014 16:44:02 +0000 Original-Received: (at 17817) by debbugs.gnu.org; 20 Jun 2014 16:43:31 +0000 Original-Received: from localhost ([127.0.0.1]:54927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy1uR-0006yD-6Z for submit@debbugs.gnu.org; Fri, 20 Jun 2014 12:43:30 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.12.60]:54199) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy1uJ-0006xu-Tv for 17817@debbugs.gnu.org; Fri, 20 Jun 2014 12:43:23 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s5KGhDaF014574; Fri, 20 Jun 2014 12:43:14 -0400 Original-Received: from [10.32.12.155] (erdhcp-10-32-12-155.eduroam.cornell.edu [10.32.12.155]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s5KGhDZY021430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 20 Jun 2014 12:43:13 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <53A44B18.3040202@cornell.edu> 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:90601 Archived-At: On 6/20/2014 10:54 AM, Ken Brown wrote: > On 6/20/2014 3:47 PM, Eli Zaretskii wrote: >>> Date: Fri, 20 Jun 2014 15:40:28 +0100 >>> From: Ken Brown >>> CC: 17817@debbugs.gnu.org >>> >>> (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. >> >> Yeah. But still, the machine insists the value was bad. Hmmm... >> >> Can you show the disassembly of bidi_check_type? > > (gdb) disas bidi_check_type > Dump of assembler code for function bidi_check_type: > 0x004d2837 <+0>: push %ebp > 0x004d2838 <+1>: mov %esp,%ebp > 0x004d283a <+3>: sub $0x18,%esp > 0x004d283d <+6>: movzbl 0x9063f8,%eax > 0x004d2844 <+13>: xor $0x1,%eax > 0x004d2847 <+16>: test %al,%al > 0x004d2849 <+18>: je 0x4d286d > 0x004d284b <+20>: cmpl $0x17,0x8(%ebp) > 0x004d284f <+24>: jbe 0x4d286d > 0x004d2851 <+26>: movl $0x149,0x8(%esp) > 0x004d2859 <+34>: movl $0x86cc70,0x4(%esp) > 0x004d2861 <+42>: movl $0x86ccbc,(%esp) > 0x004d2868 <+49>: call 0x56e818 > 0x004d286d <+54>: leave > 0x004d286e <+55>: ret > End of assembler dump. Sorry, that's from the 32-bit build. Here's the correct one: (gdb) disas bidi_check_type Dump of assembler code for function bidi_check_type: 0x00000001004fb4c3 <+0>: push %rbp 0x00000001004fb4c4 <+1>: mov %rsp,%rbp 0x00000001004fb4c7 <+4>: sub $0x20,%rsp 0x00000001004fb4cb <+8>: mov %ecx,0x10(%rbp) 0x00000001004fb4ce <+11>: mov 0x56402b(%rip),%rax # 0x100a5f500 <.refptr.suppress_checking> 0x00000001004fb4d5 <+18>: movzbl (%rax),%eax 0x00000001004fb4d8 <+21>: xor $0x1,%eax 0x00000001004fb4db <+24>: test %al,%al 0x00000001004fb4dd <+26>: je 0x1004fb4ff 0x00000001004fb4df <+28>: cmpl $0x17,0x10(%rbp) 0x00000001004fb4e3 <+32>: jbe 0x1004fb4ff 0x00000001004fb4e5 <+34>: mov $0x149,%r8d 0x00000001004fb4eb <+40>: lea 0x53303e(%rip),%rdx # 0x100a2e530 0x00000001004fb4f2 <+47>: lea 0x53303f(%rip),%rcx # 0x100a2e538 0x00000001004fb4f9 <+54>: callq 0x1005ba90b => 0x00000001004fb4fe <+59>: nop 0x00000001004fb4ff <+60>: add $0x20,%rsp 0x00000001004fb503 <+64>: pop %rbp 0x00000001004fb504 <+65>: retq End of assembler dump.