From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60996: 29.0.60; Native compile fails to remove temp file for trampoline Date: Thu, 26 Jan 2023 20:38:45 +0200 Message-ID: <83r0vhcf9m.fsf@gnu.org> References: <74d13c46-5b26-9dd8-45dc-32b7fda25421@gmail.com> <833583ks9t.fsf@gnu.org> <86tu0iwx49.fsf@gmail.com> <83a629i3aj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andrewjmoreton@gmail.com, 60996@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 26 19:40:16 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 1pL7AW-0005Ag-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Jan 2023 19:40:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pL7AN-0008Kt-SS; Thu, 26 Jan 2023 13:40:07 -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 1pL7AI-0008K7-VW for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2023 13:40:05 -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 1pL7AH-0006jW-VL for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2023 13:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pL7AH-00082p-Ll for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2023 13:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2023 18:40: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.167475834530834 (code B ref 60996); Thu, 26 Jan 2023 18:40:01 +0000 Original-Received: (at 60996) by debbugs.gnu.org; 26 Jan 2023 18:39:05 +0000 Original-Received: from localhost ([127.0.0.1]:36171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pL79M-00081G-TX for submit@debbugs.gnu.org; Thu, 26 Jan 2023 13:39:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pL79K-00080i-OU for 60996@debbugs.gnu.org; Thu, 26 Jan 2023 13:39:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pL79F-0006bR-4B; Thu, 26 Jan 2023 13:38:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9L5wmvurknzNzXZjTxBdJuxQ2s0ebU87xZln2BJFGZA=; b=QdwjMisxn1fW rnL5M1PUIwkZG8SAT6UjrZmO5FJAPk905xLF45zz6c52bMCBy5F5hvjekPOUt/LbS/y5bLmTIhqho 1OPSpj/iv4E2ZyjldNqqqIrZqw8Aq/gif+BMNoSBvhmiRjYltqFBj5w23UYn6LmsxY/uuRkyIpCpR LygQFAsHm4AK7MSDFgAMdU3e1ppkC/axBRY3L9WcB2rqfGkhtMNAXYqcALhOnVrvC7+2RD4RYFcc7 Txga7clQ2b0BN76E37ETYaFdLhAJRg9PuOlU5oCQ6gh1Bxh1uvxrGulTgUX732Iic+Ik19wXvknYN S2OfyHBNypGi1d5mFfe9nw==; Original-Received: from [87.69.77.57] (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 1pL79E-0005D5-GB; Thu, 26 Jan 2023 13:38:56 -0500 In-Reply-To: (message from Andrea Corallo on Thu, 26 Jan 2023 16:50:59 +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:254225 Archived-At: > From: Andrea Corallo > Cc: andrewjmoreton@gmail.com, 60996@debbugs.gnu.org > Date: Thu, 26 Jan 2023 16:50:59 +0000 > > What I've understood from the trace is that `comp--native-compile' is > trying to delete the trampoline that was just compiled. > > This is not expected in normal conditions so we have to understand why. > > The only case where we might do that AFAIR is when > `inhibit-automatic-native-compilation' is used. This was the infamous > mechanism that was installed by Lars where, if I'm not wrong, we are > supposed to compile a trampoline, load it, and remove it to pretend we > didn't compiled anything :x OK, this seems to be what is happening here, because we compile the trampoline to a temporary directory. Otherwise, I don't see why we would do that, and why we would delete a trampoline we just compiled. > If (as I understand) in Windows we can't delete a mapped file we have a > problem more to solve. Yes. If this is what happens, then I think we will have to maintain a list of such trampolines, and delete them just before exiting, after calling dynlib_close for them.