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 08:54:08 -0400 Message-ID: References: <864j6eb29f.fsf@gnu.org> <861q1iayk6.fsf@gnu.org> <86wmja9iwi.fsf@gnu.org> <86plp19kei.fsf@gnu.org> <87bk0k2vbo.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c633d80622786b0b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="622"; 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 14:56:03 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 1srGhV-000ATH-UY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Sep 2024 14:56:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srGhJ-0001U0-5F; Thu, 19 Sep 2024 08:55:49 -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 1srGhG-0001Sy-KM for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:55:46 -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 1srGhE-0007Lo-NX for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:55: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=jidTUazbJ5XLSq9Y4j0r6mlP/U/zyNuuUZ8qnAcOR7k=; b=vDmBqYKWM75ymwg+6XDDQeQSqqOEvNvj1OTJJfjjuKHX/4eNDZT6L9QkI41Eab4LJ4tsCSxpTEY3keKUuYC8r/RFEzXvSsunuw8nSB/poQA5TNfSlm6VFf5p68M+y4Y8FapY3Dc5rC0RsrOhAq04aBkla16f72zof5qWO/Na76VwvvnEu5czECFP2UTtRsWfol1k8kMkfDZtsX38J8+cr9BO6xraYl9a1DLdVGcPMgixeTQvh0AYXdPEYZh8yDbkyMhvpydsDMEm8rogVUQLW+KM/DyfJjPqyl799V4JKR1OF6lJ8IM/y1ebEhsBiN1yI7g+rvlNjtmDkkdQ5jfDlA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srGhV-0005KZ-M1 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2024 08:56: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 12:56: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.172675054520456 (code B ref 73318); Thu, 19 Sep 2024 12:56:01 +0000 Original-Received: (at 73318) by debbugs.gnu.org; 19 Sep 2024 12:55:45 +0000 Original-Received: from localhost ([127.0.0.1]:59984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGhE-0005Jr-NO for submit@debbugs.gnu.org; Thu, 19 Sep 2024 08:55:45 -0400 Original-Received: from mail-ua1-f45.google.com ([209.85.222.45]:49214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srGhD-0005Jc-6N for 73318@debbugs.gnu.org; Thu, 19 Sep 2024 08:55:43 -0400 Original-Received: by mail-ua1-f45.google.com with SMTP id a1e0cc1a2514c-846ca104682so214386241.2 for <73318@debbugs.gnu.org>; Thu, 19 Sep 2024 05:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726750460; x=1727355260; 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=jidTUazbJ5XLSq9Y4j0r6mlP/U/zyNuuUZ8qnAcOR7k=; b=WUSqKVyICobPkqv8E0fYMfRk3UKaZyEtmY258JepugufvVffVyGL7yvZ+xR2oQner7 yXQzOZkytoPDxayBsvQgvUvv4NAvVvs/0snserrZ6y5hNhsdeTkVyEqRsJxt4ZuzyfYf q7KygaXWdsWRI94cyDW+Qp9rEiJieEdv5VpU42yV4r9KjKorEXZh72bVjA95C2P1i+Jz Ol7lCxFowEXBLqu+jd+1q8QBp20CRrvQaxbW14WrYS17butE5xFwEM0Tbo6Gw968klBP /AYQCxrQ1bY2NAiE/Wi+AiedqnfyHX12IakeMSzG0eX1RUEZG3PjQefPAJY7Ew5QCvVF +aNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726750460; x=1727355260; 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=jidTUazbJ5XLSq9Y4j0r6mlP/U/zyNuuUZ8qnAcOR7k=; b=i/zjD8jMEOHCCiPMvxi6tw4cnSgFVvafEcbOr/wLBuMhXryloy2XRFBdeQxErdAFUx IB+eMN9XsSi81/uK6XNArKfRa+u+T2Q8Cu6phAQT3wZMiwh+DSFn+wahNWHNsQmTgm1X +r/iVDXe+yDyM74nby94r7BJv3enfMVlrJycrtPb9kc/Kc3kUwvz2GKAaX2Gr7ofIccC fjMI0dYzTY3EuHCS01DBfMbmAdSCaHnVzJBrRzPl6+9XSkhX/uLtnT5vheqYwMLNSc/o n82FBxi0rWUd5ZQ76B4fteEJB7oZhfQnoA9ms7a6hOmoSgiQ7XIpuDkT952SQWnPuGVe 0MDA== X-Forwarded-Encrypted: i=1; AJvYcCUEqNmShy0Xo6WbSM6LxdmFZZvAR8b1B+ESIo92ustRs4I7I8TWA9TvQ+rpJTEuNv4LZpRz9g==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywuoh0xGCvttiwagQvSX3wqk+9rjm3QwNxRso1nSyKtNq6qVEZa dtztbmbLMVnkaG6ycegpMK4fawU2wrlKCW7RCyhiYvxIFTUoyXK3tXd4dNXEXpZLce2oRXy9pPE W/fIRGP+BZeZ5M4mW7sqkUvpKF1E= X-Google-Smtp-Source: AGHT+IGDjhbgmF5FmJbW1P4TkWBVPDY8I4ctZLRkrDHfNtTxPLmx9qOLgC9iuY3y0BGF+0472rd72k3284rMnGcDw/w= X-Received: by 2002:a05:6102:e0f:b0:492:9960:682a with SMTP id ada2fe7eead31-49d414c2b37mr15235350137.17.1726750459833; Thu, 19 Sep 2024 05:54:19 -0700 (PDT) In-Reply-To: <87bk0k2vbo.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:292046 Archived-At: --000000000000c633d80622786b0b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. On Wed, Sep 18, 2024 at 11:09=E2=80=AFPM Po Lu wrote: > Eli Zaretskii writes: > > > And I will see your humility and raise ya. Please describe your ideas > > for the patch before actually writing the code. Because there's more > > here than meets the eye. Some issues the related code needs to > > handle: > > > > . what if /proc/self/exe is unreadable? AFAIK, on some systems you > > need special privileges to follow its symlink > > Above all, /proc is liable simply to be unmounted. > --000000000000c633d80622786b0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Even if you umount /proc, it will remain until active process references= =C2=A0to /proc nodes=C2=A0are closed. If one tries umount /proc outside of = a shutdown sequence, Emacs is the least of her worries. This is not a pract= ical deterrent.

On Wed, Sep 18, 2024 at 11:09=E2=80=AFPM Po Lu <luangruo@yahoo.com> wrote:
Eli Zaretskii <eliz@gnu.org> writes:<= br>
> And I will see your humility and raise ya.=C2=A0 Please describe your = ideas
> for the patch before actually writing the code.=C2=A0 Because there= 9;s more
> here than meets the eye.=C2=A0 Some issues the related code needs to > handle:
>
>=C2=A0 =C2=A0. what if /proc/self/exe is unreadable? AFAIK, on some sys= tems you
>=C2=A0 =C2=A0 =C2=A0need special privileges to follow its symlink

Above all, /proc is liable simply to be unmounted.
--000000000000c633d80622786b0b--