From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13149: 24.3.50; Emacs thinks file was changed outside Emacs, but it was not Date: Tue, 15 Jan 2013 02:20:59 +0400 Message-ID: <50F484CB.6010905@gmail.com> References: <6CDE13E3BCAA4AFAAB8BCE105C6ABF12@us.oracle.com> <874njs19zb.fsf@yandex.ru> <50F3935A.2090003@yandex.ru> <50F41CE7.60306@gmail.com> <50F44E6B.8090007@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358202108 11767 80.91.229.3 (14 Jan 2013 22:21:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 22:21:48 +0000 (UTC) Cc: 13149@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 23:22:06 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TusPn-0007ZC-TS for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 23:22:00 +0100 Original-Received: from localhost ([::1]:49771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusPX-0005oN-JM for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 17:21:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusPS-0005o6-Q6 for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:21:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TusPQ-0000pa-Eu for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:21:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusPQ-0000pW-Bj for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:21:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TusPp-00073u-Pd for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jan 2013 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 13149-submit@debbugs.gnu.org id=B13149.135820209027110 (code B ref 13149); Mon, 14 Jan 2013 22:22:01 +0000 Original-Received: (at 13149) by debbugs.gnu.org; 14 Jan 2013 22:21:30 +0000 Original-Received: from localhost ([127.0.0.1]:60385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TusPK-00073C-4f for submit@debbugs.gnu.org; Mon, 14 Jan 2013 17:21:30 -0500 Original-Received: from mail-ee0-f47.google.com ([74.125.83.47]:42233) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TusPI-000730-C1 for 13149@debbugs.gnu.org; Mon, 14 Jan 2013 17:21:29 -0500 Original-Received: by mail-ee0-f47.google.com with SMTP id e52so2202797eek.20 for <13149@debbugs.gnu.org>; Mon, 14 Jan 2013 14:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=2TDd7DSNxmhdWpUKt+s2cetC3s4/W/CuclDEP5wsZR0=; b=UfN94voIJ2qzmU5/eUxNwYvITsFDrLN7iQ1rScOmf8s/vgc+2kZ8AE8AjPExLlpPCY O11cUtbyF5eloFxacEPlNyCyNMvetLX4YR0NdPFEHUvpYT6gztpjI5E4ywJqniT2y0LT 6a9SMhtgoIlb1u/oytPZ4YlzgUK6/e7Gkf+nXCzl2AEb3iZXNUAKJj45iT6IfCveenSI sq0tVqP4DI+OeJAka1XDBWqWshQNRLJ7if3fCURzRHAnSwq/3U8Gciu3dYQJVCoEcH2u XVxPLsIhINthFDlphkD2Ll7FvPnFuNLtYfBwlTxXT5Oqdtfyt8mE6ev2ylR5DTMbgnKp Wl7Q== X-Received: by 10.14.213.134 with SMTP id a6mr234711686eep.45.1358202061672; Mon, 14 Jan 2013 14:21:01 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id d3sm23163940eeo.13.2013.01.14.14.20.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 14:21:00 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <50F44E6B.8090007@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69774 Archived-At: On 14.01.2013 22:28, Paul Eggert wrote: > I'd guess it's a filesystem problem, where a file's > timestamp spontaneously changes even though the file > itself has not changed. I had thought those bugs > fixed long ago, but maybe not. My uninformed guess was there's a delay when writing to the file, and so the mtime is slightly later than the time Emacs saved. > Could you please start by trying the attached patch, > and then see what gets sent to stderr around the time > of the problem? That might help us work around the > problem better than the old code did (it introduced > some race conditions). Here you go, the stderr output during (open, modify, save, try to modify, y, modify, try to save, yes): stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358175175.428731700 stat_mtime=1358201692.000000000 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358194311.328310000 stat_mtime=1358194758.218531401 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358201692.912737000 stat_mtime=1358201706.000000000 stat_mtime=1358201706.392448700 Suspicious zeros?