From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#72641: 31.0.50; "Unlocking file: Invalid argument" when deleting lock file on network file system Date: Thu, 15 Aug 2024 17:59:21 +0200 Message-ID: <44a7yz49dle23+qtvkxc71uf@mina86.com> References: <867cfujge6.fsf@gnu.org> <86fruhiwt0.fsf@gnu.org> <868r09ivqn.fsf@gnu.org> <867cftiprt.fsf@gnu.org> <86msoph6wt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16306"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii To: 72641@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 15 18:02:41 2024 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 1secvx-00044m-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Aug 2024 18:02:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1secvl-0006VS-U8; Thu, 15 Aug 2024 12:02:29 -0400 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 1secvi-0006S6-OW for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 12:02:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1secvi-0003DP-Ei for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 12:02:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ndOn1DozyfFvphjQZo27X+MPiFOJsB5vBa26O6SHFYc=; b=b7ujiNU7Qy0orgIrdhXUCn2c2I7h9jaNBpyk5dTHCahMnq43ff05grsU/SosPWKpNxo7dF7W5Uac+0tfURfyY6cR6f24g6x1NnEz8vGhVpRWdEXmwhXnsiu70Osk2IXloDOkkEc5gPdaBFp3PhnKGijB8ebtDc5U1F28K0VxHlvZrIxiRSJ2pZLSeTk40TzB1N/wcH6d8LYkCBitvNjmjz3+bjE/gPSBxD5YiHiY5HKGuHqUQL15H/CSUU3DmjkfHeVep6mtEkhcYXWQzD/pXFdtyzc0Ytlh1zlJzw/UCMqPDETtO+sOnJDdhg53ZujibpgcBsCP1Kn/TRUGmMvHJA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1secwI-0001tG-BF for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 12:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2024 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72641 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.17237377367199 (code B ref -1); Thu, 15 Aug 2024 16:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2024 16:02:16 +0000 Original-Received: from localhost ([127.0.0.1]:49565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1secvX-0001s1-IR for submit@debbugs.gnu.org; Thu, 15 Aug 2024 12:02:16 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1secvU-0001rt-Vi for submit@debbugs.gnu.org; Thu, 15 Aug 2024 12:02:13 -0400 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 1secsp-0008U6-5d for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 11:59:27 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1secsm-0002C4-Pf; Thu, 15 Aug 2024 11:59:26 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5b9d4eaf3beso108675a12.1; Thu, 15 Aug 2024 08:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723737563; x=1724342363; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:face :references:in-reply-to:subject:cc:to:from:sender:from:to:cc:subject :date:message-id:reply-to; bh=ndOn1DozyfFvphjQZo27X+MPiFOJsB5vBa26O6SHFYc=; b=AYYeETkWKRlVduwBepprTztZM2v7i8IoVVjOWjhIncVl0YErU7wKCCPb1WEr4Cwdn1 KzID3LIFGlYsKh4watskJ3z86myKx+LnAwI0nx3KSE6yPky1QlVGND8PocxosqZXkM0P +MtGKSV/nbO5e8OT+2Q5yZAsEVPh0WPqVsUug2/kEhyn7G9tGVKLahEotXe74iT/E5c5 +RxS78MmNZxZ9Xr810v+JOFa13XyArDmizM6TSIi6r6ut+wJjnst3xkjPYb6a6AK4g0T LL34aa/i+W96eOFGvgT7vcGFkJ99IwydiSUc2VbhhiaWhTuAOo9WZKMlxk2Wtcj3subO 2XYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723737563; x=1724342363; h=content-transfer-encoding:mime-version:message-id:date:face :references:in-reply-to:subject:cc:to:from:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ndOn1DozyfFvphjQZo27X+MPiFOJsB5vBa26O6SHFYc=; b=n6zoetTlcO/Dcpko6MESe/CXkAf5qdu8cUifIiifp+rJv1/CDpFkH3oMi1RMWjiqGL y3eo09b9ADYP6DCk8rBJq0CaA7po/YbN6tjVbNDuUNykjvUIHz4IbghebQtGYJiX5IZ0 BBf/sH0fgy7GkPGkhuSGAPEEt6iiQOsG5Aqs8lCPhZNdV5xKclIrEXXfHdASf7m55+Tn TvctdgIpDY9Bl7+uKDqVpuU6G9k3FVSreEkPBJyZYS8CxCJl7BE7ghB+NPDC81lvGyR2 cGSOXWsaornZd+XUPvd4oebFaUsbUljT8O55pWA9FVZoELwnQaeoT/oXb5jQRw6njZjb TetA== X-Gm-Message-State: AOJu0YwJuVkTeL9O8MWzPn1QSI5FIwxJ+kOBvQaz7YHJJOr++cJx2I3v VOoc9xtQDgM92RC0epos30XmVZnwP0a+wjR8PFF6tvyeh6uqOHZFOqj5eQ== X-Google-Smtp-Source: AGHT+IEbw5xsL8uZy6KasteqxnWFoVwzZilMtJpwb2A9ZmbUxV9Uqv1eRqiJxwkVr5Q4PGV46djr3A== X-Received: by 2002:a05:6402:2794:b0:5a2:7cfe:236c with SMTP id 4fb4d7f45d1cf-5beb58b2c51mr1040868a12.4.1723737562314; Thu, 15 Aug 2024 08:59:22 -0700 (PDT) Original-Received: from erwin (87-205-2-211.static.ip.netia.com.pl. [87.205.2.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebbe7ed31sm1073715a12.67.2024.08.15.08.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 08:59:21 -0700 (PDT) X-Google-Original-Sender: =?UTF-8?Q?Micha=C5=82?= Nazarewicz In-Reply-To: <86msoph6wt.fsf@gnu.org> Original-Received: from erwin (87-205-2-211.static.ip.netia.com.pl. [87.205.2.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebc081cf5sm1015948a12.90.2024.08.15.08.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 08:41:04 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWjgIPUupJ7V0jLrom4gmjPs42bY0MdFRLHgE5UPDCbfGm9mH6qmkAJAAACNUlEQVQ4y23SMW/aQBQHcKtb2Zx0abZeIxuTCSELJVmiinboRpGHJktloROQzUQcB2vUXFe35XBYUicRAiYUVSjfru/d+QwlnDz5p/97z+dnVcw5WVQ2zxpcdrQTTiIin3bB6lcaTnaBO5c8eoJG2yBl5El+Ob3fglMW3RUIkQ9xxQ8UBEFQafiVZ/5wZqWExM+LvwEegAY856xZO7MgQkq3jxpO56GXxO5VDQAjpVmWqPLYoSGvIahIuvAVHLeEEDd9DRYAkUcKzscAUgCQ0hwSKBOExuh7kvQQUskY4yjsHqeaCfFjLK6x1AzeeyiRD/C1JW5aGqw5IS5mZre+FVz0RVtoUGPJmBCP/4QPJGKUA1oEMJwAHIv+JljYZYCJi1FRQS2DaUw6sgsQTMfb0Fz9RvjyP3iR01x9RGj0N6HgcefS819CSjidDwIFPSFEDgRg1tUw2oBXAB33T2DV63XbM6AqhZzysm3ZcKZrKBAn5O7Q1rAqGoBKNGRsmUG1n0NKaJtd2RnscTWvnom6fGngDaNrCNl728A+c2gLQP8PFpkEjNWjlGqQfPEhWRqoInSyi2p+drsGDjhAeAeSQI8kfjSwbwCn8gblvIftInzT30HdQT2HlU4gwCbLSQ7VFqVEA0RCtjTwtnjdLlkasNjQwF7x02F2iQSL8XIGB8 VQ71WBKHHf5XCIgLUUtIcGSBPhdZIQorpEBrxsqT3GYgRpmicIqrsEgSZm3FG+iJbHYid0/wGj+iTGCXRsqQAAAABJRU5ErkJggg== Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=mnazarewicz@gmail.com; helo=mail-ed1-x534.google.com 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_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:290184 Archived-At: [Sending this again as a new bug report since #70973 is archived]. On Thu, May 16 2024, Eli Zaretskii wrote: > I'm not sure we should silently sweep these rare and special cases > under the carpet. The warning is just a warning, and manually > deleting the lock file fixes even that. > > So I'm not sure we should do anything here, as long as the conclusion > is that this happened due to a system crash in an opportune moment. I=E2=80=99m getting the same warning on Linux with Emacs 31.0.50 and it=E2= =80=99s not caused by a crash. emacs> M-x find-file RET /o/foo RET blah RET cli> $ ls -l /o/.#foo=20 cli> -rw------- 1 mpn mpn 0 2024-08-15 16:30 /o/.#foo emacs> M-x save-buffer RET emacs> =E2=9B=94 Warning (unlock-file): Unlocking file: Invalid argumen= t, /o/foo, ignored cli> $ ls -l /o/.#foo /o/foo cli> -rw------- 1 mpn mpn 5 2024-08-15 16:31 /o/foo cli> -rw------- 1 mpn mpn 0 2024-08-15 16:30 /o/.#foo The problem appears to be that /o is a network file-system which does not support symbolic links: $ mount |grep /o //192.168.x.x/data on /o type cifs (rw,relatime,vers=3D3.0,cache=3Dstri= ct,username=3Dmpn,uid=3D1000,forceuid,gid=3D1000,forcegid,addr=3D192.168.x.= x,file_mode=3D0600,dir_mode=3D0700,soft,nounix,serverino,mapposix,reparse= =3Dnfs,rsize=3D4194304,wsize=3D4194304,bsize=3D1048576,retrans=3D1,echo_int= erval=3D60,actimeo=3D1,closetimeo=3D1,_netdev) $ ln -s /o/foo /o/f ln: failed to create symbolic link '/o/f': Input/output error I guess Emacs notices that when it tries to create a lock file and falls back to creating a file, but then it assumes it=E2=80=99s a symlink when tr= ying to remove it. ---------- >8 ------------------------------------------------------ In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-08-12 built on erwin Repository revision: 5d69e2916458148159d7f21257f3c4863b868690 Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure --prefix=3D/usr/local --disable-acl --enable-link-time-optimization --with-native-compilation=3Daot --without-dbus --without-gconf --without-gpm --without-gsettings --without-pop --without-selinux --without-systemd --without-toolkit-scroll-bars --with-x --with-x-toolkit=3Dgtk3 --with-xinput2 --with-xml2 'CFLAGS=3D-O2 -mtune=3Dnative -march=3Dnative -fstack-protector' 'CPPFLAGS=3D-O2 -mtune=3Dnative -march=3Dnative -fstack-protector' 'CXXFLAGS=3D-O2 -mtune=3Dnative -march=3Dnative -fstack-protector'' Configured features: CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: en_GB.utf8 locale-coding-system: utf-8-unix Major mode: Rust Minor modes in effect: server-mode: t flyspell-mode: t auto-dim-other-buffers-mode: t global-auto-revert-mode: t icomplete-mode: t global-num3-mode: t num3-mode: t global-whitespace-mode: t whitespace-mode: t global-flyspell-mode: t delete-selection-mode: t windmove-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 minibuffer-regexp-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/mpn/.config/emacs/elpa/transient-20210525.1141/transient hides /usr/l= ocal/share/emacs/31.0.50/lisp/transient ~/.config/emacs/custom hides /usr/local/share/emacs/31.0.50/lisp/custom Features: (shadow emacsbug mm-archive parse-time iso8601 mule-util image-mode exif wdired dired-aux pp network-stream nsm mailalias smtpmail textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp sort mail-extr notmuch notmuch-tree notmuch-jump notmuch-hello wid-edit notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser format-spec notmuch-wash diff-mode track-changes coolj goto-addr icalendar notmuch-tag crm notmuch-lib notmuch-compat pcase hl-line mm-view mml-smime smime gnutls dig gnus-alias rot13 message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs project dabbrev auto-package-update easy-mmode dash rust-utils rust-mode rust-rustfmt rust-playpen rust-compile rust-cargo time-date mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors multiple-cursors-core rect misearch multi-isearch conf-mode pulse color descr-text server flyspell form-feed init sgml-mode facemenu dom auto-dim-other-buffers face-remap autorevert filenotify comp comp-cstr cl-extra help-mode warnings comp-run comp-common rx icomplete num3-mode disp-table whitespace compile text-property-search comint ansi-osc ansi-color ring ispell remember advice browse-kill-ring delsel ffap thingatpt windmove diary-lib diary-loaddefs cal-menu calendar cal-loaddefs auto-dim-other-buffers-autoloads avy-autoloads browse-kill-ring-autoloads csv-mode-autoloads evil-autoloads gnu-elpa-keyring-update-autoloads gnus-alias-autoloads finder-inf markdown-mode-autoloads notmuch-autoloads protobuf-mode-autoloads sed-mode-autoloads info vterm-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen 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 easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 667368 1514832) (symbols 48 33066 15) (strings 32 118043 64516) (string-bytes 1 3468194) (vectors 16 66157) (vector-slots 8 1624733 757680) (floats 8 247 2757) (intervals 56 57621 24687) (buffers 984 58)) ---------- 8< ------------------------------------------------------ --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB