From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34707: Failure to find the associated pdump file Date: Sat, 02 Mar 2019 09:11:06 +0200 Message-ID: <83pnr9hhth.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="72923"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34707@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 02 08:12:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzyom-000IpX-HZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2019 08:12:20 +0100 Original-Received: from localhost ([127.0.0.1]:49525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzyoi-0008Tj-DN for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2019 02:12:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzyoc-0008Td-7O for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 02:12:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzyoa-0006NT-8J for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 02:12:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzyoU-0006FB-PK for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 02:12:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gzyoU-0000dU-Gy for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 02:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Mar 2019 07:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34707 X-GNU-PR-Package: emacs Original-Received: via spool by 34707-submit@debbugs.gnu.org id=B34707.15515106992407 (code B ref 34707); Sat, 02 Mar 2019 07:12:02 +0000 Original-Received: (at 34707) by debbugs.gnu.org; 2 Mar 2019 07:11:39 +0000 Original-Received: from localhost ([127.0.0.1]:56952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzyo7-0000cl-4p for submit@debbugs.gnu.org; Sat, 02 Mar 2019 02:11:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gzyo5-0000cT-D9 for 34707@debbugs.gnu.org; Sat, 02 Mar 2019 02:11:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzyns-0004Ze-QR for 34707@debbugs.gnu.org; Sat, 02 Mar 2019 02:11:26 -0500 Original-Received: from [176.228.60.248] (port=4112 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gzynl-0004Bp-6O; Sat, 02 Mar 2019 02:11:18 -0500 In-reply-to: (message from Richard Stallman on Fri, 01 Mar 2019 22:27:54 -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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:155944 Archived-At: > From: Richard Stallman > Date: Fri, 01 Mar 2019 22:27:54 -0500 > > I have a symlink from bin/emacs to emacs-git/build-feb-24/src/emacs. > It contains master from Feb 24, built. > > When I run that by typing `emacs', with some other directory current, > it crashes: it gets error and exits when it tries to run > tty-set-up-initial-frame-faces, from init_display. > That is supposed to have been set up by associated Lisp files > which have not been run. > > I think the cause is that Emacs failed to find the pdump file. > > Apparently that failure gives no error message! > It must give an error message, since you can't get anything > like what you want if you don't get the pdump file. It is supposed to give an error message saying that it could not load the dump file because it was not built for this Emacs executable. Could you please step with a debugger through the function load_pdump, called from the 'main' function, and see why that doesn't happen for you? > There is an annoying secondary problem: it exits leaving the tty set > up for Emacs (no echo). It ought to restore the outside-Emacs > terminal settings before exiting. If Emacs already set up the terminal, then I think it did find the pdump file and loaded it successfully, because loading the pdump file happens before the call to init_display. So I don't think I have a clear idea of what happens on your system. > The reason it fails to find the pdump file > is that it fails to implement this case > > If the executable file is a symbolic link, the program can find the > link target and use its containing directory instead of the link's > containing directory. That is correct (and we will have to implement that before Emacs 27 goes to print), but I think there's something else at work in your case. Stepping through the code with a debugger should clarify the situation. Also, can you show the details of the crash, like the signal and the C-level backtrace?