From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#34655: 26.1.92; Segfault in module with --module-assertions Date: Tue, 26 Feb 2019 11:16:56 +0000 Message-ID: <87h8cqre8n.fsf@tcd.ie> References: <874l8r1t3a.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223700"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34655@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 12:18:28 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyakm-000w7Z-Ap for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 12:18:28 +0100 Original-Received: from localhost ([127.0.0.1]:53125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyakl-0001N3-3W for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 06:18:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyakW-0001Mk-4l for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 06:18:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyakQ-0005u4-Bl for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 06:18:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyakM-0005tN-MT for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 06:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gyakM-0004s8-Dc for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 06:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Feb 2019 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34655 X-GNU-PR-Package: emacs Original-Received: via spool by 34655-submit@debbugs.gnu.org id=B34655.155117982618661 (code B ref 34655); Tue, 26 Feb 2019 11:18:02 +0000 Original-Received: (at 34655) by debbugs.gnu.org; 26 Feb 2019 11:17:06 +0000 Original-Received: from localhost ([127.0.0.1]:52325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyajR-0004qu-Tv for submit@debbugs.gnu.org; Tue, 26 Feb 2019 06:17:06 -0500 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:46798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyajQ-0004qN-08 for 34655@debbugs.gnu.org; Tue, 26 Feb 2019 06:17:04 -0500 Original-Received: by mail-ed1-f53.google.com with SMTP id f2so10348797edy.13 for <34655@debbugs.gnu.org>; Tue, 26 Feb 2019 03:17:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=WOjzsMJM9GB7KcurjQ6VTLYuM3YA1RDcn+5O0+XR5Pg=; b=EPNoUNbav4jlw84K4CKBev2guWVQjXecHjbZ4NBS6lhdPila8NcGRw4x+2Lv4/HPHr yAZvr1yTyF87GBUQS1JpDDmHJErOz++jY+eXCEy3TUrg887ZxNM/o67RCm8/8jJCe7da MZGXpPBup3YcR+/9YGlf6j6kZnLEpZyBvi0HZ+t7ZECPf46XAgKvRc5eTfTJALRK57Oc u0mokxvE64uGaC08nbVeqoDJ3KM1d93eR/mJWrx06cTyWAfu2T0ztimNIpxMvY2HG6ku Lvjo8W+30M6qrMfuIXliWPN7UBv1ExLhcaunoB8R1OrSvWJg1W/5/NWG5iWTRm8KcNyu H0MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=WOjzsMJM9GB7KcurjQ6VTLYuM3YA1RDcn+5O0+XR5Pg=; b=khqed44LaiOYkLp07bJspG0gh72CKCV1OitNWDTexg2x2g1TvhOkaiQxYiNMD9gsDC vsBTe7qKe7uZF9eosl4xiaSfX7gmVCRsNFWSTDcEWfUyWgSMLCEeWXkfYHoq9TnTD8kd C1qbJR38+RyWkDzyYeDl9OokO23fpHZQ6gDSCfOpDgcEt9VRTPfZ/9M5JIZxkbtD83Za TuHP9WPfDxg2/V9wMTZX3EV16Lj09Lfr92kF8gN46ZXBG5ozc9HpR6XlMO4mFvjeyZUB k2czYfo9ZI8gAUZgNBYqbR9x2Wwh82Ow7htDuCRmTMl1Kz6fEz6IKGhWR50kHDYQD9pV RGiA== X-Gm-Message-State: AHQUAuYX8anfvtN8dTUsrkv99oZdC3dag2ALVXZVRVmAA7NIFMHZCE5G aZiOKnt3IPzR1qfwx1d3KnWFZSeyaOWkQQ== X-Google-Smtp-Source: AHgI3IbAQpmUQg5OwZdwFz50DSDkCmKe04losuXKxNupHmL3i6lXqfs3FLOWmEYV5XWyNo7BQE0kxA== X-Received: by 2002:a50:b4db:: with SMTP id x27mr18607187edd.90.1551179818187; Tue, 26 Feb 2019 03:16:58 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id f10sm3410757edb.60.2019.02.26.03.16.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 26 Feb 2019 03:16:57 -0800 (PST) In-Reply-To: (Richard Stallman's message of "Mon, 25 Feb 2019 21:59:40 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155803 Archived-At: Richard Stallman writes: > > I have written a dynamic module which provides a function > > realpath-truename > > The function might be useful, but that is not the right name for it. > In the GNU system we do not use "path" to mean a file name. Thanks, I am aware of this. See below for how the name came to be. > Could you describe in words what job the function does? > Then I could suggest a name. Thanks, but just to clarify: I have not written this module with the intention of advertising it for others to use; I don't think anyone would find it of great use. I was motivated to write it to test Emacs' new (at the time) module system, and because, with enough packages installed, file-truename slowed down package-initialize (and thus my emacs-init-time) by a non-negligible amount. I thus overrode file-truename with realpath-truename using advice, with the caveat that realpath-truename does not respect file name handlers (in practice I never needed this). The new package-quickstart feature has made the module largely unnecessary. Either way, I regard it as a personal experiment. Re: the name, I chose 'realpath' because the original implementation was just that: a wrapper around realpath(3). It was only in a later version that I switched to using canonicalize_file_name(3) instead. Perhaps a better name would have been 'truename' or similar, but I don't think this is important enough a matter to justify renaming it now. Do you? The reason I submitted this bug report is because I don't know whether the switch --module-assertions has unveiled an issue in my module or Emacs' module implementation. -- Basil