GNU bug report logs - #44631
28.0.50; Byte compilation fails if destination file is a mount point

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Philipp Stephani <p.stephani2@HIDDEN>; dated Sat, 14 Nov 2020 12:41:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 44631 <at> debbugs.gnu.org:


Received: (at 44631) by debbugs.gnu.org; 14 Nov 2020 16:04:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 14 11:04:17 2020
Received: from localhost ([127.0.0.1]:51662 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kdy2C-0004dc-JR
	for submit <at> debbugs.gnu.org; Sat, 14 Nov 2020 11:04:16 -0500
Received: from quimby.gnus.org ([95.216.78.240]:43916)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kdy2A-0004d8-Ot
 for 44631 <at> debbugs.gnu.org; Sat, 14 Nov 2020 11:04:15 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=+Pu0afOk7Q/4u25SUS+qSovgF07Po/o7jQKF+QAvdxI=; b=TiTnCNVwSXxPZJpgBZUrhUxi3N
 urgvzsteb09irzYbJ8rwO5Ak0IlC7wK/SyB+XLUnzpJb+iaE96pZuH4Nr/SUuy7s92vZusUgtJ5nt
 HDrXPofATo7wtK423mInQO4bBFpG1J+xkcingf8Wa9HOmHMUl/KqeUIZkPzfAo3N6MeU=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kdy21-0000SA-Rj; Sat, 14 Nov 2020 17:04:08 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Philipp Stephani <p.stephani2@HIDDEN>
Subject: Re: bug#44631: 28.0.50; Byte compilation fails if destination file
 is a mount point
References: <wvr47dqof6xv.fsf@HIDDEN>
X-Now-Playing: Genesis's _Duke_: "Man of Our Times"
Date: Sat, 14 Nov 2020 17:04:04 +0100
In-Reply-To: <wvr47dqof6xv.fsf@HIDDEN> (Philipp Stephani's message of "Sat, 
 14 Nov 2020 13:39:56 +0100")
Message-ID: <87ima8ylfv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Philipp Stephani <p.stephani2@HIDDEN> writes: > Granted, 
 this is rather exotic. It's really exotic. :-) I'm just wondering -- did
 you happen upon this while trying to do something, or is it just designed
 to trigger the bug? 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44631
Cc: 44631 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Philipp Stephani <p.stephani2@HIDDEN> writes:

> Granted, this is rather exotic.

It's really exotic.  :-)  I'm just wondering -- did you happen upon this
while trying to do something, or is it just designed to trigger the bug?

> Nevertheless, byte-compile-file could
> fall back to a direct write-region without temporary file + rename, or
> rename-file could fall back to copy + remove on EBUSY (like EXDEV).

Hm...  the latter sounds like an easy fix, but aren't there more commond
cases where you get EBUSY where copy + remove would fail, too?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44631; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 12:40:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 14 07:40:10 2020
Received: from localhost ([127.0.0.1]:49994 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kduqg-0003Nh-Bd
	for submit <at> debbugs.gnu.org; Sat, 14 Nov 2020 07:40:10 -0500
Received: from lists.gnu.org ([209.51.188.17]:38656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <p.stephani2@HIDDEN>) id 1kduqe-0003NW-Kk
 for submit <at> debbugs.gnu.org; Sat, 14 Nov 2020 07:40:09 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50280)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <p.stephani2@HIDDEN>)
 id 1kduqe-0000qH-D1
 for bug-gnu-emacs@HIDDEN; Sat, 14 Nov 2020 07:40:08 -0500
Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:35687)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <p.stephani2@HIDDEN>)
 id 1kduqZ-0002Qr-TE
 for bug-gnu-emacs@HIDDEN; Sat, 14 Nov 2020 07:40:07 -0500
Received: by mail-wr1-x42a.google.com with SMTP id k2so13347730wrx.2
 for <bug-gnu-emacs@HIDDEN>; Sat, 14 Nov 2020 04:40:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=fJH+M+2Pm7OdWMcKPuLEL7rhjN/QLKW5W3JvNjF1v64=;
 b=DaBUsERlRTVjw34EgTjBouCBa96biBF0mzxeysJHAonfqvRz8VDX8EV6ePb288DuHJ
 BtuYmDX7TwZgaaMfEcknI5L4DF5ZZzvh1c+hxcWHo/ZvU6xeaJybWRewJSjWUQlMZgSX
 N2y4apArIZQBOZ6MQBMvaZyfzahlVEMwm/vkEZZn5nby5aCxSM1+qdTPrpB0kmrnSVzd
 0ZOXRjz2bUtotKvksI603RyvbBWPdxk/5Y9GbTbqGc5sl2ZX7JbobCPl8BKS9YR9pgpi
 XX1hmSfhCXUIrYPHHxwp+4bJojCoZOML58c3NVgNx/UpwAIDf8scQYAEfhz22bfrBzVd
 H7EA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=fJH+M+2Pm7OdWMcKPuLEL7rhjN/QLKW5W3JvNjF1v64=;
 b=KvBwGnQU0wwlgsxwiBVLr/KiCLu9gjue2n8SKlFXTU0Qyl8jj5n+NAqUwfSXJ2ZU3x
 73I93QsxUYgq2Qlb4JmFV/FFLt4n8NL9fdySk0jjB/fsv1PAUTPGNqq6WFDwe/5QYf1B
 ejsGJVsPghsAgXsZhEca4iT8K0MPbiqNLLtj2U4KZ+oQFKpIsn6ZZ4i0wktoHUWous1d
 OL4xsihkT0sPP6Ow0q8cr0RXZIILymGWxB8hdwl+Go1emnXPr4ptpAm4MaXcwu4SmXT/
 C4FuYd0Whcxx5Q1TQ9iVNIechELne3O3xCGaz4hXlhYy0ZjLk2zi7V2rRFflRfTPaRBy
 +o+A==
X-Gm-Message-State: AOAM531rxtJiVjRGLdKAxaNWKlS2qUqrl5wevJ64wOr/hruxYQCK8GUR
 BKCsBqxqr35n1YS3JklSlW+AWo/9j24=
X-Google-Smtp-Source: ABdhPJxkXl+yN12zHGnOuqqfDRSmWWdPxIhl6IVgTwtFv2N0Nedau9wITcAMTEXcQdS9oARh1n5yPg==
X-Received: by 2002:adf:ce07:: with SMTP id p7mr10066419wrn.39.1605357600387; 
 Sat, 14 Nov 2020 04:40:00 -0800 (PST)
Received: from phst1 ([46.128.199.221])
 by smtp.gmail.com with ESMTPSA id g186sm23496924wma.1.2020.11.14.04.39.59
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 14 Nov 2020 04:39:59 -0800 (PST)
From: Philipp Stephani <p.stephani2@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Byte compilation fails if destination file is a mount point
Date: Sat, 14 Nov 2020 13:39:56 +0100
Message-ID: <wvr47dqof6xv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::42a;
 envelope-from=p.stephani2@HIDDEN; helo=mail-wr1-x42a.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)


$ mkdir /tmp/mount
$ touch /tmp/mount/{file.el,file.elc,out.elc}
$ sudo mount --bind /tmp/mount/{out,file}.elc
$ emacs -Q -batch -f batch-byte-compile /tmp/mount/file.el
>>Error occurred processing /tmp/mount/file.el: File error (("Renaming" "De=
vice or resource busy" "/tmp/mount/file.elc91nN38" "/tmp/mount/file.elc"))
Removing old name: Device or resource busy, /tmp/mount/file.elc

Granted, this is rather exotic.  Nevertheless, byte-compile-file could
fall back to a direct write-region without temporary file + rename, or
rename-file could fall back to copy + remove on EBUSY (like EXDEV).


In GNU Emacs 28.0.50 (build 123, x86_64-pc-linux-gnu, GTK+ Version 3.24.22,=
 cairo version 1.16.0)
 of 2020-11-14
Repository revision: b13e87c35bb0215c211a456b8bc3184bf16eb5de
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux rodete

Configured using:
 'configure --enable-gcc-warnings=3Dwarn-only
 --enable-gtk-deprecation-warnings --without-pop --with-mailutils
 --enable-checking=3Dall --enable-check-lisp-object-type --with-modules
 'CFLAGS=3D-O0 -ggdb3''

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER

Important settings:
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=3Dibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs rfc822
mml easymenu mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs
time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils phst skeleton derived edmacro kmacro pcase ffap
thingatpt url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
mailcap rx gnutls puny dbus xml subr-x seq byte-opt gv bytecomp
byte-compile cconv compile text-property-search comint ansi-color ring
cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 69605 6950)
 (symbols 48 8580 1)
 (strings 32 24388 1373)
 (string-bytes 1 790285)
 (vectors 16 13889)
 (vector-slots 8 188851 5441)
 (floats 8 26 30)
 (intervals 56 212 0)
 (buffers 992 11))

--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen

Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

Diese E-Mail ist vertraulich.  Falls Sie diese f=C3=A4lschlicherweise erhal=
ten haben
sollten, leiten Sie diese bitte nicht an jemand anderes weiter, l=C3=B6sche=
n Sie
alle Kopien und Anh=C3=A4nge davon und lassen Sie mich bitte wissen, dass d=
ie E-Mail
an die falsche Person gesendet wurde.

This e-mail is confidential.  If you received this communication by mistake,
please don=E2=80=99t forward it to anyone else, please erase all copies and
attachments, and please let me know that it has gone to the wrong person.




Acknowledgement sent to Philipp Stephani <p.stephani2@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44631; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 14 Nov 2020 16:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.