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:02:44 +0200 Message-ID: <87wnmjhd6j.fsf@gnus.org> References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.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="22533"; 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:04: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 1mZvuY-0005fB-KV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 16:04:14 +0200 Original-Received: from localhost ([::1]:46524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZvuX-0002Gu-Dn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 10:04:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZvuN-0002Gg-ID for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZvuN-000527-8o for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZvuM-0001o1-3z for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 10:04: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:04: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.16339609836868 (code B ref 34180); Mon, 11 Oct 2021 14:04:02 +0000 Original-Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 14:03:03 +0000 Original-Received: from localhost ([127.0.0.1]:60526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZvtP-0001mi-4C for submit@debbugs.gnu.org; Mon, 11 Oct 2021 10:03:03 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZvtN-0001m2-Fp for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 10:03:02 -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=vbW3/a5UDuLzRxd4G1dMaajTrK8Wl1B+vHCKew3D1BE=; b=KhDJxgdQGt3nZzoXlmWPQXpn4y 1LEE5EUt1UEUSRmTqzCam0yz/g248hppsmuhEQHTt4gne1c04sNvpJR/FrZOG679mVzD/c4K7KjQR ah8SzahxLk0C7w8uDpvTuZQ7KrHxdtFFnJqh25sJIAZnZlLiuy6o0jGKhoGnjQHPk4bg=; 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 1mZvt9-0003LJ-Sf; Mon, 11 Oct 2021 16:02:51 +0200 X-Now-Playing: Depeche Mode's _Construction Time Again_: "Two Minute Warning" In-Reply-To: <83va2a3z0d.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Jan 2019 17:23:46 +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:216911 Archived-At: 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no