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, 17 Sep 2014 08:07:34 +0300 Message-ID: <8361gm4yy1.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410930510 7063 80.91.229.3 (17 Sep 2014 05:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2014 05:08:30 +0000 (UTC) Cc: 18438@debbugs.gnu.org To: aidalgol@amuri.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 07:08:19 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 1XU7TX-00082L-EF for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 07:08:19 +0200 Original-Received: from localhost ([::1]:42066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU7TW-00063Y-R2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 01:08:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU7TP-00063P-2V for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 01:08:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XU7TJ-0003iw-M0 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 01:08:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU7TJ-0003iq-Gg for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 01:08:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XU7TF-0008Ab-TK for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 01:08: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: Wed, 17 Sep 2014 05:08: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.141093046231373 (code B ref 18438); Wed, 17 Sep 2014 05:08:01 +0000 Original-Received: (at 18438) by debbugs.gnu.org; 17 Sep 2014 05:07:42 +0000 Original-Received: from localhost ([127.0.0.1]:42887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XU7Sv-00089x-PR for submit@debbugs.gnu.org; Wed, 17 Sep 2014 01:07:42 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:53107) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XU7Sr-00089l-PT for 18438@debbugs.gnu.org; Wed, 17 Sep 2014 01:07:39 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NC100C004MUTD00@mtaout24.012.net.il> for 18438@debbugs.gnu.org; Wed, 17 Sep 2014 08:02:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NC10028A4NTCWA0@mtaout24.012.net.il>; Wed, 17 Sep 2014 08:02:17 +0300 (IDT) In-reply-to: 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:93419 Archived-At: > Date: Wed, 17 Sep 2014 10:42:18 +1200 > From: aidalgol@amuri.net > Cc: Eli Zaretskii > > On Tue, 16 Sep 2014 17:33:09 +0300, Eli Zaretskii wrote: > > If you don't mind messing with assembler, it would be interesting to > > disassemble bidi_check_type, see in which register it holds the value > > when it tests it, and then look at the actual value in that register > > in the bidi_check_type's call-stack frame. > > Sure, but I'm not very familiar with x86 assembly, so I'll just post > the entire disassemble output to start with and someone else will have > to identify the register of interest. > > Dump of assembler code for function bidi_check_type: > 0x00000001005010c3 <+0>: push %rbp > 0x00000001005010c4 <+1>: mov %rsp,%rbp > 0x00000001005010c7 <+4>: sub $0x20,%rsp > 0x00000001005010cb <+8>: mov %ecx,0x10(%rbp) > 0x00000001005010ce <+11>: mov 0x58ab9b(%rip),%rax # > 0x100a8bc70 <.refptr.suppress_checking> > 0x00000001005010d5 <+18>: movzbl (%rax),%eax > 0x00000001005010d8 <+21>: xor $0x1,%eax > 0x00000001005010db <+24>: test %al,%al > 0x00000001005010dd <+26>: je 0x1005010ff > 0x00000001005010df <+28>: cmpl $0x17,0x10(%rbp) > 0x00000001005010e3 <+32>: jbe 0x1005010ff > 0x00000001005010e5 <+34>: mov $0x149,%r8d > 0x00000001005010eb <+40>: lea 0x5599de(%rip),%rdx # > 0x100a5aad0 > 0x00000001005010f2 <+47>: lea 0x5599df(%rip),%rcx # > 0x100a5aad8 > 0x00000001005010f9 <+54>: callq 0x1005b9a15 > => 0x00000001005010fe <+59>: nop > 0x00000001005010ff <+60>: add $0x20,%rsp > 0x0000000100501103 <+64>: pop %rbp > 0x0000000100501104 <+65>: retq > End of assembler dump. My reading of this is: . the value being tested is originally in ECX . it is stored in a temporary local variable at RBP+0x10 . then it is compared with 0x17 (decimal 23) So you have two places to check: the ECX register and the value pointed to by RBP+0x10. Thanks.