From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#60996: 29.0.60; Native compile fails to remove temp file for trampoline Date: Mon, 23 Jan 2023 17:04:30 +0000 Message-ID: References: <74d13c46-5b26-9dd8-45dc-32b7fda25421@gmail.com> <833583ks9t.fsf@gnu.org> <86tu0iwx49.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6627"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 60996@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 23 18:05:18 2023 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 1pK0Fy-0001Yn-KX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Jan 2023 18:05:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pK0Fl-0000d6-6w; Mon, 23 Jan 2023 12:05:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pK0Fj-0000cl-FG for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 12:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pK0Fh-00025l-SI for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 12:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pK0Fh-0006qI-NK for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 12:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jan 2023 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60996 X-GNU-PR-Package: emacs Original-Received: via spool by 60996-submit@debbugs.gnu.org id=B60996.167449347426262 (code B ref 60996); Mon, 23 Jan 2023 17:05:01 +0000 Original-Received: (at 60996) by debbugs.gnu.org; 23 Jan 2023 17:04:34 +0000 Original-Received: from localhost ([127.0.0.1]:55218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK0FF-0006pW-WC for submit@debbugs.gnu.org; Mon, 23 Jan 2023 12:04:34 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:52985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK0FD-0006pL-Mm for 60996@debbugs.gnu.org; Mon, 23 Jan 2023 12:04:32 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 30NH4U0v028151 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 23 Jan 2023 17:04:30 GMT In-Reply-To: <86tu0iwx49.fsf@gmail.com> (Andy Moreton's message of "Sun, 22 Jan 2023 12:51:34 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254016 Archived-At: Andy Moreton writes: > On Sun 22 Jan 2023, Eli Zaretskii wrote: > >>> Date: Sat, 21 Jan 2023 22:12:10 +0000 >>> From: Andy Moreton >>> >>> Recently emacs 29 (and master) has started showing an error and >>> backtrace during startup: >>> >>> Debugger entered--Lisp error: (permission-denied "Removing old name" >>> "Permission denied" "c:/Users/ajm/AppData/Local/Temp/comp-lambda-MTAMbr...") >>> delete-file("c:/Users/ajm/AppData/Local/Temp/comp-lambda-MTAMbr...") >> >> We need a reproducible recipe to investigate this, or results of such >> investigation by you: which code has the file open when we try >> deleting it, and why that other code has it open? >> >> For a recipe, it should be enough to present a minimal init file which >> causes the problem (but pleased make it really minimal: as few lines >> as strictly needed for reproduction) > > It may take considerable time and effort to reduce my init file down to a > simple reproducer... > >> Btw, "comp-lambda-MTAMbr..." seems to tell that it's some part of >> comp.el, which sounds strange: comp.el is supposed to be >> natively-compiled during the build, and that includes the trampolines >> for it. Hmm... > > The backtrace always seems to contain: > > delete file("path/to/comp-lambda-XXXXX.eln") > comp--native-compile((lambda (...) ...)) > comp-trampoline-compile(function-name) > comp-subr-trampoline-install(function-name) > advice--add-function(...) > advice-add(function-name ...) > > So it looks very much like compiling trampolines is involved. Hello all, yes I confirm that's a trampoline compilation. The file starts with "lambda" as the mechanism is the same used for compiling function not not defined in source files. Andrea