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#22975: 25.0.92; CANNOT_DUMP build can't start in tty mode Date: Thu, 10 Mar 2016 09:10:54 +0200 Message-ID: <83h9gen6yp.fsf@gnu.org> References: <4FF36A52-32D5-4AF3-A36E-621A57519C4F@raeburn.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457593881 23663 80.91.229.3 (10 Mar 2016 07:11:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 07:11:21 +0000 (UTC) Cc: 22975@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 08:11:10 2016 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 1adukX-0001AF-9A for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 08:11:09 +0100 Original-Received: from localhost ([::1]:46661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adukW-0001dC-D6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 02:11:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adukT-0001cS-0F for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 02:11:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adukP-0005PS-OX for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 02:11:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adukP-0005PO-Lb for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 02:11:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adukP-0004Na-IC for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 02:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2016 07:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22975-submit@debbugs.gnu.org id=B22975.145759385316821 (code B ref 22975); Thu, 10 Mar 2016 07:11:01 +0000 Original-Received: (at 22975) by debbugs.gnu.org; 10 Mar 2016 07:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:42196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adukG-0004NF-W8 for submit@debbugs.gnu.org; Thu, 10 Mar 2016 02:10:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59080) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adukF-0004N2-Km for 22975@debbugs.gnu.org; Thu, 10 Mar 2016 02:10:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aduk6-0005Og-DI for 22975@debbugs.gnu.org; Thu, 10 Mar 2016 02:10:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aduk6-0005Oc-AE; Thu, 10 Mar 2016 02:10:42 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4868 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aduk5-0001Hc-Fa; Thu, 10 Mar 2016 02:10:42 -0500 In-reply-to: <4FF36A52-32D5-4AF3-A36E-621A57519C4F@raeburn.org> (message from Ken Raeburn on Thu, 10 Mar 2016 00:41:50 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114691 Archived-At: > From: Ken Raeburn > Date: Thu, 10 Mar 2016 00:41:50 -0500 > > The emacs_abort call comes from bidi_initialize because the bidi_type_table result is nil. > > 1097 emacs_abort (); > 1092 static void > 1093 bidi_initialize (void) > 1094 { > 1095 bidi_type_table = uniprop_table (intern ("bidi-class")); > 1096 if (NILP (bidi_type_table)) > 1097 emacs_abort (); > 1098 staticpro (&bidi_type_table); > 1099 > 1100 bidi_mirror_table = uniprop_table (intern ("mirroring")); > 1101 if (NILP (bidi_mirror_table)) A build that CANNOT_DUMP should load loadup.el at startup. Does this build do it? When loadup.el is loaded it loads charprop.el. Does thi happen with this build? When charprop.el loads, it runs this code: (define-char-code-property 'bidi-class "uni-bidi.el" "Unicode bidi class. Property value is one of the following symbols: L, LRE, LRO, LRI, R, AL, RLE, RLO, RLI, FSI, PDF, PDI, EN, ES, ET, AN, CS, NSM, BN, B, S, WS, ON") When this code runs, it should load uni-bidi.el, which defines the char-table accessed in the above snippet. What I think happens in your case is that bidi_initialize is called _before_ all of the above happens, probably because Emacs wants to display some message in the echo area during loading loadup.el, or maybe even earlier. If so, the solution should be to disable bidi until loadup is done, and turn it on afterwards. One way of disabling bidi is to (setq-default bidi-display-reordering nil) (or its C equivalent) at the beginning of 'main', or maybe at the beginning of loadup.el (if you can detect CANNOT_DUMP from Lisp). Then turn it back on when loadup.el finishes by setting bidi-display-reordering to t. Can you try that?