From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Date: Tue, 12 Oct 2021 18:59:43 +0200 Message-ID: References: <59495BCF-EF2F-4E1F-A466-1CC61CE57893@acm.org> <3b65b08e-4f6d-d2cb-6621-7f6e988227de@dancol.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 34180@debbugs.gnu.org, Lars Ingebrigtsen , Paul Eggert , Stefan Monnier To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 19:01:34 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maL9i-0007Gc-0e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 19:01:34 +0200 Original-Received: from localhost ([::1]:38448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maL9g-0000D8-TP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 13:01:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maL9C-000090-EI for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 13:01:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maL9C-0002Gc-4q for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 13:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maL9C-0005Vx-3h for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 13:01:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.163405800721061 (code B ref 34180); Tue, 12 Oct 2021 17:01:02 +0000 Original-Received: (at 34180) by debbugs.gnu.org; 12 Oct 2021 17:00:07 +0000 Original-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 Original-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 Original-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 In-Reply-To: <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-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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217061 Archived-At: > 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.