From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#73318: 31.0.50; with-native-compilation=aot breaks exec -a emacs Date: Thu, 19 Sep 2024 09:51:44 -0400 Message-ID: References: <864j6eb29f.fsf@gnu.org> <861q1iayk6.fsf@gnu.org> <86wmja9iwi.fsf@gnu.org> <86plp19kei.fsf@gnu.org> <87bk0k2vbo.fsf@yahoo.com> <87zfo321xm.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cead5a0622793997" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , Eli Zaretskii , acorallo@gnu.org, larsi@gnus.org, 73318@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 19 15:54:12 2024 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 1srHbo-00016Y-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 15:54:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srHbQ-0006AD-0O; Thu, 19 Sep 2024 09:53:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srHbN-0005z9-8Q for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 09:53:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srHbM-00070p-PM for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 09:53:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=cgCivFSOpUMcqgq4v0P44UhjpafmF0zyS7inFAhyB5A=; b=rPBxMTu5Vtrh8Jta66vAqnC9Pfwdp41qjehTJUxBcNAgHjRmwZxrF+udrvFyc9nKomGqWmhgs4aqzH3kdt2lKlQErDQ39eUWGq2KkI1ulVVcO5R9Tc5zqT7q/MzVu8By8C3ZcZ0XwjdsCP8H+3RmqVJEioYBw39gzlqXyFF+8Deu0MnEh5z6drZAFctgFDs1HdbhbK/l/MYuU1yLIaif0kiYKPlxV7TirgaclI2jWNbsrAO3rd9iVBUBdLaoRM9asgQBh4rtRAuHFwd3ZNPcwq9v48wl//2cD87ytCjO/SP8GDiLsVHBJnsEKk3nGyZytMhRn3yewOEVbBUj7jVxSA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srHbd-0000BE-Qg for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 09:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2024 13:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73318 X-GNU-PR-Package: emacs Original-Received: via spool by 73318-submit@debbugs.gnu.org id=B73318.1726754001629 (code B ref 73318); Thu, 19 Sep 2024 13:54:01 +0000 Original-Received: (at 73318) by debbugs.gnu.org; 19 Sep 2024 13:53:21 +0000 Original-Received: from localhost ([127.0.0.1]:60100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srHaz-0000A5-Dl for submit@debbugs.gnu.org; Thu, 19 Sep 2024 09:53:21 -0400 Original-Received: from mail-vk1-f172.google.com ([209.85.221.172]:42473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srHax-00009p-JN for 73318@debbugs.gnu.org; Thu, 19 Sep 2024 09:53:20 -0400 Original-Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-502aeeb791eso555928e0c.1 for <73318@debbugs.gnu.org>; Thu, 19 Sep 2024 06:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726753916; x=1727358716; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cgCivFSOpUMcqgq4v0P44UhjpafmF0zyS7inFAhyB5A=; b=mC33P4m+epFN3PnM/i5URuPHFxd7R6E+Jb962UBzFnIk5KjdGGxD04STSgQPLLkgWX wVQ9Kk5a15lKhRl0F8JBylyWCCqeUuv3xk2bmE3NnirGZjCMeho4Xt/68teSnVi62MPB 6zqJT9cF9Eoe27X9N5mOTY125NYy6BIQjT5oz5G7qRmT4abUn7pDNSQmx/4I2MnAvh5O arJLSFE825kJZvio2vDTCb2A2EV4UF4Vz+baRR474CtBdmaLgNyMpNYck5Aj3XEiMwkS rQoN/p8nmS4SjojLpZI+q3zpenN06DwKl9dLL6LrNdu9Fqtbb/aRJdDlEuakYOn8IStg A0Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726753916; x=1727358716; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cgCivFSOpUMcqgq4v0P44UhjpafmF0zyS7inFAhyB5A=; b=pYnYCU2wVKYkL0aV3cg0aeKfciWCPe5aJ2tBD4JLMyNxz9zhmLSc+Tatvyn7+2S5r3 1indl5gYqAmuulURmqXgjA7bUmVjam5r4PHmLmRiNMhlpxzglJP++Ph3aLlB2Zg1d7PE MmoQOIzvwdT4kYL0Cf7myx1k4ixdi1uzZSDt128tr06XD8yj1dT99O3/lWe9jmSAlexN sdv3Iu6aOFYWoI/98fzNnzZ9FOHYrKOM8duoR/ui/WFFGEJmufE1erPZECwL98JE/0M+ emOtKi/5PTm9KOZGWimA8nT2IZGeVJeItZ+tzdYZ7TGbktyNiRuCW6JNitWzVidjumcU o0NQ== X-Forwarded-Encrypted: i=1; AJvYcCV4t74RrvRm23aGInUhgxY5EbT0EnBpigFRsotdWtiau5871dbQlgmCN72Cl5dHIFFkd1KOHQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yze4pIB+vUjczbL6zpGrbPWzyS49UFMwomTpHr+qG9ETCl7droj 4Qu8FNZhr3WJJ+JTe23/c6TOao5heQ9S9DXO0f7OwfuIsNmewzb1OEFTMHXe3EXicLF4dnUnk1U MNGLqta5MLNVvsNx4eHSxiD104XI= X-Google-Smtp-Source: AGHT+IF9b1D+PjyqtpxoB/8erxdojLgQG1gnzSZ4d+0sPoi6GprJLLv3PKSjMN6+DdNB1Yhc0dUnlJkiSykktrCR7sY= X-Received: by 2002:a05:6122:8c5:b0:4f5:312a:6573 with SMTP id 71dfb90a1353d-503c9c06f55mr2380540e0c.5.1726753916495; Thu, 19 Sep 2024 06:51:56 -0700 (PDT) In-Reply-To: <87zfo321xm.fsf@yahoo.com> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292052 Archived-At: --000000000000cead5a0622793997 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I see. It pays, then, to disambiguate between a Linux "system" (which is the typical Emacs case) and Linux O/S-based, essentially embedded, environments. In the "system" case, /proc/self/exe should be the recommended method, I'd think. In embedded cases, whatever is appropriate in those environments is what should be used. On Thu, Sep 19, 2024 at 9:44=E2=80=AFAM Po Lu wrote: > Ship Mints writes: > > > Even if you umount /proc, it will remain until active process > > references to /proc nodes are closed. If one tries umount /proc > > outside of a shutdown sequence, Emacs is the least of her > > worries. This is not a practical deterrent. > > It is possible to run systems with Linux (the kernel) without mounting > /proc at all, and Emacs is very much interested in functioning correctly > there. Moreover, the value of /proc/self/exe is sometimes completely > meaningless, as on Android, where Emacs is loaded into > /system/bin/app_process64 as a shared library. > > --000000000000cead5a0622793997 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I see. It pays, then, to disambiguate between a Linux "system"= (which is the typical Emacs case) and Linux O/S-based, essentially embedde= d, environments. In the "system" case, /proc/self/exe should be t= he recommended method, I'd think. In embedded cases, whatever is approp= riate in those environments is what should be used.

On Thu, Sep 19, 20= 24 at 9:44=E2=80=AFAM Po Lu <luang= ruo@yahoo.com> wrote:
Ship Mints <shipmints@gmail.com> writes:

> Even if you umount /proc, it will remain until active process
> references to /proc nodes are closed. If one tries umount /proc
> outside of a shutdown sequence, Emacs is the least of her
> worries. This is not a practical deterrent.

It is possible to run systems with Linux (the kernel) without mounting
/proc at all, and Emacs is very much interested in functioning correctly there.=C2=A0 Moreover, the value of /proc/self/exe is sometimes completely<= br> meaningless, as on Android, where Emacs is loaded into
/system/bin/app_process64 as a shared library.

--000000000000cead5a0622793997--