From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Date: Mon, 11 Oct 2021 16:04:23 +0200 Message-ID: <87sfx7hd3s.fsf@gnus.org> References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA, Paul Eggert To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 16:05:15 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 1mZvvW-0007Nd-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 16:05:14 +0200 Original-Received: from localhost ([::1]:47854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZvvU-0003Aw-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 10:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZvvK-000390-Vz for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZvvK-0005W1-Mb for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZvvK-0001pi-HY for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 14:05:02 +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.16339610787013 (code B ref 34180); Mon, 11 Oct 2021 14:05:02 +0000 Original-Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 14:04:38 +0000 Original-Received: from localhost ([127.0.0.1]:60530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZvuw-0001p3-Ez for submit@debbugs.gnu.org; Mon, 11 Oct 2021 10:04:38 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZvuu-0001oq-Jd for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 10:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JDsbbdex0gZL/q+8oIK/eLXrg7FvcxC7aYsSH8QPbE8=; b=kOSJINpLAZ/4nnb22Ve72pEzPj 994DHuqMs/JTmXAf7uHSD6X1t/1fXLGCpLW9a9T64aPdZItlfX2oFpvwl2hJ8d5zG7t2qBezxLYhu QceWv6nMwEdB5I925CRqDMVMeXV2N4CpumG650P10NH6t4Qpp5k+K9GDpuu/xJiRhM1I=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZvui-0003Lh-VZ; Mon, 11 Oct 2021 16:04:26 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUsVXEwZ49Hd5qK a1QLEBJBUVpSha7///93llwQAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UKCw4EAQ4ZZ6kAAAG5SURB VDjLbZPNbqQwDMcdBD3HiN6Jd8W51WrvU9W5pyvyAEVq3v8R1k4IYYbxJcK//P0ZAMTQwjMzOCLi U/ALnxERkIJLPERyGRSNsY+CHaBetVMQUP05lpEjhhgFjA4PA7A+rp8x9gFyrY1MPpiYtXhv6w2R v+ACLDNi/34FrytLkqChtjvQs9qXgrRJI1TxxBw95JYobZToqJn5809paaSURFW7nDz/LQDHRYjG yiJbQB6MguRavW87GNMZSJJbmRulR+CLYimATp2UqT0C6UR2NfABaqxX5g+BFWyHQoA5gZZcgNbM l6oU9BnQIsNqyQcBOmGZFS15WnWFzGsGOnRN7hrgApSQBbwA9ZO1+SAk2e0O9Nt1zlCxnj/6mpxo BgPZ7cb+5n4fob4BnO12xY36A8iThfkRiN/J5pvCl7ogZwBCO79sCqZarjRuRYbjHBbxL+W+VyCp LVoDgwb74UMxWjA6jw6CgPUA+m8ZfWAmQLdUQVylgfzrORtjR6XSXQE0i2+GIZh7MBIML5tciN0y rw1QmmVTcwQI36b5GXSveh+Gf9vAJ9DRRlDAT38GwVEBEGOL5P1/7KuiJdq5fh8AAAAldEVYdGRh dGU6Y3JlYXRlADIwMjEtMTAtMTFUMTQ6MDQ6MDErMDA6MDClN0OIAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIxLTEwLTExVDE0OjA0OjAxKzAwOjAw1Gr7NAAAAABJRU5ErkJggg== X-Now-Playing: Depeche Mode's _Construction Time Again_: "Shame" In-Reply-To: <87wnmjhd6j.fsf@gnus.org> (Lars Ingebrigtsen's message of "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:216912 Archived-At: Lars Ingebrigtsen writes: > 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? I've added Paul to the CCs. (Wrong address for Paul; resending to fix that.)