From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49864: 28.0.50; Fails to start after "make install" Date: Thu, 05 Aug 2021 10:58:56 +0300 Message-ID: <83mtpwjpa7.fsf@gnu.org> References: <83r1f9l8xu.fsf@gnu.org> <83pmusjsfg.fsf@gnu.org> <83o8acjrky.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49864@debbugs.gnu.org To: Wilhelm Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 05 10:00:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBYIb-000Abr-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 10:00:17 +0200 Original-Received: from localhost ([::1]:53798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBYIZ-0001sc-Np for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 04:00:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBYIN-0001sP-2X for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 04:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBYIM-0003w1-RR for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 04:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBYIM-0001Zc-NS for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 04:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2021 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49864 X-GNU-PR-Package: emacs Original-Received: via spool by 49864-submit@debbugs.gnu.org id=B49864.16281503475956 (code B ref 49864); Thu, 05 Aug 2021 08:00:02 +0000 Original-Received: (at 49864) by debbugs.gnu.org; 5 Aug 2021 07:59:07 +0000 Original-Received: from localhost ([127.0.0.1]:45801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBYHT-0001Y0-Ha for submit@debbugs.gnu.org; Thu, 05 Aug 2021 03:59:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBYHR-0001XV-QY for 49864@debbugs.gnu.org; Thu, 05 Aug 2021 03:59:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57650) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBYHM-000316-Cu; Thu, 05 Aug 2021 03:59:00 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3477 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBYHL-0007DR-VS; Thu, 05 Aug 2021 03:59:00 -0400 In-Reply-To: (message from Wilhelm Kirschbaum on Thu, 5 Aug 2021 09:14:10 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211210 Archived-At: > From: Wilhelm Kirschbaum > Date: Thu, 5 Aug 2021 09:14:10 +0200 > Cc: 49864@debbugs.gnu.org > > Yes, of course, but I will only be able to do it a bit later today. I am not too familiar with GDB though. Thanks. The instructions are below: $ cd /home/wilhelm/src/tools/emacs/src $ gdb /usr/local/bin/emacs-28.0.50 ... (gdb) source ./.gdbinit (gdb) break pdumper.c:5315 (gdb) r -Q When GDB announces that the breakpoint at pdumper.c:5315 breaks, do this: (gdb) p cu_file1 (gdb) xstring (gdb) p cu_file2 (gdb) xstring and show the results of these commands. Then step through the code, one line at a time, with the "n" ("next") command. Eventually, you should get to line 5321: 5321 if (file_access_p (fndata, F_OK)) Then show the value of fndata, which should be a file name: (gdb) p fndata Type "next" again. If the file_access_p call fails (returns 'false'), show the value of errno immediately after stepping past the line that calls file_access_p: (gdb) p errno In that case (if file_access_p fails), the "next" command will land you in this block: else { eln_fname = make_uninit_string (execdir_len + fn2_len); fndata = SSDATA (eln_fname); memcpy (fndata, emacs_execdir, execdir_len); memcpy (fndata + execdir_len, SSDATA (cu_file2), fn2_len); installation_state = LOCAL_BUILD; } Please type "n" ("next") repeatedly until you get to the last line, which starts with "installation_state =", and show the value of fndata: (gdb) p fndata Finally, keep stepping with "n" until you come to this line: comp_u->handle = dynlib_open (SSDATA (eln_fname)); and type the following commands: (gdb) p eln_fname (gdb) xstring and show their results. You can then terminate the GDB session: (gdb) q (Answer "y" if it asks whether to quit.) I hope the data you collect and report will explain what happens, or at least give us a direction in which to look for the explanation. Thanks again for your help in this matter.