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#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Date: Mon, 11 Oct 2021 18:54:11 +0300 Message-ID: <835yu3r1zw.fsf@gnu.org> References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23505"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA, paul.eggert@verizon.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 17:58:33 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 1mZxh8-0005ja-RA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 17:58:30 +0200 Original-Received: from localhost ([::1]:49264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZxh6-00073J-Pd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 11:58:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZxdm-0004Up-9p for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZxdm-0004B2-0g for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZxdl-0002mY-VX for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:55: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: Mon, 11 Oct 2021 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34180 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security Original-Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163396767010653 (code B ref 34180); Mon, 11 Oct 2021 15:55:01 +0000 Original-Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 15:54:30 +0000 Original-Received: from localhost ([127.0.0.1]:60726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZxdG-0002lk-1a for submit@debbugs.gnu.org; Mon, 11 Oct 2021 11:54:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZxdE-0002lW-9G for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 11:54:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58952) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZxd7-0003Bm-E7; Mon, 11 Oct 2021 11:54:22 -0400 Original-Received: from [87.69.77.57] (port=4080 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 1mZxd6-0004l3-TB; Mon, 11 Oct 2021 11:54:21 -0400 In-Reply-To: <87wnmjhd6j.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 11 Oct 2021 16:02:44 +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:216934 Archived-At: > From: Lars Ingebrigtsen > Cc: Daniel Colascione , 34180@debbugs.gnu.org, > monnier@IRO.UMontreal.CA, Paul Eggert > Date: Mon, 11 Oct 2021 16:02:44 +0200 > > Eli Zaretskii writes: > > > Wouldn't it be better to have a method of finding the absolute file > > name of the executable from which the process was started, regardless > > of what argv[0] says? The way to do that is system-dependent (on > > GNU/Linux, I believe you need to readlink ("/proc/self/exe") or > > somesuch, for example), but AFAIK this can be done on all platforms we > > support. > > It looks like find_executable from progreloc in gnulib provides a > portable interface for this? We already solved that in load_pdump_find_executable, didn't we?