From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#48141: 28.0.50; Files left over by native compiler Date: Sat, 01 May 2021 12:54:25 -0400 Message-ID: <70v982mm2m.fsf@fencepost.gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36569"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 48141@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 01 18:56:30 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 1lcsus-0009Qg-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 18:56:30 +0200 Original-Received: from localhost ([::1]:51194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcsur-0001Kv-BJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 12:56:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcstS-00006a-7m for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 12:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcstR-0006t4-Ux for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 12:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcstR-0001IV-UP for bug-gnu-emacs@gnu.org; Sat, 01 May 2021 12:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 May 2021 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48141 X-GNU-PR-Package: emacs Original-Received: via spool by 48141-submit@debbugs.gnu.org id=B48141.16198880744950 (code B ref 48141); Sat, 01 May 2021 16:55:01 +0000 Original-Received: (at 48141) by debbugs.gnu.org; 1 May 2021 16:54:34 +0000 Original-Received: from localhost ([127.0.0.1]:37276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcssz-0001Hk-R0 for submit@debbugs.gnu.org; Sat, 01 May 2021 12:54:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcssz-0001Hd-3e for 48141@debbugs.gnu.org; Sat, 01 May 2021 12:54:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46223) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcsst-0006bK-JI; Sat, 01 May 2021 12:54:27 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lcssr-0003yK-Jc; Sat, 01 May 2021 12:54:25 -0400 X-Spook: Rubin World News constitution counter intelligence M5 X-Ran: ?ql-3yC#yH15[ (Stefan Monnier's message of "Sat, 01 May 2021 10:36:22 -0400") 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:205361 Archived-At: Stefan Monnier wrote: > I have a few files apparently left over from failed native compilations. > They look like `lisp/foo.elcABCDEF` where `ABCDEF` is random > (presumably chosen by `make-temp-file`). This is not directly related to native compilation. This is so creation of .elc files can be atomic (bug#4196). > I haven't found a way to reproduce the problem, so I'm not sure exactly > how they got here but maybe we need to take more precautions to remove > them I would guess that the only way this can happen is if Emacs dies during byte-compilation, which is obviously not a normal situation. > and maybe we should put them in /tmp? IIUC, the temp files must be on the same partition as the destination .elc files, else the move would not be atomic.