From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: aidalgol@amuri.net Newsgroups: gmane.emacs.bugs Subject: bug#18438: 24.4.50; assertion failed in bidi.c Date: Thu, 09 Oct 2014 11:20:51 +1300 Message-ID: <88ccbe34bf58322ae4b2a5657390c041@amuri.net> References: <4745242cd3e424a6c4d5db0e8d3e33d0@amuri.net> <83h9zrlzc8.fsf@gnu.org> <54297FDB.6090606@cornell.edu> <837g0mmkf3.fsf@gnu.org> <6b19fab333f3d362ae61b30b299d7206@amuri.net> <83iok5ku74.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412806883 10935 80.91.229.3 (8 Oct 2014 22:21:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 22:21:23 +0000 (UTC) Cc: 18438@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 00:21: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 1Xbzbg-0003bn-UO for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 00:21:17 +0200 Original-Received: from localhost ([::1]:38705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbzbe-00019i-Do for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 18:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbzbY-00019b-Cc for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 18:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbzbT-00029R-8V for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 18:21:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbzbT-00029M-56 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 18:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbzbS-0005Jq-F2 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 18:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: aidalgol@amuri.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Oct 2014 22:21:02 +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.141280685420421 (code B ref 18438); Wed, 08 Oct 2014 22:21:02 +0000 Original-Received: (at 18438) by debbugs.gnu.org; 8 Oct 2014 22:20:54 +0000 Original-Received: from localhost ([127.0.0.1]:38286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbzbJ-0005JI-3r for submit@debbugs.gnu.org; Wed, 08 Oct 2014 18:20:53 -0400 Original-Received: from goat.amuri.net ([203.99.132.195]:51233) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbzbE-0005J4-NQ for 18438@debbugs.gnu.org; Wed, 08 Oct 2014 18:20:50 -0400 Original-Received: from webmail.amuri.net (localhost [127.0.0.1]) by goat.amuri.net (Postfix) with ESMTP id DE5FE10019B; Thu, 9 Oct 2014 11:20:51 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=amuri.net; s=mail1; t=1412806852; bh=5b+PmLqWcs4RMDYHAjsR3kIHIg0uNOIlX0FW2VjWlf8=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:In-Reply-To:References:Message-ID; b=wYTgEaAczGqdeuone5qVG9K9bjpwquwyU9JuGKOOccxmGPdCAqb9kjGcuOnZ/wm3y +sPSM9O8a0C8wSFB12fvdZYHd10f2gilOgiyCgmLEKhLr1rDVnzdEEPKIAUPcC957o jIzAKDqk7SbJxtR3404142+oo1LrJJWBCwmDGlto= In-Reply-To: <83iok5ku74.fsf@gnu.org> X-Sender: aidalgol@amuri.net User-Agent: Roundcube Webmail/0.5.3 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:94313 On Tue, 30 Sep 2014 18:24:15 +0300, Eli Zaretskii wrote: >> Date: Tue, 30 Sep 2014 11:28:35 +1300 >> From: aidalgol@amuri.net >> Cc: Eli Zaretskii , Ken Brown >> >> On Mon, 29 Sep 2014 20:00:16 +0300, Eli Zaretskii wrote: >> > >> > Let's start by replacing eassert with its equivalent. Please run >> > with >> > the change below for some time and see if the assertions still >> > happen. >> > >> > (The purpose is to see whether small changes in the code have >> drastic >> > effects on the problem. If they do, it will be hard to know >> whether >> > some more serious change solves the problem or simply hides it.) >> >> Yes, they're still happening; I just got one after running with the >> patch for only a few hours. > > OK, so far so good. How about the one below (which tries to reveal > the face of the beast)? > > === modified file 'src/bidi.c' > --- src/bidi.c 2014-04-06 15:56:01 +0000 > +++ src/bidi.c 2014-09-30 15:21:28 +0000 > @@ -326,7 +326,12 @@ bidi_get_type (int ch, bidi_dir_t overri > static void > bidi_check_type (bidi_type_t type) > { > - eassert (UNKNOWN_BT <= type && type <= NEUTRAL_ON); > + if (!(suppress_checking || (UNKNOWN_BT <= type && type <= > NEUTRAL_ON))) > + { > + fprintf (stderr, "\r\n%s:%d: bidi type %d is not in > [%d..%d]\r\n", > + __FILE__, __LINE__, type, UNKNOWN_BT, NEUTRAL_ON); > + emacs_abort (); > + } > } > > /* Given a bidi TYPE of a character, return its category. */ OK, it finally happened. It printed out... bidi.c:332: bidi type 22 is not in [0..23] Isn't that a logical impossibility? What the hell is going on?