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#10617: 24.0.92; Bidi crash reading a message from emacs-devel Date: Fri, 27 Jan 2012 11:03:49 +0200 Message-ID: <83pqe5zfd6.fsf@gnu.org> References: <87ehumm6jt.fsf@spindle.srvr.nix> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1327655206 16887 80.91.229.12 (27 Jan 2012 09:06:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 09:06:46 +0000 (UTC) Cc: 10617@debbugs.gnu.org To: Nix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 27 10:06:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RqhlY-0007wI-JL for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jan 2012 10:06:40 +0100 Original-Received: from localhost ([::1]:36350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqhlY-0003Kl-1p for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jan 2012 04:06:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqhlQ-0003Ej-GY for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 04:06:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqhlK-0003Ql-G3 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 04:06:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqhlK-0003Qa-9a for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 04:06:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rqhlu-0002m9-03 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 04:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jan 2012 09:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10617-submit@debbugs.gnu.org id=B10617.132765520110643 (code B ref 10617); Fri, 27 Jan 2012 09:07:01 +0000 Original-Received: (at 10617) by debbugs.gnu.org; 27 Jan 2012 09:06:41 +0000 Original-Received: from localhost ([127.0.0.1]:46174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqhlY-0002lb-OG for submit@debbugs.gnu.org; Fri, 27 Jan 2012 04:06:41 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:52095) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqhlV-0002lM-JI for 10617@debbugs.gnu.org; Fri, 27 Jan 2012 04:06:39 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYG0020094ANX00@a-mtaout20.012.net.il> for 10617@debbugs.gnu.org; Fri, 27 Jan 2012 11:05:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYG002ZZ99S2660@a-mtaout20.012.net.il>; Fri, 27 Jan 2012 11:05:53 +0200 (IST) In-reply-to: <87ehumm6jt.fsf@spindle.srvr.nix> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56076 Archived-At: > From: Nix > Emacs: no job too big... no job. > Date: Thu, 26 Jan 2012 22:40:22 +0000 > > I just got a bidi crash reading an emacs-devel message in Gnus (bzr > r106941). I'm curious: why do you think this crash has anything to do with bidi? There are no bidi-related functions anywhere in the backtrace you show. > The crash happened when doing a page-down while viewing the > message archived at > FWIW, I read that message without any problems in Rmail, neither with the current trunk nor with the 24.0.92 pretest. But that's a 32-bit build on Windows, while yours is a 64-bit build on GNU/Linux. > (but you can't see the bidi goodness there, if it *is* meant to be good > to find the periods transposed to the other end of the line while the > lines themselves still read in L2R, but right-justified. Weird, but > maybe intended, I dunno.) This weird display is mandated by the Unicode Bidirectional Algorithm, because the quoted part of the message is treated as a single right-to-left paragraph. It is a single paragraph because there are no empty lines in it, and it takes a right-to-left paragraph direction because the first strong directional character is an Arabic letter, whose directionality is right to left. I have an idea for how to make the display more reasonable in this (quite frequent) use case, but it will have to wait until after the release of Emacs 24.1, because it could have wide potentially surprising effects which will need to be carefully considered. > It is quite clear from the backtrace that the second parameter to > char_table_ref() has been garbaged, apparently being set to 2^32/1000 > (again, passing strange). Sorry, I don't believe backtraces from optimized builds, they lie through their teeth. > I still have the coredump: any debugging I can do, just ask. It would be interesting to see it->current, it->position, it->sp, and it->string in frames #6 and #8. Also, what do you have in the buffer at the position(s) shown by it->current and it->position (the functions in etc/emacs-buffer.gdb might come in handy for finding this out). > (However, the thing was compiled with optimization, so debugging is > visibly degraded. I'm just about to upgrade GDB to 7.4: maybe that > will help a bit.) > > No recipe from emacs -Q yet (a bit hard given that this is provoked by > Gnus-plus-nnml). Tomorrow I'll try to come up with a reproduction recipe > based on the text of the message alone. A newer GDB will help, but please also try this in an unoptimized build. If you can reproduce it there, we will have much better chances of finding the culprit. Also, please show the results of "xbacktrace" (starting GDB from the Emacs src directory should cause that be done automagically). > In GNU Emacs 24.0.92.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2012-01-26 on spindle > Windowing system distributor `The X.Org Foundation', version 11.0.11003901 > configured using `configure '--without-pop' '--without-kerberos' '--without-hesiod' '--without-mmdf' '--with-x-toolkit=lucid' '--with-wide-int' 'NO_FAST_MATH=t'' Can you tell whether you built with libraries mentioned in INSTALL under "Complex Text Layout support libraries", and if so, which versions thereof? Also, do you have any problems whatsoever displaying etc/HELLO in its entirety? Thanks.