From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ari Roponen Newsgroups: gmane.emacs.bugs Subject: bug#5858: 24.0.50; bidi aborts: "can't happen" happens Date: Thu, 08 Apr 2010 12:03:55 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270718999 17519 80.91.229.12 (8 Apr 2010 09:29:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Apr 2010 09:29:59 +0000 (UTC) To: 5858@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 08 11:29:56 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzo32-0005fU-4i for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 11:29:56 +0200 Original-Received: from localhost ([127.0.0.1]:50548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzo2k-00023c-Vw for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 05:28:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nzo2d-00023X-Je for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:28:51 -0400 Original-Received: from [140.186.70.92] (port=56489 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzo2Z-00023L-Kt for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:28:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nzo2M-0003v0-0K for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:28:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55056) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzo2L-0003uw-SZ for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:28:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nznfa-0001Y1-GQ; Thu, 08 Apr 2010 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ari Roponen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2010 09:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5858 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12707174615941 (code B ref -1); Thu, 08 Apr 2010 09:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2010 09:04:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nznev-0001Xm-Lr for submit@debbugs.gnu.org; Thu, 08 Apr 2010 05:04:21 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nznet-0001Xh-F3 for submit@debbugs.gnu.org; Thu, 08 Apr 2010 05:04:20 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:46941) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nzneq-0007gI-6k for submit@debbugs.gnu.org; Thu, 08 Apr 2010 05:04:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nznep-00041b-Sl for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:04:15 -0400 Original-Received: from [140.186.70.92] (port=43096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzneo-00041T-Au for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:04:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nznef-0001EB-AY for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:04:13 -0400 Original-Received: from mail-ew0-f209.google.com ([209.85.219.209]:36120) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nznef-0001DW-5x for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 05:04:05 -0400 Original-Received: by ewy1 with SMTP id 1so895929ewy.15 for ; Thu, 08 Apr 2010 02:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type; bh=PpMfBJs4FnR8e3GP7THhCn5av/Ze+vQTN6pdP+hDbAs=; b=mAX4MIVWi7njPZpz8BGUxRPQB6NmHOk7ZNzh7VSw9GJv1OZHZeYzJr5IkBGXR+CnqP p2o+aQ1MsDP2Uk395RRt23sbn0t4TduvENQscGL8loNecN9On8c3CFTTKsib2uTWCgjz Dcet41QmRCmj9miLg5E8IBVMvPmQCQvvr5rLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=yHV55vE7r+Dws34/G4QURyxlI3On/utPr7oizE/wIM/fGa8jzgv6od6JCFtaJIxLGM L4i4AnRzxrPUzVR39hpwAUjcjrexA2W2YdXOquUz8YXTGyr5lmUTFaJxZjISXWQJmBXj vndcYkS6G2GG3KPSQJCysJM82fYTEt1YTjYlw= Original-Received: by 10.213.44.206 with SMTP id b14mr2785216ebf.45.1270717442750; Thu, 08 Apr 2010 02:04:02 -0700 (PDT) Original-Received: from arirop (dsl-jklbrasgw1-fecbdf00-152.dhcp.inet.fi [80.223.203.152]) by mx.google.com with ESMTPS id 14sm8627792ewy.14.2010.04.08.02.04.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Apr 2010 02:04:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Apr 2010 05:05:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36044 Archived-At: Hi, the following code crashes emacs by making code in bidi.c call abort(): (let ((bidi-display-reordering t)) (insert #x650 #x650) ; ARABIC KASRA (redisplay)) The place that calls abort() is in bidi_resolve_neutral(): #0 abort () at emacs.c:430 #1 0x0000000000490abe in bidi_resolve_neutral (bidi_it=0x7fffffff9000) at bidi.c:1577 #2 0x000000000049119a in bidi_level_of_next_char (bidi_it=0x7fffffff9000) at bidi.c:1713 ... (gdb) up #1 0x0000000000490abe in bidi_resolve_neutral (bidi_it=0x7fffffff9000) at bidi.c:1577 1577 abort (); /* can't happen: BNs are skipped */ (gdb) l 1572 next_type = STRONG_R; 1573 saved_it.next_for_neutral.type = STRONG_R; 1574 break; 1575 case WEAK_BN: 1576 if (!bidi_explicit_dir_char (bidi_it->ch)) 1577 abort (); /* can't happen: BNs are skipped */ 1578 /* FALLTHROUGH */ 1579 case NEUTRAL_B: 1580 /* Marched all the way to the end of this level run. 1581 We need to use the eor type, whose information is In GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.19.7) of 2010-04-07 on arirop Windowing system distributor `Fedora Project', version 11.0.10799901 -- Ari Roponen