From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Finding the dump Date: Wed, 23 Jan 2019 16:44:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="215193"; mail-complaints-to="usenet@ciao.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 23 16:45:03 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmKi4-000tpi-HQ for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2019 16:45:00 +0100 Original-Received: from localhost ([127.0.0.1]:37076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmKi3-0007aD-H9 for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2019 10:44:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmKhu-0007Z1-Uv for emacs-devel@gnu.org; Wed, 23 Jan 2019 10:44:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmKhu-0005zd-6m for emacs-devel@gnu.org; Wed, 23 Jan 2019 10:44:50 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:41514 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmKhu-0005z0-11 for emacs-devel@gnu.org; Wed, 23 Jan 2019 10:44:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 23762B074; Wed, 23 Jan 2019 15:44:48 +0000 (UTC) X-Yow: I'm MENTALLY here.. but PHYSICALLY I'm purchasing NAUGAHYDE furniture in the' SUBURBS of PHOENIX!! In-Reply-To: (Stefan Monnier's message of "Wed, 23 Jan 2019 08:15:57 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232634 Archived-At: On Jan 23 2019, Stefan Monnier wrote: > This is because I run my Emacs via a symlink, and load_pdump is not > careful to try and follow symlinks while looking for the .pdmp next to > the executable. Since argv[0] is almost never absolute, that route doesn't work anyway. It's even a security bug, since it happily loads a (possibly manipulated) dump file from the current directory if it has the right hash. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."