From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2019 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34180 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34180@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154825968715919 (code B ref -1); Wed, 23 Jan 2019 16:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2019 16:08:07 +0000 Received: from localhost ([127.0.0.1]:42950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmL4Q-00048f-MT for submit@debbugs.gnu.org; Wed, 23 Jan 2019 11:08:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmL4O-00048A-1W for submit@debbugs.gnu.org; Wed, 23 Jan 2019 11:08:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:57191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmL4I-0002b1-Pq for submit@debbugs.gnu.org; Wed, 23 Jan 2019 11:07:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmL4H-0005Ii-6q for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:07:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmL4F-0002Zy-CG for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:07:57 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:56756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmL4E-0002Ve-2L for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:07:54 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x0NG7pTg000914 for ; Wed, 23 Jan 2019 11:07:51 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 6DAC2AE6E4; Wed, 23 Jan 2019 11:07:51 -0500 (EST) From: Stefan Monnier Date: Wed, 23 Jan 2019 11:07:51 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.9 X-NAI-Spam-Rules: 5 Rules triggered BEC_TRC1=0.4, BEC_TRC1_W_GEN_SPAM_FEATRE=0.4, GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV6467=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6467> : inlines <6998> : streams <1810928> : uri <2784435> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Package: Emacs Version: 27.0.50 Currently, the first .pdmp file that we try to load is found by adding ".pdmp" to argv[0]. This has 2 problems: 1- It fails miserably if argv[0] is a name relative to $PATH since it performs the lookup relative to $PWD instead, which is additionally a security issue. 2- If the executable named by argv[0] is a symlink, it does not try to follow the symlink in case the .pdmp is stored next to the destination rather than next to the source. -- Stefan In GNU Emacs 27.0.50 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.24.3) of 2019-01-22 built on alfajor Repository revision: 4e56ca18c9760d9a9429d71e36bedfe4da879a9c Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux buster/sid Recent messages: Mark set Auto-saving...done Saving file /home/monnier/src/emacs/trunk/src/emacs.c... Wrote /home/monnier/src/emacs/trunk/src/emacs.c Saving file /home/monnier/src/emacs/trunk/ChangeLog... Wrote /home/monnier/src/emacs/trunk/ChangeLog Mark set Press C-c C-c when you are done editing. Enter a change comment. Type C-c C-c when done Checking in /home/monnier/src/emacs/trunk/src/emacs.c...done Configured using: 'configure -C --enable-checking --with-modules --enable-check-lisp-object-type 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS CANNOT_DUMP LCMS2 GMP Important settings: value of $LANG: fr_CH.UTF-8 locale-coding-system: utf-8-unix Major mode: InactiveMinibuffer Minor modes in effect: c-electric-flag: t shell-dirtrack-mode: t diff-auto-refine-mode: t electric-pair-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t global-compact-docstrings-mode: t url-handler-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/monnier/src/emacs/elpa/packages/svg/svg hides /home/monnier/src/emacs/work/lisp/svg /home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier/src/emacs/work/lisp/progmodes/ada-mode /home/monnier/src/emacs/elpa/packages/ada-mode/ada-stmt hides /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt /home/monnier/src/emacs/elpa/packages/ada-mode/ada-prj hides /home/monnier/src/emacs/work/lisp/progmodes/ada-prj /home/monnier/src/emacs/elpa/packages/ada-mode/ada-xref hides /home/monnier/src/emacs/work/lisp/progmodes/ada-xref /home/monnier/src/emacs/elpa/packages/nadvice/nadvice hides /home/monnier/src/emacs/work/lisp/emacs-lisp/nadvice /home/monnier/src/emacs/elpa/packages/hyperbole/set hides /home/monnier/src/emacs/work/lisp/emacs-lisp/set /home/monnier/src/emacs/elpa/packages/landmark/landmark hides /home/monnier/src/emacs/work/lisp/obsolete/landmark /home/monnier/src/emacs/elpa/packages/crisp/crisp hides /home/monnier/src/emacs/work/lisp/obsolete/crisp Features: (sort mail-extr emacsbug log-edit message sendmail rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils mailheader pcvs-util bug-reference add-log smerge-mode whitespace vc vc-dispatcher make-mode pulse cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-langs cc-vars cc-defs etags multifile generator xref project shell pcomplete grep cl-print cl-extra help-fns radix-tree sm-c-mode smie misearch multi-isearch lisp-mnt xscheme byte-opt unsafep trace testcover shadow scheme re-builder profiler inf-lisp ielm gmm-utils ert pp ewoc debug elp edebug backtrace find-func cl-indent advice cus-edit cus-start cus-load wid-edit executable copyright view cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs cal-french vc-git diff-mode filecache diary-lib diary-loaddefs cal-move cal-menu calendar cal-loaddefs server flymake-proc flymake compile comint ansi-color ring warnings noutline outline easy-mmode flyspell ispell checkdoc thingatpt help-mode load-dir elec-pair reveal autoinsert savehist minibuf-eldef disp-table compact-docstrings cl-seq inline kotl-autoloads proof-site proof-autoloads realgud-recursive-autoloads finder-inf url-auth info package easymenu epg-config url-handlers url-parse auth-source eieio eieio-core cl-macs gv eieio-loaddefs password-cache json map url-vars seq bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame simple minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 239985 30547) (symbols 24 18919 0) (strings 16 72751 4613) (string-bytes 1 2323909) (vectors 8 43743) (vector-slots 4 1324674 45672) (floats 8 584 263) (intervals 28 6233 0) (buffers 528 39)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 14:07:48 2019 Received: (at control) by debbugs.gnu.org; 24 Jan 2019 19:07:48 +0000 Received: from localhost ([127.0.0.1]:44274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmkLr-0007Zt-Ri for submit@debbugs.gnu.org; Thu, 24 Jan 2019 14:07:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmkLq-0007ZG-1X for control@debbugs.gnu.org; Thu, 24 Jan 2019 14:07:46 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmkLk-0001cZ-PN for control@debbugs.gnu.org; Thu, 24 Jan 2019 14:07:40 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gmkLi-0007ow-So for control@debbugs.gnu.org; Thu, 24 Jan 2019 14:07:40 -0500 Subject: control message for bug 34180 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 24 Jan 2019 14:07:38 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 34180 important tag 34180 security From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jan 2019 03: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 To: Stefan Monnier , 34180@debbugs.gnu.org Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.154856128119953 (code B ref 34180); Sun, 27 Jan 2019 03:55:01 +0000 Received: (at 34180) by debbugs.gnu.org; 27 Jan 2019 03:54:41 +0000 Received: from localhost ([127.0.0.1]:46914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnbWq-0005Bl-JK for submit@debbugs.gnu.org; Sat, 26 Jan 2019 22:54:40 -0500 Received: from dancol.org ([96.126.100.184]:57004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnbWo-0005Bc-FY for 34180@debbugs.gnu.org; Sat, 26 Jan 2019 22:54:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=Wp5R+oV0O3XOGeF47vH0f95wkXAVnsmPC1h+vzEeJoA=; b=C1wFREf91eGRQg/qkRMhbruKOD19zN+KlenEE+Fj2OKW8ZBzqYQf/gHkD2vKLD2G0UZDkmBa4c5AkIKHW9FfhH+ZGudglOLjjjP2+Ray34j3Kyc9GS+QCsxGeEh1fKyXN+ZqNYyVLCf1P9r83Nte+CfEBggP9qoqKDLF3WrbR7P55deNPpu7/QvB7uz4IMIrOnk6mtgehopca5890d2vgAX8Y+am9WzRsqTef2slJhnyCQUCcwoE5SG18pgK9l+huGQEmudYz6JWQch19uvTJHqxM/mtMxY4XAtv+bSCfEHEStaovCVnjhvoEYKf9MPFuFEz+3B2qUSeL9mD08htCg==; Received: from [2604:4080:1321:9a00:f455:12b4:e650:5d75] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gnbWm-000302-6Z; Sat, 26 Jan 2019 19:54:36 -0800 References: From: Daniel Colascione Message-ID: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> Date: Sat, 26 Jan 2019 19:54:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 1/23/19 8:07 AM, Stefan Monnier wrote: > Package: Emacs > Version: 27.0.50 > > > Currently, the first .pdmp file that we try to load is found by adding > ".pdmp" to argv[0]. > This has 2 problems: > > 1- It fails miserably if argv[0] is a name relative to $PATH since it > performs the lookup relative to $PWD instead, which is additionally > a security issue. > > 2- If the executable named by argv[0] is a symlink, it does not try to > follow the symlink in case the .pdmp is stored next to the > destination rather than next to the source. Yep. We should definitely fix that. realpath on argv[0] seems like the right thing. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jan 2019 15:25: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 To: Daniel Colascione Cc: 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.154860265129143 (code B ref 34180); Sun, 27 Jan 2019 15:25:01 +0000 Received: (at 34180) by debbugs.gnu.org; 27 Jan 2019 15:24:11 +0000 Received: from localhost ([127.0.0.1]:47721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnmI7-0007Zz-LE for submit@debbugs.gnu.org; Sun, 27 Jan 2019 10:24:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnmI5-0007Zk-J9 for 34180@debbugs.gnu.org; Sun, 27 Jan 2019 10:24:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnmHz-0004tM-5c; Sun, 27 Jan 2019 10:24:03 -0500 Received: from [176.228.60.248] (port=2464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gnmHy-0003de-P6; Sun, 27 Jan 2019 10:24:03 -0500 Date: Sun, 27 Jan 2019 17:23:46 +0200 Message-Id: <83va2a3z0d.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> (message from Daniel Colascione on Sat, 26 Jan 2019 19:54:29 -0800) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Daniel Colascione > Date: Sat, 26 Jan 2019 19:54:29 -0800 > > > 1- It fails miserably if argv[0] is a name relative to $PATH since it > > performs the lookup relative to $PWD instead, which is additionally > > a security issue. > > > > 2- If the executable named by argv[0] is a symlink, it does not try to > > follow the symlink in case the .pdmp is stored next to the > > destination rather than next to the source. > > Yep. We should definitely fix that. realpath on argv[0] seems like the > right thing. 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. From debbugs-submit-bounces@debbugs.gnu.org Thu May 09 11:19:56 2019 Received: (at control) by debbugs.gnu.org; 9 May 2019 15:19:56 +0000 Received: from localhost ([127.0.0.1]:36062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOkpv-0005Nd-T5 for submit@debbugs.gnu.org; Thu, 09 May 2019 11:19:56 -0400 Received: from mail-it1-f172.google.com ([209.85.166.172]:33889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOkpt-0005NP-JZ for control@debbugs.gnu.org; Thu, 09 May 2019 11:19:54 -0400 Received: by mail-it1-f172.google.com with SMTP id p18so5255194itm.1 for ; Thu, 09 May 2019 08:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=x/u7Cjv7aqoEz51EzEitwQdXn3kPIylqFtcH5ubKEzg=; b=B1ZEELHGVtGZvNZC7nB9h5O1e+ucCU3Pv5/bnOyB35o7+0SC/jrQcXkrUBRiOStTxu X5w3MEmPvg6z6qe8Y1jJIgnVFc4MsXoKKcoopQRiKkiL9K+b91Dzyf4tS//0MJGEA3Ai cTDQjQ5898YZ0b23vkty4itFs7JpFl8S2DqP0K6mzkw199G1jcZdxOhwsXU9bFVD2a9t 3rpRl0ZvkEeo7Too86lhJ8ARe6EsKKxGI98ovlWuJC+HLkSh3i//YXLTSxiUN6qNsg0t 70HjjKo85Lz/Nj6nbBWLjDJLxMvaU4B10cimCw2Ba6rM6V/JUmdmiDsqCqLvc7fhLmDO LNbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=x/u7Cjv7aqoEz51EzEitwQdXn3kPIylqFtcH5ubKEzg=; b=jmrE4ek7p/Xqr9YkhHlEVTV6zg/Mlmpzz9+qo5QkPh/kbbTByqXKxw719Di/eJbZhB 5CfYPrXa6mVkzqRBXDR/wb8Ew5KiC73J6VjKeKZ6IuWQVGLolm1FlhWfaq9Om4XAptTG 2LmppIwRXLRi8ltXb3QM0bBM5EVuOhnZog/XiOau7HdnF+8UeJAU49cDDBAf/6KDqGtK yo6ZXidEfFQAi4sOg71GKBFe0LcidDDDPL0BlWFeK1/R6BaLM7oUuGeiYEbAW4EUQu6a 9OlQ95qzBQODsThWI6jd5hPTGjl9FAohrqCVmG5EjCW16ERAupGuwGBVXV3MVjshe0cU 5geA== X-Gm-Message-State: APjAAAVwGsq079p4xVRHNVwircf6zh2gWnK9At1rzCysjlezdzhH4mdC ga7CYxoo9LHXod9Ir1gHZcQY9dvF X-Google-Smtp-Source: APXvYqyipNoQBKADcV8i/qA4Il+Sl4faIbdJp2RsVneJfJ2Ga65GNsaIVnY+CYXEM5VBhg0W0bd+tw== X-Received: by 2002:a24:99c3:: with SMTP id a186mr2942951ite.52.1557415187725; Thu, 09 May 2019 08:19:47 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id h4sm814437iol.25.2019.05.09.08.19.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 08:19:47 -0700 (PDT) From: npostavs@gmail.com To: control@debbugs.gnu.org Subject: control message for bug #35503 Date: Thu, 09 May 2019 11:19:45 -0400 Message-ID: <85ef57y7se.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 34180 35503 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 13 00:51:38 2020 Received: (at control) by debbugs.gnu.org; 13 Nov 2020 05:51:38 +0000 Received: from localhost ([127.0.0.1]:46452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdRzl-00084D-Qo for submit@debbugs.gnu.org; Fri, 13 Nov 2020 00:51:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdRzk-000841-8j for control@debbugs.gnu.org; Fri, 13 Nov 2020 00:51:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41589) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdRze-0001zD-VT for control@debbugs.gnu.org; Fri, 13 Nov 2020 00:51:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kdRzc-0007Jt-Tg for control@debbugs.gnu.org; Fri, 13 Nov 2020 00:51:30 -0500 Subject: control message for bug 35503 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 13 Nov 2020 00:51:28 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unmerge 35503 severity 35503 normal tag 35503 = From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp 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 To: Eli Zaretskii Cc: 34180@debbugs.gnu.org, Daniel Colascione , monnier@IRO.UMontreal.CA, Paul Eggert Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16339609836868 (code B ref 34180); Mon, 11 Oct 2021 14:04:02 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 14:03:03 +0000 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 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=; 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 From: Lars Ingebrigtsen References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> X-Now-Playing: Depeche Mode's _Construction Time Again_: "Two Minute Warning" Date: Mon, 11 Oct 2021 16:02:44 +0200 In-Reply-To: <83va2a3z0d.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Jan 2019 17:23:46 +0200") Message-ID: <87wnmjhd6j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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-depen [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp 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 To: Eli Zaretskii Cc: 34180@debbugs.gnu.org, Daniel Colascione , monnier@IRO.UMontreal.CA, Paul Eggert Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16339610787013 (code B ref 34180); Mon, 11 Oct 2021 14:05:02 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 14:04:38 +0000 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 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=; 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 From: Lars Ingebrigtsen References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> 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" Date: Mon, 11 Oct 2021 16:04:23 +0200 In-Reply-To: <87wnmjhd6j.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 11 Oct 2021 16:02:44 +0200") Message-ID: <87sfx7hd3s.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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.) From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 15:12: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 To: Lars Ingebrigtsen , Eli Zaretskii Cc: 34180@debbugs.gnu.org, Daniel Colascione , monnier@IRO.UMontreal.CA Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16339650676332 (code B ref 34180); Mon, 11 Oct 2021 15:12:01 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 15:11:07 +0000 Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZwxH-0001e4-1K for submit@debbugs.gnu.org; Mon, 11 Oct 2021 11:11:07 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZwxD-0001dX-C7 for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 11:11:05 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8C7E316006F; Mon, 11 Oct 2021 08:10:57 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0uBEIENaYvCf; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DCF881600C2; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ijDluJQLV2Jn; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AD91F16006F; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Mon, 11 Oct 2021 08:10:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87wnmjhd6j.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 10/11/21 7:02 AM, Lars Ingebrigtsen wrote: > It looks like find_executable from progreloc in gnulib provides a > portable interface for this? It does, although it drags in a bunch of other Gnulib modules, as this=20 stuff is wildly system-dependent. For ordinary Emacs installation, I've long thought that a better=20 approach is to store the default .pdmp file as a readonly char array=20 within the Emacs executable itself. This would be easier for installers,=20 sysadmins and users, as it would entail no funny rules about installing=20 two files, keeping them in sync, symlinks, PATH, argv[0], relative=20 names, security, etc. Perhaps native compilation effectively does this for us already? If so,=20 then the fix for this bug report would be "use native compilation". From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp 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 To: Lars Ingebrigtsen Cc: 34180@debbugs.gnu.org, dancol@dancol.org, monnier@IRO.UMontreal.CA, paul.eggert@verizon.net Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163396767010653 (code B ref 34180); Mon, 11 Oct 2021 15:55:01 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 15:54:30 +0000 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 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 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 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 Date: Mon, 11 Oct 2021 18:54:11 +0300 Message-Id: <835yu3r1zw.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wnmjhd6j.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 11 Oct 2021 16:02:44 +0200) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 16:07: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 To: Paul Eggert Cc: 34180@debbugs.gnu.org, larsi@gnus.org, dancol@dancol.org, monnier@IRO.UMontreal.CA Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163396838320370 (code B ref 34180); Mon, 11 Oct 2021 16:07:02 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 16:06:23 +0000 Received: from localhost ([127.0.0.1]:60754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZxoe-0005IO-Es for submit@debbugs.gnu.org; Mon, 11 Oct 2021 12:06:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZxoT-0005Hi-OU for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 12:06:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59548) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZxoN-0003v8-K3; Mon, 11 Oct 2021 12:05:59 -0400 Received: from [87.69.77.57] (port=4796 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 1mZxoM-0006L0-RV; Mon, 11 Oct 2021 12:05:59 -0400 Date: Mon, 11 Oct 2021 19:05:49 +0300 Message-Id: <83wnmjpmw2.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Paul Eggert on Mon, 11 Oct 2021 08:10:56 -0700) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Daniel Colascione , 34180@debbugs.gnu.org, > monnier@IRO.UMontreal.CA > From: Paul Eggert > Date: Mon, 11 Oct 2021 08:10:56 -0700 > > For ordinary Emacs installation, I've long thought that a better > approach is to store the default .pdmp file as a readonly char array > within the Emacs executable itself. This would be easier for installers, > sysadmins and users, as it would entail no funny rules about installing > two files, keeping them in sync, symlinks, PATH, argv[0], relative > names, security, etc. > > Perhaps native compilation effectively does this for us already? No, it doesn't, not if I understand what you mean. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 20:14: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 To: Paul Eggert , Lars Ingebrigtsen , Eli Zaretskii Cc: 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163398320512506 (code B ref 34180); Mon, 11 Oct 2021 20:14:02 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 20:13:25 +0000 Received: from localhost ([127.0.0.1]:60997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma1fo-0003Fd-Qs for submit@debbugs.gnu.org; Mon, 11 Oct 2021 16:13:25 -0400 Received: from dancol.org ([96.126.100.184]:42268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma1fm-0003FV-QP for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 16:13:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: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=746yxaiYwmLTEdMJyW2BDk91fYzLotFOZ4vQagXthQU=; b=JynoPT6o9cIlQDRYbqN1GjgnPQ V7oi+/un7i6JoPpICR30CzV3JBri+cnW7hAJd9pjDDLPh7wB9K4GYO5u7aoeB4bOtqmnyPF+0dE+a jHzMV0AsYQjxHwj7QtBbo18oLADR17MgwhXVavYLgdragVHAe+XakAWDOfE5B++HVooDcCzXWUcsp wXYDeh5EB2fYyMYCzQr8CNuEjZSxaOATUT2cN5x5n7xaBGemZABe8fD+Fd4DHq5Iq5nmdbuPJODQI 1yQoUej3DUrcJqZyyc8jBj84uG5ZQPMIsNwqV1bNCWpjp1T8j8PsuNmlTjp8Hl5SC/zwTDBxJwa6/ dUPQnL8w==; Received: from [2604:4080:1321:8020:e350:5296:4f0b:6c8d] (port=53850) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ma1fk-0001Tl-4k; Mon, 11 Oct 2021 13:13:20 -0700 References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> From: Daniel Colascione Message-ID: <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> Date: Mon, 11 Oct 2021 13:13:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 10/11/21 8:10 AM, Paul Eggert wrote: > On 10/11/21 7:02 AM, Lars Ingebrigtsen wrote: >> It looks like find_executable from progreloc in gnulib provides a >> portable interface for this? > > It does, although it drags in a bunch of other Gnulib modules, as this > stuff is wildly system-dependent. > > For ordinary Emacs installation, I've long thought that a better > approach is to store the default .pdmp file as a readonly char array > within the Emacs executable itself. This would be easier for installers, > sysadmins and users, as it would entail no funny rules about installing > two files, keeping them in sync, symlinks, PATH, argv[0], relative > names, security, etc. It's not quite that simple though. The pdmp file includes offsets of data structures within the Emacs executable. Rebuilding the executable with a big char array will change these offsets and invalidate the pdmp blob you're trying to embed. Now, you could try to guess the size of the blob ahead of time, include a dummy embedded array of that size in Emacs, dump, and then overwrite the embedded array post-build, but there's no guarantee that doing that would actually work on all systems. I'd rather get out of the business of mucking with executable files even if it means we have a bit of extra complexity arising from having to deal with out-of-band pdmp files. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 21:18: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 To: Lars Ingebrigtsen Cc: 34180@debbugs.gnu.org, eliz@gnu.org, Paul Eggert , monnier@IRO.UMontreal.CA Reply-To: rms@gnu.org Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163398702526982 (code B ref 34180); Mon, 11 Oct 2021 21:18:02 +0000 Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 21:17:05 +0000 Received: from localhost ([127.0.0.1]:32836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma2fR-000718-8X for submit@debbugs.gnu.org; Mon, 11 Oct 2021 17:17:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma2fP-00070Z-At for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 17:17:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39774) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ma2fI-00058G-2E; Mon, 11 Oct 2021 17:16:57 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1ma2fH-0006HL-Tr; Mon, 11 Oct 2021 17:16:55 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <87wnmjhd6j.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 11 Oct 2021 16:02:44 +0200) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> Message-Id: Date: Mon, 11 Oct 2021 17:16:55 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] For Emacs, finding the executable requires explicitly following symlinks one by one and testing other related file names. If you are thinking of using a gnulib function for this, we need to check very carefully to make sure it does the right thing in each and every case. I think we made this work correctly, some months after pdumping was added. Did it break since them? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 00:52: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 To: Daniel Colascione Cc: 34180@debbugs.gnu.org, Lars Ingebrigtsen , Paul Eggert , Eli Zaretskii Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163399990132053 (code B ref 34180); Tue, 12 Oct 2021 00:52:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 00:51:41 +0000 Received: from localhost ([127.0.0.1]:33049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma617-0008Ku-69 for submit@debbugs.gnu.org; Mon, 11 Oct 2021 20:51:41 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma616-0008Kj-F6 for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 20:51:40 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 87EDB80582; Mon, 11 Oct 2021 20:51:34 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 10C398042B; Mon, 11 Oct 2021 20:51:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1633999893; bh=9wgs8buWmjlHjAMuEBZCJIAVwIdvyyPGjnyJXI8JEGc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LMU/UIBaLacIVJLFPvZOCtpQgP7WZtRv4HzfV7AubmdGo93lXz+a7ipKJ4xl8d175 AXxoYZEwrQtnmaOOls1oRP3zOiT4rEwzvvxaMJ/6Ql9eQDgkvB+/TAr4XsIRBst5QU 0RN+xzaX2LVH1E13eZyRAmJ5Ra/e6QBapkCv4BH7/nrdEn6G74UsZm9cjhmbMhtc4A gAUcqPzuTCoReFRjaGvjuTigGWbpMQB231ROUVTCMC+JLPJAA0P20GYxIS/09x750+ WogaF7mmfsWPCxqf1KE1oRfUJvYIAkw8FwRVWghiI1iBoVNfLQl5wJR+hCp3YG8uhW PwEei0ZHXz7hQ== Received: from pastel (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C671512020A; Mon, 11 Oct 2021 20:51:32 -0400 (EDT) From: Stefan Monnier Message-ID: References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> Date: Mon, 11 Oct 2021 20:51:31 -0400 In-Reply-To: <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> (Daniel Colascione's message of "Mon, 11 Oct 2021 13:13:18 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.066 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > It's not quite that simple though. The pdmp file includes offsets of data > structures within the Emacs executable. Rebuilding the executable with a big > char array will change these offsets and invalidate the pdmp blob you're > trying to embed. Now, you could try to guess the size of the blob ahead of > time, include a dummy embedded array of that size in Emacs, dump, and then > overwrite the embedded array post-build, but there's no guarantee that doing > that would actually work on all systems. Maybe we could avoid this problem by moving most of the Emacs executable to a shared library, so the Emacs executable would be just a `dump` variable and ` main` function which passes it to an entry point provided by libemacs.so`. I'm not sure I like the idea of building a shared lib and the extra complexity of making sure the Emacs executable finds it. Stefan From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 10:49: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 To: Eli Zaretskii Cc: 34180@debbugs.gnu.org, dancol@dancol.org, monnier@IRO.UMontreal.CA, Paul Eggert Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163403571118241 (code B ref 34180); Tue, 12 Oct 2021 10:49:01 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 10:48:31 +0000 Received: from localhost ([127.0.0.1]:33590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFKh-0004k8-L2 for submit@debbugs.gnu.org; Tue, 12 Oct 2021 06:48:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFKf-0004js-HZ for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 06:48:30 -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=VOBgz2pwR68IE+QVhDYpEhCYhfS6ww/cJgs1U+NpRII=; b=CfxqKep5lJpx5GATvvCIweE6+y SbMFdbBNE+mhOfkbln0KtG/AYgEL+S2EzI3Wn+3bQ28FFOP18QR9JEeb98SFplnKkhdwfK8Ak3vO8 wTFpw3trJa5V2sgPtxLhm6OgIY9HShXPYGhgcLTHwWyU7xN3oSbOIB+vVe7LHgsLJB1U=; 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 1maFKT-0004B8-Ty; Tue, 12 Oct 2021 12:48:20 +0200 From: Lars Ingebrigtsen References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <835yu3r1zw.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEU8O0NAPkdGSE4q LDWen6Hb29toanC+v78dIS0QFScKDRh8foM+QUn///80+ybcAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UKDAoiFU3DoJUAAAGcSURBVDjLzdHPS8MwFAfwhFLwuPQ/WKUqnsoycQMPsi1jeJxNK3gR16no RVy7g3oQK5h6EhFM9gcMNjzuLxD/MJN1Pyq2F/Hg99DD+/TlhRcAzcwUgZmTfwpGHuQJADAPclok oB9iJAARMlNYNIpoDgWEZCNKACE0AwALYBqIDJTESGCWAlSlBeAFQHm4rKkRSIE9NQ3O2tTHhkgC xqYGNHPVxiU7QWzawJBQpq5dDgLtmNS1ILL83jrdBRBElW4zXOlubDdpo1Wifb2xH550ZB+rks21 O9J5cMOjK8sLw8mtc6FJ4LHVf7KcDf2AlA6JM6STHg17cprgQ3ppnVe7e+SsFgQx8S+p35Z3FeLx xnttxxIarSBglt/3aB1jIAb6Obl3+ds1iarE4brfd3c+FIhHx3t2R1t7pMp0CZNe2PSm8B7uCv+k GZ9Wopcbtu23PmltCgMuGMcxk6mwiDHM5DYUyHAm2DJ4CSJdZywNqite/pOGVBSB8SibwFgmi34H IhsyhysQOTDKA/HnoNYT/wQ+X3j8HXj6MWb2BSMUhJHZcKTUAAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIxLTEwLTEyVDEwOjM0OjIwKzAwOjAwMfb3JAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0x MlQxMDozNDoyMCswMDowMECrT5gAAAAASUVORK5CYII= X-Now-Playing: SOPHIE's _PRODUCT_: "MSMSMSM" Date: Tue, 12 Oct 2021 12:48:17 +0200 In-Reply-To: <835yu3r1zw.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Oct 2021 18:54:11 +0300") Message-ID: <87k0iifrim.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > We already solved that in load_pdump_find_executable, didn't we? Oh yeah, so we did -- it was added half a year after this bug report was opened, so I guess there's nothing here to fix, and I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > We already solved that in load_pdump_find_executable, didn't we? Oh yeah, so we did -- it was added half a year after this bug report was opened, so I guess there's nothing here to fix, and I'm closing this bug report. (I guess it's an open question whether the gnulib-equivalent function has better cross-platform support, but I can't recall seeing any complaints about not finding the .pdmp file lately... If it turns out to be a problem, we can revisit this then.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 12 06:48:46 2021 Received: (at control) by debbugs.gnu.org; 12 Oct 2021 10:48:46 +0000 Received: from localhost ([127.0.0.1]:33593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFKv-0004kb-Sh for submit@debbugs.gnu.org; Tue, 12 Oct 2021 06:48:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFKt-0004kP-Rv for control@debbugs.gnu.org; Tue, 12 Oct 2021 06:48:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Vm7wMpL+K/Pi2C34fCaacCvAbxPBAJUNlf34i+2qew=; b=S3nWI65TUD1bS3YO5YklYhkRko Bj87uXy9pcFBd1qP/qQGSO3SNYeRGDTVlJJXEiCQVD1YZH5WvRCnOIUgLK5f0+uCqr2B8/DX2DvYL /nnyCm6weJMZj+ci5FevX2YmirWKuOhzOXQhj7xV8CepdjLPCtB5CAnBpdTIgAFd1n4w=; 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 1maFKm-0004BP-Bu for control@debbugs.gnu.org; Tue, 12 Oct 2021 12:48:38 +0200 Date: Tue, 12 Oct 2021 12:48:35 +0200 Message-Id: <87ily2fri4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34180 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 34180 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 34180 28.1 quit From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 10:52: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 To: Daniel Colascione Cc: 34180@debbugs.gnu.org, Eli Zaretskii , Paul Eggert , monnier@IRO.UMontreal.CA Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163403587218543 (code B ref 34180); Tue, 12 Oct 2021 10:52:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 10:51:12 +0000 Received: from localhost ([127.0.0.1]:33606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFNI-0004p1-IX for submit@debbugs.gnu.org; Tue, 12 Oct 2021 06:51:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maFNG-0004oe-TG for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 06:51:11 -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=1ZRKfoV4N0fgCARS3ao6Hur7GXzp5KPBYlGtMlb2ybk=; b=Rz1Wa1PdsTWDPVY3gt6WgD743M 3fkaXFHYTV5jardG2VC3XUhv9fXCaITM6g/+7GdcO3BLcgfEEBKutNF+mp4f/yBvimpmaFlNCZ4vs Z9BjAkfJSgVWjjmfiHI50xt7uZDBLSmDAYCwRq+ALWBePRB8IjEqLlNQ9hBYWE4AIWNA=; 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 1maFN6-0004EB-IU; Tue, 12 Oct 2021 12:51:02 +0200 From: Lars Ingebrigtsen References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> X-Now-Playing: SOPHIE's _PRODUCT_: "VYZEE" Date: Tue, 12 Oct 2021 12:51:00 +0200 In-Reply-To: <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> (Daniel Colascione's message of "Mon, 11 Oct 2021 13:13:18 -0700") Message-ID: <87ee8qfre3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Colascione writes: > I'd rather get out of the business of mucking with executable files > even if it means we have a bit of extra complexity arising from having > to deal with out-of-band pdmp files. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Daniel Colascione writes: > I'd rather get out of the business of mucking with executable files > even if it means we have a bit of extra complexity arising from having > to deal with out-of-band pdmp files. Not mucking with the executable files is a definite plus, but on the other hand -- having a self-contained emacs executable again would also be really attractive. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 11: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 To: Lars Ingebrigtsen Cc: 34180@debbugs.gnu.org, Daniel Colascione , Stefan Monnier , Paul Eggert Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16340396888949 (code B ref 34180); Tue, 12 Oct 2021 11:55:01 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 11:54:48 +0000 Received: from localhost ([127.0.0.1]:33685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGMp-0002KG-P5 for submit@debbugs.gnu.org; Tue, 12 Oct 2021 07:54:48 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:46074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGMb-0002Ju-Qw for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 07:54:46 -0400 Received: by mail-ot1-f47.google.com with SMTP id l16-20020a9d6a90000000b0054e7ab56f27so8248297otq.12 for <34180@debbugs.gnu.org>; Tue, 12 Oct 2021 04:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b4gxS2yBJvtWSHnnVbKK6ubDYETXRnCaA898DWWW0L8=; b=IBzBJk2rFRplW4Y/2pPe5WkPUbaTR6y6AlUhdVqmuYfTsRbbkksQfYwok0KVa1V8LM ToCenamrNnitx6xJzNEoByvJdjB68wBczdLZ3dl93TFBEvwEG4HRzesmDjWuvTs4Ytb7 dYc7dDqKAU69SBaHUAUjGgG0oIsMnpH9mw7P8JyFdRLwMdLWkao0GGgbqqZsTN3RPCaN NX/B9WirdH/PLG/0nyyCtqzxplKeh0WMlUFXXadF62P0hYv93qvwFlU5SOGKx5pbYJVL RZHEX6hYoMlDFSbHdgWKciNbMyx/L3RmLTRYNn2ytUWH++4hEpS15SwfL+P39ve3tJZC zq4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b4gxS2yBJvtWSHnnVbKK6ubDYETXRnCaA898DWWW0L8=; b=QROnsGizrgSG6Nx6+/MRmzhuhOi62nclptuOcFvbp5f3Uj7uaQNEMwKT4W+a0ff4Oh kH4+R22merttvJOUhf/kHwVK0kF/hBQozwCbepODy7tCfSaJWkaHzOTFKrfuvEtf4PQN evndyX19j1vSFqrlqwV1mbm4azTEVFBOv1FDnxg0k7Tua88c02I/T7gAkftpie9KrBSI aI54ldF+EbyQ+7o7thgO0zx0UV85FhQ/EUPAhtmlWgjmsYBasS638Rk4fANLXkX+mBnA pOa1gJ7qcfTBavXVib8F6uiVAobosVTxunLZEd2h+/2Wj83l/yGHDrOdhO3IZwweWIdd 3uEg== X-Gm-Message-State: AOAM530yfo1hN/9/ZQ7H+TQ/MxmFyNOLDN9jOjybCts6mif4FgvJNoMq 4MAZ0QhIDz9W56KqypA3AMsVeTEgOeV7+Mdm9vc= X-Google-Smtp-Source: ABdhPJzQdwBfyszMWwDEwCjZDQiUvtJS9wXW6nSSkIukfFXgFuyRRH1XkASvsG1/Gy8GnO83QwJkuLQ5e4RS3FeMu94= X-Received: by 2002:a05:6830:2259:: with SMTP id t25mr9828229otd.224.1634039668022; Tue, 12 Oct 2021 04:54:28 -0700 (PDT) MIME-Version: 1.0 References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> <87ee8qfre3.fsf@gnus.org> In-Reply-To: <87ee8qfre3.fsf@gnus.org> From: Philipp Stephani Date: Tue, 12 Oct 2021 13:54:16 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Am Di., 12. Okt. 2021 um 13:27 Uhr schrieb Lars Ingebrigtsen : > > Daniel Colascione writes: > > > I'd rather get out of the business of mucking with executable files > > even if it means we have a bit of extra complexity arising from having > > to deal with out-of-band pdmp files. > > Not mucking with the executable files is a definite plus, but on the > other hand -- having a self-contained emacs executable again would also > be really attractive. Is it really self-contained though? It would still need *.elc files, right? From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 12:00: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 To: Philipp Stephani Cc: 34180@debbugs.gnu.org, Daniel Colascione , Stefan Monnier , Paul Eggert Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16340399949498 (code B ref 34180); Tue, 12 Oct 2021 12:00:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 11:59:54 +0000 Received: from localhost ([127.0.0.1]:33719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGRm-0002T8-LT for submit@debbugs.gnu.org; Tue, 12 Oct 2021 07:59:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGRl-0002Ss-E5 for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 07:59:53 -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=AF8qU1YWUftqOjNWKNBOuwnMbubZP0HBhKd7rbmRofk=; b=RysXx1Pq7dzycynIGWmiRdHow2 /FYChe7WZu6g5Sf13pZklAx33voM6eE0Nbpweb+wxMhOMJQKV2q72+VWLH8Qt2mwvPOM+1gBHpDOL RzrIdCDHc/hV9CgA5htyuS8gNuWBwltdnQmhXtkLwncuaIhJwo0YBK1kJG/DoQo8kDYY=; 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 1maGRZ-0004hE-8s; Tue, 12 Oct 2021 13:59:43 +0200 From: Lars Ingebrigtsen References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> <87ee8qfre3.fsf@gnus.org> X-Now-Playing: The Soft Pink Truth's _Am I Free To Go?_: "Police Bastard (Doom cover)" Date: Tue, 12 Oct 2021 13:59:40 +0200 In-Reply-To: (Philipp Stephani's message of "Tue, 12 Oct 2021 13:54:16 +0200") Message-ID: <87tuhme9n7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philipp Stephani writes: > Is it really self-contained though? It would still need *.elc files, right? For most things, yes -- but not for basic stuff. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philipp Stephani writes: > Is it really self-contained though? It would still need *.elc files, right? For most things, yes -- but not for basic stuff. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp References: In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 12:29: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 To: Daniel Colascione Cc: 34180@debbugs.gnu.org, Lars Ingebrigtsen , Paul Eggert , Eli Zaretskii , Stefan Monnier Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163404170724593 (code B ref 34180); Tue, 12 Oct 2021 12:29:01 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 12:28:27 +0000 Received: from localhost ([127.0.0.1]:35305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGtO-0006OZ-Op for submit@debbugs.gnu.org; Tue, 12 Oct 2021 08:28:27 -0400 Received: from mail70c50.megamailservers.eu ([91.136.10.80]:53774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGtH-0006N9-Bu for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 08:28:25 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1634041683; bh=pLPRVWLQCmpTXGQ1pqhcJ16PCi2yL0hctSTFkEnlf+U=; h=From:Subject:Date:Cc:To:From; b=FjyjkkUFEB26BaI1popWRPYU5wLH5jvpjA8eg2QwKi7h4e8nEnHdgpht0dj4RKJb1 vewgfxgzkpWm8UaeYVtFBo/Ihn8wjamhFrrzmRN+gG8uE67boyWOMpjr4LJYnloJ/O 2/6XF5AbRoDzm+E522iN4AHf1duM2KQ1YyEjWSjs= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail70c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 19CCRx3D019178; Tue, 12 Oct 2021 12:28:01 +0000 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Message-Id: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> Date: Tue, 12 Oct 2021 14:27:59 +0200 X-Mailer: Apple Mail (2.3445.104.21) X-CTCH-RefID: str=0001.0A742F16.61657F53.004F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.4 cv=ReDzt3hv c=1 sm=1 tr=0 ts=61657f53 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=jMW63Q-AJrlcUjkIfeEA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE X-Spam-Score: 4.7 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I don't think Paul meant that we necessarily have to use the embedded dump in-place. It could just as well be the source of a memory copy to its runtime location; everything would then work just like [...] Content analysis details: (4.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 3.7 FAKE_REPLY_B No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.7 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I don't think Paul meant that we necessarily have to use the embedded dump in-place. It could just as well be the source of a memory copy to its runtime location; everything would then work just like [...] Content analysis details: (3.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.7 FAKE_REPLY_B No description available. I don't think Paul meant that we necessarily have to use the embedded = dump in-place. It could just as well be the source of a memory copy to = its runtime location; everything would then work just like today except = that the dump file is embedded into the executable. Basically, regenerating the dump file means relinking the executable and = that's it, no mucking about with executables required. It is easy to = write a portable solution that works everywhere. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 14:11: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 To: Lars Ingebrigtsen Cc: 34180@debbugs.gnu.org, dancol@dancol.org, monnier@IRO.UMontreal.CA, eggert@cs.ucla.edu Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16340478593936 (code B ref 34180); Tue, 12 Oct 2021 14:11:01 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 14:10:59 +0000 Received: from localhost ([127.0.0.1]:43422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maIUY-000114-Mc for submit@debbugs.gnu.org; Tue, 12 Oct 2021 10:10:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maIUV-00010B-TM for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 10:10:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40910) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maIUO-0007R1-7r; Tue, 12 Oct 2021 10:10:45 -0400 Received: from [87.69.77.57] (port=4140 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 1maIUF-0000Do-I4; Tue, 12 Oct 2021 10:10:42 -0400 Date: Tue, 12 Oct 2021 17:10:27 +0300 Message-Id: <8335p6qqp8.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87ee8qfre3.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 12 Oct 2021 12:51:00 +0200) References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> <97e17ac7-b46f-5cac-e0da-8a8f1e26813b@dancol.org> <87ee8qfre3.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Lars Ingebrigtsen > Cc: Paul Eggert , Eli Zaretskii , > 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA > Date: Tue, 12 Oct 2021 12:51:00 +0200 > > Daniel Colascione writes: > > > I'd rather get out of the business of mucking with executable files > > even if it means we have a bit of extra complexity arising from having > > to deal with out-of-band pdmp files. > > Not mucking with the executable files is a definite plus, but on the > other hand -- having a self-contained emacs executable again would also > be really attractive. But I agree with Daniel that the former is more important than the latter. If we do find a way of achieving the latter without risking the former, then sure. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 16:25: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 To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 34180@debbugs.gnu.org, Lars Ingebrigtsen , Paul Eggert , Eli Zaretskii , Stefan Monnier Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163405589614539 (code B ref 34180); Tue, 12 Oct 2021 16:25:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 16:24:56 +0000 Received: from localhost ([127.0.0.1]:50740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maKaF-0003mL-Sb for submit@debbugs.gnu.org; Tue, 12 Oct 2021 12:24:56 -0400 Received: from dancol.org ([96.126.100.184]:42270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maKaB-0003m3-RX for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 12:24:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: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=65tIFKBI3G+QeRjR6AhZqtVbVKmY3lO6xRcaErnx77k=; b=fiKESDl9CvS1uwsnlonvMt/KDc O5vjZCMnCgHw+EAths4b3g1Mcgoh6JSHKKvIrrUXVkC7lmHaP+DPLSZUJrso7Nt8FmHW9e42opz1B K6yfb25uWebLMNPp5bomQbXS5IRMKidiYlmb+95HXdLe1kMefah2ayNanAIjTOU+bKswmfl03rpFs 8yGM0qq2zJXbZ4/bwtGHfRVHYITCX9lLhDMIegxKN5uVG+fki4uhJKvUjYO3phZABXl3J9L6gINlx m9gu0jFPS6QWn8k+ZfBrpgzAtHLH6c6wFRCZlz7ne+dTzmN60jG9WUO/O7D7pukJgfnCp5/f29Z9s ZwSmLvFQ==; Received: from [2604:4080:1321:8020:2761:c5fe:e373:3ed] (port=37626) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1maKa9-0005AH-Cj; Tue, 12 Oct 2021 09:24:49 -0700 References: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> From: Daniel Colascione Message-ID: <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> Date: Tue, 12 Oct 2021 09:24:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 10/12/21 5:27 AM, Mattias EngdegÄrd wrote: > I don't think Paul meant that we necessarily have to use the embedded dump in-place. It could just as well be the source of a memory copy to its runtime location; everything would then work just like today except that the dump file is embedded into the executable. Copying the dump on startup will hurt performance --- the dump is meant to be used directly from a disk-backed file. I'm also not entirely clear on how you're planning on avoiding the usual problems with executable modification --- relinking the executable can change all the locations of the symbols in the binary, and if symbol locations change, any previously-generated dump becomes invalid. Even if on *some* platforms *today* we can replace an embedded dump image in an already-built executable without re-linking the thing, there's no guarantee that we can continue doing that. (For example --- imagine a future platform that signs all binaries during the build process.) Modifying binaries is always a platform-specific thing and doing it for Emacs risks forward compatibility. Usin a separate dump file relies only on public APIs guaranteed to work forever. From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 16:47: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 To: Daniel Colascione Cc: mattiase@acm.org, larsi@gnus.org, eggert@cs.ucla.edu, monnier@iro.umontreal.ca, 34180@debbugs.gnu.org Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163405719818407 (code B ref 34180); Tue, 12 Oct 2021 16:47:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 16:46:38 +0000 Received: from localhost ([127.0.0.1]:51292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maKv1-0004mB-3x for submit@debbugs.gnu.org; Tue, 12 Oct 2021 12:46:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maKuv-0004ln-UF for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 12:46:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48210) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maKup-0004hP-5K; Tue, 12 Oct 2021 12:46:11 -0400 Received: from [87.69.77.57] (port=1823 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 1maKuo-00064J-Nb; Tue, 12 Oct 2021 12:46:11 -0400 Date: Tue, 12 Oct 2021 19:46:03 +0300 Message-Id: <83mtnep4xg.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> (message from Daniel Colascione on Tue, 12 Oct 2021 09:24:48 -0700) References: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Cc: Paul Eggert , Lars Ingebrigtsen , > Eli Zaretskii , Stefan Monnier , > 34180@debbugs.gnu.org > From: Daniel Colascione > Date: Tue, 12 Oct 2021 09:24:48 -0700 > > (For example --- imagine a future platform that signs all binaries > during the build process.) That future is already here, on macOS, no? From unknown Tue Jun 17 22:29:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 17:01: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 To: Daniel Colascione Cc: 34180@debbugs.gnu.org, Lars Ingebrigtsen , Paul Eggert , Eli Zaretskii , Stefan Monnier Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163405800721061 (code B ref 34180); Tue, 12 Oct 2021 17:01:02 +0000 Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 17:00:07 +0000 Received: from localhost ([127.0.0.1]:51652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maL8J-0005TC-4D for submit@debbugs.gnu.org; Tue, 12 Oct 2021 13:00:07 -0400 Received: from mail158c50.megamailservers.eu ([91.136.10.168]:44500 helo=mail51c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maL8G-0005SA-25 for 34180@debbugs.gnu.org; Tue, 12 Oct 2021 13:00:06 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1634057988; bh=Rl0BmDyIa/FiLPDbZo5lrfPKVBTz3auDvuMHRNIse8o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=cwpSCdh8JqqZyJoK94YD2BvMpY0m3c5Ki+RUWEI/AsIp/mMegDPl6Rz5SDXXiTRpL LNRAmeO6gcg5rS4xS2i6UAa+eAu28i6HpBOqOpoc7Hmq2fuzTDjznpbhR5mVe8LYW+ 9bxra13wFYi8+EpiTeiOn008j8tlvIDLZD/0GmrA= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail51c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 19CGxiAw023602; Tue, 12 Oct 2021 16:59:46 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= In-Reply-To: <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> Date: Tue, 12 Oct 2021 18:59:43 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> X-Mailer: Apple Mail (2.3445.104.21) X-CTCH-RefID: str=0001.0A742F1F.6165BF04.00AA, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.4 cv=KOk5sHJo c=1 sm=1 tr=0 ts=6165bf04 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=7YMFdwvSQGZADW-45nEA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Copying the dump on startup will hurt performance --- the dump is = meant to be used directly from a disk-backed file. Is the cost of the all-sequential) paging-in noticeable? Surely a fair = part of it will be required more or less immediately anyway. The worst-case cost of an empty `-batch -Q` run actually decreased = somewhat when forcing the dump to be read up front, although admittedly = that was from a hot cache. > relinking the executable can change all the locations of the symbols = in the binary, and if symbol locations change, any previously-generated = dump becomes invalid. Partial linking would help, unless we use a diabolic linker that = rearranges the symbols based on the contents of a data array. > Even if on *some* platforms *today* we can replace an embedded dump = image in an already-built executable without re-linking the thing, = there's no guarantee that we can continue doing that. No, I don't think that's a viable way. As you say, in-place modification = wrecks havoc with any sort of binary checksumming.