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#9671: 24.0.50; Two bidi crashes Date: Thu, 06 Oct 2011 01:45:28 -0400 Message-ID: References: <83obxwqx03.fsf@gnu.org> <9726D990-8E8E-4013-99F1-E479848B8246@gmail.com> <83mxdgqvrr.fsf@gnu.org> <77D6525D-E49A-4E04-848D-045D6650A33C@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1317879965 26315 80.91.229.12 (6 Oct 2011 05:46:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 05:46:05 +0000 (UTC) Cc: 9671@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 07:46:01 2011 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 1RBgmO-0000YB-K5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 07:46:00 +0200 Original-Received: from localhost ([::1]:35678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBgmN-0001Wa-Om for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 01:45:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBgmL-0001WR-Dg for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 01:45:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBgmK-0003Ck-1y for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 01:45:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBgmJ-0003Cg-R8 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 01:45:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBgmQ-0007w6-4v for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 01:46:02 -0400 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: Thu, 06 Oct 2011 05:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9671-submit@debbugs.gnu.org id=B9671.131787993830472 (code B ref 9671); Thu, 06 Oct 2011 05:46:02 +0000 Original-Received: (at 9671) by debbugs.gnu.org; 6 Oct 2011 05:45:38 +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 1RBgm1-0007vR-Oi for submit@debbugs.gnu.org; Thu, 06 Oct 2011 01:45:38 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBglz-0007vK-Rv for 9671@debbugs.gnu.org; Thu, 06 Oct 2011 01:45:36 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBgls-0003qu-Ku; Thu, 06 Oct 2011 01:45:28 -0400 In-reply-to: <77D6525D-E49A-4E04-848D-045D6650A33C@gmail.com> (message from David Reitter on Wed, 5 Oct 2011 16:49:47 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 01:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52253 Archived-At: > From: David Reitter > Date: Wed, 5 Oct 2011 16:49:47 -0400 > Cc: 9671@debbugs.gnu.org > > First of all, this may have to do with GDB and passing Emacs environment variables to another Emacs instance. But the original reports did not say Emacs was started from GDB that itself was started from another Emacs instance. Did I miss something? > This may explain why we're seeing this abort in bidi: > > I am reproducing at least some type of crash in bidi_initialize() when I debug Emacs (24) from gdb session inside an Emacs 23 - this occurs all the time, but not when I start it outside of Emacs/GDB: I know about this issue, but I thought it only happens on MS-Windows, because the Windows build pushes values of EMACSDATA and EMACSLOADPATH into its own environment, and those values correspond to the version of Emacs that runs. Does Emacs on Apple systems also do that? Anyway, use the GDB command "unset environment" to remove these variables from the environment of Emacs being debugged. Do that _before_ you type the "run" command in GDB. > The abort in question happens here: > > bidi_mirror_table = uniprop_table (intern ("mirroring")); > if (NILP (bidi_mirror_table)) > abort (); > > uniprop_table returns Qnil in this situation (chartab.c:1340): Yes, because Emacs 23 didn't have the "mirroring" table in uni-mirrored.el. > EMACSDATA=/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/etc > EMACSPATH=/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/MacOS/bin > EMACS=t > EMACSLOADPATH=/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp:/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/leim > INSIDE_EMACS=23.3.50.39,comint > EMACSDOC=/Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/etc > > Does this explain what's going on? It does, but how is this related to the original report? There was no GDB there nor another instance of Emacs, at least they were not mentioned. That's why I said I can only understand the original report if Emacs was badly deployed. And the other crash was entirely unrelated to this issue anyway.