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#64821: 30.0.50; write-region errs when overwriting an already open file Date: Thu, 27 Jul 2023 19:31:30 +0300 Message-ID: <83mszhl3j1.fsf@gnu.org> References: <2B783248-53AF-4486-8208-74A6B0A517EE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12345"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64821@debbugs.gnu.org, yantar92@gmail.com To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 27 19:31:17 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 1qP4pZ-00034C-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jul 2023 19:31:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qP3tI-0005HJ-9r; Thu, 27 Jul 2023 12:31:04 -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 1qP3tH-0005Gz-0u for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 12:31:03 -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 1qP3tG-0001Yu-P0 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 12:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qP3tG-0000os-C2 for bug-gnu-emacs@gnu.org; Thu, 27 Jul 2023 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2023 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64821 X-GNU-PR-Package: emacs Original-Received: via spool by 64821-submit@debbugs.gnu.org id=B64821.16904754483126 (code B ref 64821); Thu, 27 Jul 2023 16:31:02 +0000 Original-Received: (at 64821) by debbugs.gnu.org; 27 Jul 2023 16:30:48 +0000 Original-Received: from localhost ([127.0.0.1]:42959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP3t2-0000oK-5s for submit@debbugs.gnu.org; Thu, 27 Jul 2023 12:30:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP3t0-0000o7-4J for 64821@debbugs.gnu.org; Thu, 27 Jul 2023 12:30:46 -0400 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 1qP3su-0001XQ-Rk; Thu, 27 Jul 2023 12:30:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ijHYKuSDfHbGfZUHw0y1YaOTDnC9XAtHphl2V+JFus0=; b=XhaFR7GrEENGx10poXJl v1J5pf0g14IX49OGl9WS9g0VXRh8O/cpysfgqFuexNBz38xJG3UVr1sl+oW/77jA07XmAeCzuDvyV wkAKAsRJ7atc66lb5ojfcsuRz6rxbDWWS0mSySmJZg1HhrKOS6wE8Z5GJNFxRuncZb+Fwc6GXIuOT w5cv3Y12LgIFr6xrS53etv3rkhGJRSXAyPXdos+OYd6Q6g4lc8JdkqqYrIPGfRFjIp61i6jYPm8zw SrJaDfIYr8JWdCRem+aZLhws5MXj7PUIeV6BpjAw3NP7KiYB7UxFxHG4UMF8Az1KTDtZQ1WrIASpy n0fTKiPH2ZBNIw==; 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 1qP3st-0008Pr-OU; Thu, 27 Jul 2023 12:30:40 -0400 In-Reply-To: <2B783248-53AF-4486-8208-74A6B0A517EE@gmail.com> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Thu, 27 Jul 2023 17:07:26 +0200) 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:266209 Archived-At: > From: Mattias EngdegÄrd > Date: Thu, 27 Jul 2023 17:07:26 +0200 > Cc: Ihor Radchenko , > 64821@debbugs.gnu.org > > The change on master (8955853368) causes filelock-tests to fail; see attached log. > This is on macOS with an out-of-tree build. Sorry, I cannot reproduce this on any system to which I have access. Would you mind running the failing test under Edebug and telling which part in userlock.el signals an error, and why? Is that this line: (with-current-buffer (get-file-buffer (file-truename filename)) (set-visited-file-modtime)) If so, does it mean file-truename returns nil?