From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt M Newsgroups: gmane.emacs.bugs Subject: bug#46972: 28.0.50; [feature/native-comp] Emacs locks itself during native compilation because of permission denied Date: Sat, 6 Mar 2021 17:23:34 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DB6P190MB0327B79023280310ED8C9E88D6959DB6P190MB0327EURP_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15081"; mail-complaints-to="usenet@ciao.gmane.io" To: 46972@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 18:43:16 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 1lIaxP-0003pN-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 18:43:15 +0100 Original-Received: from localhost ([::1]:56644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIaxO-0001kG-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 12:43:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIaxC-0001fX-Vu for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 12:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIaxC-0003tJ-2Q for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 12:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIaxC-0001Nc-00 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 12:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt M Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 17:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46972 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16150525525262 (code B ref -1); Sat, 06 Mar 2021 17:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2021 17:42:32 +0000 Original-Received: from localhost ([127.0.0.1]:38231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIawh-0001Mn-6Z for submit@debbugs.gnu.org; Sat, 06 Mar 2021 12:42:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIatG-0001H7-Ka for submit@debbugs.gnu.org; Sat, 06 Mar 2021 12:38:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIatG-0007dV-Du for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 12:38:58 -0500 Original-Received: from mail-oln040092075102.outbound.protection.outlook.com ([40.92.75.102]:2181 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIatC-0002XU-Sv for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 12:38:58 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RGVQXn9J/enovmYqUzwNitkh3YmARu5TFS3BnwdTiguhyCQq+KUrVviTbW7it9eocvwK7/YRI3i7lzyAC9sCeyG0/r02lV5JaguAFYvIqMeeH/A1fUk8PSYc2BMdwgtnE6ZvCBQaf3sBG1lg1D+2OYTBRduun+ym7mto43+FMvnW25RilaOmbJdJclWE7bMGEdYDZu41qFLggJEbhYeJsoHqHxlozYlJYEVZycye96tEhX7DhCMGC9A+CsuA7AsM0X8zwR/O1pMUKp9/OryKEUwahqZpGdqwqq6RG1eFdtfXWBl281K8djrmivEsbm+Lcxmz4XaNaPrqK2m6bqUnSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u96MXwdW6bLJBFVKdeDVzhetotaSmzTsOzFOAQZKgmU=; b=fsMqcHr8gxWXRCG6uTirU364/zpl5p58Nsq0HKsLdrHbvNM1AF0nlcr5BXxffWo6llhIT5QjFoCIa1OV1ou8dnRXqx0vAv7sld/5EjfbokqqcMs4RN1QEVv31s5d/k/lRuH45EMx8Wo62ZT5VGVKlezj9NQCcB1S5JpgajPd0gQ2BY4uxm3Hw2FfEhxNWs8lyG5TAS9Z5zyBD2+FfYlMO/lUNjcR5ZwWcj7dPajPMazSdM8ZQFMPpdisPs9KcEplA17MPthAG68S2UREUlW4sCXzJHrZW0h/3VX/WwQwqhObytkqI1EwIh3vEQztIrhFer9lj1TPhSm4C91hytESLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Original-Received: from DB3EUR04FT052.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::45) by DB3EUR04HT183.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::375) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Sat, 6 Mar 2021 17:23:35 +0000 Original-Received: from DB6P190MB0327.EURP190.PROD.OUTLOOK.COM (2a01:111:e400:7e0c::45) by DB3EUR04FT052.mail.protection.outlook.com (2a01:111:e400:7e0c::131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Sat, 6 Mar 2021 17:23:35 +0000 Original-Received: from DB6P190MB0327.EURP190.PROD.OUTLOOK.COM ([fe80::24e3:8006:2de:16f2]) by DB6P190MB0327.EURP190.PROD.OUTLOOK.COM ([fe80::24e3:8006:2de:16f2%5]) with mapi id 15.20.3890.036; Sat, 6 Mar 2021 17:23:35 +0000 Thread-Topic: 28.0.50; [feature/native-comp] Emacs locks itself during native compilation because of permission denied Thread-Index: AQHXEq1fdhwFXuCBB0iscJksBUHMPQ== Accept-Language: fr-FR, en-US Content-Language: fr-FR x-incomingtopheadermarker: OriginalChecksum:DB6B38262DFF8ED2387C1B4B63071D09DA1027E37CA2E541CA991AB5CF2F5939; UpperCasedChecksum:F1427921834CAEB60B6912FF336732C9F8D260F1F23436217682578669B9FB67; SizeAsReceived:7026; Count:42 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [8fgzqWeXqIcTjyiubq2Oexmezpte9IgLHaAd4huSFzAOeEiQ2GKfaX/DOh24bPY2] x-ms-publictraffictype: Email x-incomingheadercount: 42 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 8809af26-a2fa-45c2-0c01-08d8e0c49297 x-ms-traffictypediagnostic: DB3EUR04HT183: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VZJXDwBTVtHqx1+VI+kId4xAEsbJI9+jvND9l/QR+s7jKJ3R6cd2jSMCCrKW8vvTG1bkCrnJj9Gng+ZYwgI/X9gjdwgJbnKpqBKkwRwMDwrcmNG9BLU1ZJB/EKtZOIdTm5ILE0iMQwM1z9PnBdN2eesilCD4KqI/dMbQ6DTxZYFYNc3ZfKMk3OHVlVjvPk4w0kqZxLcd1bGPy0BozfecqHo5V92uXvkDSGJt95nmD4TmjBR+TjtuTxiYAT6vrplNENspc7scyh3aOwEh8vLBMLlHOmPTxzoBj34FM0c/P1XEMWvI582Q2eDR9mQ1KUhUAZken2ys872VpeWrLHWxB9lojMjLChm33HIsUyVI7EKaDTnx1Y32LySRFbtqU+C9NSALC7XWHwlMkNWY6HgWQIVPa4OToqDzWA/P5iso2VU= x-ms-exchange-antispam-messagedata: GS8tCGmfUXyisCGXeGJOQAThqHHBkHuzAwKDJRnqT/WPgb1YR8NT8tP9u/RqvOD3SzOKmaiyjGOWxjetF8I8bzUQVhGsPvcVkSaNjQQGpNYY8c+0XofK8fQzLYzK7uIzyg0DPh0HSWltJiWz4WZU9IANhqfBEnvLzxG34RzHOBlDV/KqaQ1jl4mBYCzHOZCVdbYEhtJKqPfnT3eXwwncVw== x-ms-exchange-transport-forked: True X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT052.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 8809af26-a2fa-45c2-0c01-08d8e0c49297 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2021 17:23:34.9400 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT183 Received-SPF: pass client-ip=40.92.75.102; envelope-from=mmerino@outlook.fr; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Mar 2021 12:42:29 -0500 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:201649 Archived-At: --_000_DB6P190MB0327B79023280310ED8C9E88D6959DB6P190MB0327EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm on windows using latest native compilation. I noticed that when doing doom sync (I use Doom emacs) it would hang on the native compilation step. I looked at the opened emacs processes in the task manager during this bug to try to find a file with which I could make the bug trigger again. In the task manager I see that about 10 emacs processes are stuck on 10 files. Using this file: https://pastebin.com/z4wLheXa as emacs-async-comp-ox-ascii.el, I call the following command: emacs -Q --batch -l c:/Users/Matt/emacs-async-comp-ox-ascii.el > Compiling c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/org-mode/o= x-ascii.el... It never finishes. If I interrupt the process I get the following backtrace: Debugger entered--Lisp error: (file-error "Removing old name" "Permission d= enied" "c:/Users/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") kill-emacs(t) command-line() normal-top-level() Removing old name: Permission denied, c:/Users/Matt/.emacs.d/.local/cache/e= ln/28.0.50-4c6fa13f/ox-ascii-dcca1ba0-825ea35cp6iXUJ.eln.old Debugger entered--Lisp error: (file-error "Removing old name" "Permission d= enied" "c:/Users/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") command-error-default-function((file-error "Removing old name" "Permissio= n denied" "c:/Users/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") "" debug= ) apply(command-error-default-function ((file-error "Removing old name" "Pe= rmission denied" "c:/Users/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") "= " debug)) #f(advice-wrapper :after command-error-default-function help-command-erro= r-confusable-suggestions)((file-error "Removing old name" "Permission denie= d" "c:/Users/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") "" debug) It renamed a file from file.eln to file.eln.old, then tries to delete the file.eln.old but gets a Permission denied error. If I start the same command again without interrupting, and try to delete the file.eln.old manually, I get the error: Can't remove file because the file is opened in emacs.exe And the only emacs.exe process runnin on the computer is the one doing the native compilation, the one which created the file.eln.old. So that seems to indicate that the emacs process that renames the file doesn't have the permission to remove the same file because of it being opened in itself. In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of 2021-03-05 built on DESKTOP-MATT Repository revision: 552ef6d6c0733b864bcb14eeb6183d7e64df3b80 Repository branch: feature/native-comp Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Education (v10.0.2009.19042.804) Configured using: 'configure --with-native-compilation --with-gnutls --with-jpeg --with-png --with-rsvg --with-xml2 --without-imagemagick --without-pop --without-dbus' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LC_CTYPE: fr_FR.UTF-8 value of $LANG: FRA locale-coding-system: utf-8 Major mode: DOOM v2.0.9 Minor modes in effect: gcmh-mode: t global-hl-line-mode: t hl-line-mode: t winner-mode: t show-paren-mode: t ws-butler-global-mode: t global-undo-fu-session-mode: t undo-fu-session-mode: t undo-fu-mode: t global-flycheck-mode: t smartparens-global-mode: t which-key-mode: t better-jumper-mode: t better-jumper-local-mode: t company-box-mode: t global-company-mode: t company-mode: t ivy-prescient-mode: t prescient-persist-mode: t ivy-rich-project-root-cache-mode: t ivy-rich-mode: t ivy-mode: t evil-goggles-mode: t evil-escape-mode: t evil-snipe-override-mode: t evil-snipe-mode: t evil-snipe-override-local-mode: t evil-snipe-local-mode: t savehist-mode: t solaire-global-mode: t doom-modeline-mode: t key-chord-mode: t evil-repeat-motion-mode: t global-git-commit-mode: t org-roam-mode: t persp-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t +popup-mode: t general-override-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t window-divider-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/eri/eri hides c:/Users= /Matt/.emacs.d/.local/straight/build-28.0.50/agda2-mode/eri c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/annotation/annotation = hides c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/agda2-mode/annot= ation c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/agda2-mode/agda-input = hides c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/agda-input/agda-= input Features: (shadow sort whitespace vi-tilde-fringe display-line-numbers adaptive-wrap gcmh hl-line winner paren ws-butler undo-fu-session undo-fu flycheck-popup-tip evil-collection-popup popup evil-collection-flycheck flycheck nav-flash hide-mode-line mail-extr smartparens-config smartparens-text smartparens emacsbug sendmail char-fold cursor-sensor amx evil-collection-which-key which-key better-jumper company-box company-box-doc frame-local company-box-icons dash-functional company-capf company ivy-prescient prescient evil-collection-ivy ivy-avy avy all-the-icons-ivy ivy-rich counsel xdg ivy-xref evil-collection-xref xref project swiper ivy delsel ivy-faces ivy-overlay colir color evil-goggles pulse evil-easymotion evil-escape evil-snipe org-agenda lv doom-snippets doom-snippets-lib yasnippet evil-collection-elisp-mode elisp-mode savehist recentf tree-widget face-remap persistent-soft list-utils pcache eieio-base font-utils unicode-fonts doom-themes-ext-org doom-themes-ext-neotree doom-themes-ext-treemacs solaire-mode doom-one-theme doom-themes doom-themes-base dtrt-indent doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons key-chord evil-repeat-motion deft orgit evil-collection-magit-todos magit-todos pcre2el rxt re-builder hl-todo async evil-collection-grep grep evil-collection-compile compile github-review ghub-graphql treepy gsexp ghub url-http url-gw nsm url-auth gnutls deferred a evil-collection-magit magit-autoloads magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit core-packages package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff git-commit evil-collection-log-edit log-edit message rmc puny rfc822 mml mml-sec evil-collection-epa epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor evil-collection-term term ehelp esh-help evil-collection-man man em-unix eshell-z em-dirs esh-var evil-collection-eshell em-prompt eshell-did-you-mean esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util evil-collection-dired dired dired-loaddefs server magit-mode transient help-mode magit-git magit-section benchmark magit-utils which-func evil-collection-imenu imenu evil-collection-vc-git vc-git evil-collection-diff-mode diff-mode ido crm org-roam org-roam-link org-roam-graph xml org-roam-doctor org-roam-dailies org-roam-capture org-roam-db emacsql-sqlite3 emacsql emacsql-compiler org-capture org-roam-completion org-roam-buffer org-roam-faces org-roam-macs org-roam-compat f s dash org-id org-refile smartparens-org org-yt org-element avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs format-spec find-func evil-collection-calendar evil-collection-custom cus-edit cus-start cus-load wid-edit evil-collection-comint evil-collection annalist cal-menu calendar cal-loaddefs persp-mode let-alist ibuf-macs evil evil-integration evil-maps evil-commands ffap url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars reveal flyspell ispell evil-jumps evil-command-window evil-types evil-search shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core advice evil-common windmove thingatpt rect evil-digraphs evil-vars ring derived core-editor core-projects core-ui edmacro kmacro easy-mmode comp comp-cstr warnings rx core-keybinds pp general cl-extra easymenu seq byte-opt cl-seq use-package-core bytecomp byte-compile cconv core-modules realgud-recursive-autoloads cl core core-lib cl-macs gv cl-loaddefs cl-lib subr-x iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 1092168 1889617) (symbols 48 49260 2178) (strings 32 164215 99347) (string-bytes 1 5915413) (vectors 16 64852) (vector-slots 8 1222623 822052) (floats 8 1154 2009) (intervals 56 811 188) (buffers 992 13)) --_000_DB6P190MB0327B79023280310ED8C9E88D6959DB6P190MB0327EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I'm on windows using latest native compilation. I no= ticed that when doing

doom sync (I use Doom emacs) it would hang on the na= tive compilation

step. I looked at the opened emacs processes in the = task manager

during this bug to try to find a file with which I c= ould make the bug

trigger again. In the task manager I see that about = 10 emacs processes

are stuck on 10 files.

 

Using this file: https://pastebin.com/z4wLheXa as

emacs-async-comp-ox-ascii.el, I call the following c= ommand:

 

emacs -Q --batch -l c:/Users/Matt/emacs-async-comp-o= x-ascii.el

> Compiling c:/Users/Matt/.emacs.d/.local/straigh= t/build-28.0.50/org-mode/ox-ascii.el...

 

It never finishes. If I interrupt the process I get = the following

backtrace:

 

Debugger entered--Lisp error: (file-error "Remo= ving old name" "Permission denied" "c:/Users/Matt/.emac= s.d/.local/cache/eln/28.0.50-4c...")

  kill-emacs(t)

  command-line()

  normal-top-level()

 

Removing old name: Permission denied, c:/Users/Matt/= .emacs.d/.local/cache/eln/28.0.50-4c6fa13f/ox-ascii-dcca1ba0-825ea35cp6iXUJ= .eln.old

Debugger entered--Lisp error: (file-error "Remo= ving old name" "Permission denied" "c:/Users/Matt/.emac= s.d/.local/cache/eln/28.0.50-4c...")

  command-error-default-function((file-error &q= uot;Removing old name" "Permission denied" "c:/Users/Ma= tt/.emacs.d/.local/cache/eln/28.0.50-4c...") "" debug)

  apply(command-error-default-function ((file-e= rror "Removing old name" "Permission denied" "c:/U= sers/Matt/.emacs.d/.local/cache/eln/28.0.50-4c...") "" debug= ))

  #f(advice-wrapper :after command-error-defaul= t-function help-command-error-confusable-suggestions)((file-error "Rem= oving old name" "Permission denied" "c:/Users/Matt/.ema= cs.d/.local/cache/eln/28.0.50-4c...") "" debug)

 

It renamed a file from file.eln to file.eln.old, the= n tries to delete

the file.eln.old but gets a Permission denied error.=

 

If I start the same command again without interrupti= ng, and try to

delete the file.eln.old manually, I get the error:

Can't remove file because the file is opened in emac= s.exe

 

And the only emacs.exe process runnin on the compute= r is the one doing

the native compilation, the one which created the fi= le.eln.old.

 

So that seems to indicate that the emacs process tha= t renames the file

doesn't have the permission to remove the same file = because of it being

opened in itself.

 

 

 

In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32)

of 2021-03-05 built on DESKTOP-MATT

Repository revision: 552ef6d6c0733b864bcb14eeb6183d7= e64df3b80

Repository branch: feature/native-comp

Windowing system distributor 'Microsoft Corp.', vers= ion 10.0.19042

System Description: Microsoft Windows 10 Education (= v10.0.2009.19042.804)

 

Configured using:

'configure --with-native-compilation --with-gnutls -= -with-jpeg

--with-png --with-rsvg --with-xml2 --without-imagema= gick --without-pop

--without-dbus'

 

Configured features:

ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULE= S NATIVE_COMP NOTIFY

W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKI= T_SCROLL_BARS XPM

ZLIB

 

Important settings:

  value of $LC_CTYPE: fr_FR.UTF-8

  value of $LANG: FRA

  locale-coding-system: utf-8

 

Major mode: DOOM v2.0.9

 

Minor modes in effect:

  gcmh-mode: t

  global-hl-line-mode: t

  hl-line-mode: t

  winner-mode: t

  show-paren-mode: t

  ws-butler-global-mode: t

  global-undo-fu-session-mode: t

  undo-fu-session-mode: t

  undo-fu-mode: t

  global-flycheck-mode: t

  smartparens-global-mode: t

  which-key-mode: t

  better-jumper-mode: t

  better-jumper-local-mode: t

  company-box-mode: t

  global-company-mode: t

  company-mode: t

  ivy-prescient-mode: t

  prescient-persist-mode: t

  ivy-rich-project-root-cache-mode: t

  ivy-rich-mode: t

  ivy-mode: t

  evil-goggles-mode: t

  evil-escape-mode: t

  evil-snipe-override-mode: t

  evil-snipe-mode: t

  evil-snipe-override-local-mode: t

  evil-snipe-local-mode: t

  savehist-mode: t

  solaire-global-mode: t

  doom-modeline-mode: t

  key-chord-mode: t

  evil-repeat-motion-mode: t

  global-git-commit-mode: t

  org-roam-mode: t

  persp-mode: t

  shell-dirtrack-mode: t

  evil-mode: t

  evil-local-mode: t

  +popup-mode: t

  general-override-mode: t

  global-eldoc-mode: t

  electric-indent-mode: t

  mouse-wheel-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  window-divider-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  buffer-read-only: t

  size-indication-mode: t

  column-number-mode: t

  line-number-mode: t

  transient-mark-mode: t

 

Load-path shadows:

c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50= /eri/eri hides c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50/agda2-m= ode/eri

c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50= /annotation/annotation hides c:/Users/Matt/.emacs.d/.local/straight/build-2= 8.0.50/agda2-mode/annotation

c:/Users/Matt/.emacs.d/.local/straight/build-28.0.50= /agda2-mode/agda-input hides c:/Users/Matt/.emacs.d/.local/straight/build-2= 8.0.50/agda-input/agda-input

 

Features:

(shadow sort whitespace vi-tilde-fringe display-line= -numbers

adaptive-wrap gcmh hl-line winner paren ws-butler un= do-fu-session

undo-fu flycheck-popup-tip evil-collection-popup pop= up

evil-collection-flycheck flycheck nav-flash hide-mod= e-line mail-extr

smartparens-config smartparens-text smartparens emac= sbug sendmail

char-fold cursor-sensor amx evil-collection-which-ke= y which-key

better-jumper company-box company-box-doc frame-loca= l company-box-icons

dash-functional company-capf company ivy-prescient p= rescient

evil-collection-ivy ivy-avy avy all-the-icons-ivy iv= y-rich counsel xdg

ivy-xref evil-collection-xref xref project swiper iv= y delsel ivy-faces

ivy-overlay colir color evil-goggles pulse evil-easy= motion evil-escape

evil-snipe org-agenda lv doom-snippets doom-snippets= -lib yasnippet

evil-collection-elisp-mode elisp-mode savehist recen= tf tree-widget

face-remap persistent-soft list-utils pcache eieio-b= ase font-utils

unicode-fonts doom-themes-ext-org doom-themes-ext-ne= otree

doom-themes-ext-treemacs solaire-mode doom-one-theme= doom-themes

doom-themes-base dtrt-indent doom-modeline doom-mode= line-segments

doom-modeline-env doom-modeline-core shrink-path all= -the-icons

all-the-icons-faces data-material data-weathericons = data-octicons

data-fileicons data-faicons data-alltheicons key-cho= rd

evil-repeat-motion deft orgit evil-collection-magit-= todos magit-todos

pcre2el rxt re-builder hl-todo async evil-collection= -grep grep

evil-collection-compile compile github-review ghub-g= raphql treepy gsexp

ghub url-http url-gw nsm url-auth gnutls deferred a<= /p>

evil-collection-magit magit-autoloads magit-submodul= e magit-obsolete

magit-popup magit-blame magit-stash magit-reflog mag= it-bisect magit-push

magit-pull magit-fetch magit-clone magit-remote magi= t-commit

magit-sequence magit-notes magit-worktree magit-tag = magit-merge

magit-branch magit-reset magit-files magit-refs magi= t-status magit

core-packages package browse-url url url-proxy url-p= rivacy url-expand

url-methods url-history url-cookie url-domsuf url-ut= il mailcap

url-handlers magit-repos magit-apply magit-wip magit= -log magit-diff

smerge-mode diff git-commit evil-collection-log-edit= log-edit message

rmc puny rfc822 mml mml-sec evil-collection-epa epa = epg epg-config

gnus-util rmail rmail-loaddefs text-property-search = mm-decode mm-bodies

mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util= ietf-drums

mail-prsvr mailabbrev mail-utils gmm-utils mailheade= r pcvs-util add-log

magit-core magit-autorevert autorevert filenotify ma= git-margin

magit-transient magit-process with-editor evil-colle= ction-term term

ehelp esh-help evil-collection-man man em-unix eshel= l-z em-dirs esh-var

evil-collection-eshell em-prompt eshell-did-you-mean= esh-mode eshell

esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-= module esh-groups

esh-util evil-collection-dired dired dired-loaddefs = server magit-mode

transient help-mode magit-git magit-section benchmar= k magit-utils

which-func evil-collection-imenu imenu evil-collecti= on-vc-git vc-git

evil-collection-diff-mode diff-mode ido crm org-roam= org-roam-link

org-roam-graph xml org-roam-doctor org-roam-dailies = org-roam-capture

org-roam-db emacsql-sqlite3 emacsql emacsql-compiler= org-capture

org-roam-completion org-roam-buffer org-roam-faces o= rg-roam-macs

org-roam-compat f s dash org-id org-refile smartpare= ns-org org-yt

org-element avl-tree generator org ob ob-tangle ob-r= ef ob-lob ob-table

ob-exp org-macro org-footnote org-src ob-comint org-= pcomplete org-list

org-faces org-entities time-date noutline outline or= g-version

ob-emacs-lisp ob-core ob-eval org-table ol org-keys = org-compat org-macs

org-loaddefs format-spec find-func evil-collection-c= alendar

evil-collection-custom cus-edit cus-start cus-load w= id-edit

evil-collection-comint evil-collection annalist cal-= menu calendar

cal-loaddefs persp-mode let-alist ibuf-macs evil evi= l-integration

evil-maps evil-commands ffap url-parse auth-source e= ieio eieio-core

eieio-loaddefs password-cache json map url-vars reve= al flyspell ispell

evil-jumps evil-command-window evil-types evil-searc= h shell pcomplete

comint ansi-color evil-macros evil-repeat evil-state= s evil-core advice

evil-common windmove thingatpt rect evil-digraphs ev= il-vars ring derived

core-editor core-projects core-ui edmacro kmacro eas= y-mmode comp

comp-cstr warnings rx core-keybinds pp general cl-ex= tra easymenu seq

byte-opt cl-seq use-package-core bytecomp byte-compi= le cconv

core-modules realgud-recursive-autoloads cl core cor= e-lib cl-macs gv

cl-loaddefs cl-lib subr-x iso-transl tooltip eldoc e= lectric uniquify

ediff-hook vc-hooks lisp-float-type mwheel dos-w32 l= s-lisp disp-table

term/w32-win w32-win w32-vars term/common-win tool-b= ar dnd fontset image

regexp-opt fringe tabulated-list replace newcomment = text-mode lisp-mode

prog-mode register page tab-bar menu-bar rfn-eshadow= isearch timer

select scroll-bar mouse jit-lock font-lock syntax fa= cemenu font-core

term/tty-colors frame minibuffer cl-generic cham geo= rgian utf-8-lang

misc-lang vietnamese tibetan thai tai-viet lao korea= n japanese eucjp-ms

cp51932 hebrew greek romanian slovak czech european = ethiopic indian

cyrillic chinese composite charscript charprop case-= table epa-hook

jka-cmpr-hook simple abbrev obarray cl-preloaded nad= vice button loaddefs

faces cus-face pcase macroexp files window text-prop= erties overlay sha1

md5 base64 format env code-pages mule custom widget<= /p>

hashtable-print-readable backquote threads w32notify= w32 multi-tty

make-network-process nativecomp emacs)

 

Memory information:

((conses 16 1092168 1889617)

(symbols 48 49260 2178)

(strings 32 164215 99347)

(string-bytes 1 5915413)

(vectors 16 64852)

(vector-slots 8 1222623 822052)

(floats 8 1154 2009)

(intervals 56 811 188)

(buffers 992 13))

--_000_DB6P190MB0327B79023280310ED8C9E88D6959DB6P190MB0327EURP_--