From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#19607: issue with Emacs 24.4.1 but not with 24.3.1 : changed on disk; really edit the buffer Date: Fri, 23 Jan 2015 14:27:25 -0800 Organization: UCLA Computer Science Department Message-ID: <54C2CACD.3040700@cs.ucla.edu> References: <54BE224E.80406@cs.ucla.edu> <54BEF122.60700@cs.ucla.edu> <54C05E6B.3070106@cs.ucla.edu> <54C163AF.6080500@cs.ucla.edu> <54C17CDD.7090507@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000902030807030604050702" X-Trace: ger.gmane.org 1422052094 28976 80.91.229.3 (23 Jan 2015 22:28:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2015 22:28:14 +0000 (UTC) Cc: 19607@debbugs.gnu.org To: Bertrand Brelier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 23:28:10 2015 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 1YEmi1-0001s7-NN for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2015 23:28:09 +0100 Original-Received: from localhost ([::1]:33389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEmi0-0004og-UG for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2015 17:28:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEmhx-0004ob-JO for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 17:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEmhu-0007lV-Bo for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 17:28:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEmhu-0007l0-9T for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 17:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YEmht-00085h-TK for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 17:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jan 2015 22:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19607-submit@debbugs.gnu.org id=B19607.142205205631070 (code B ref 19607); Fri, 23 Jan 2015 22:28:01 +0000 Original-Received: (at 19607) by debbugs.gnu.org; 23 Jan 2015 22:27:36 +0000 Original-Received: from localhost ([127.0.0.1]:54677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEmhU-000853-4i for submit@debbugs.gnu.org; Fri, 23 Jan 2015 17:27:36 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:39458) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEmhR-00084r-Dn for 19607@debbugs.gnu.org; Fri, 23 Jan 2015 17:27:34 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 19284A60017; Fri, 23 Jan 2015 14:27:27 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l171cYBPbd23; Fri, 23 Jan 2015 14:27:26 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 09999A60004; Fri, 23 Jan 2015 14:27:26 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:98661 Archived-At: This is a multi-part message in MIME format. --------------000902030807030604050702 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks, the key problem is the fourth time the breakpoint is hit, where the output in your log looks like this: Breakpoint 3, Fverify_visited_file_modtime (buf=27021317) at fileio.c:5338 5338 if (timespec_cmp (mtime, b->modtime) == 0 (gdb) p mtime $7 = { tv_sec = 1422018451, tv_nsec = 132061000 } (gdb) p b->modtime $8 = { tv_sec = 1422018451, tv_nsec = 40059000 } The two time stamps should be the same, but the nanoseconds component differ (the tv_sec components are the same, which is why we don't observe any bugs in the strace output). I suspect a bug in the file system. Can you please try running the attached program, with the current directory being that file system? It should take about 2 seconds. You might try running it twice (it may depend on whether the file already exists). --------------000902030807030604050702 Content-Type: text/plain; charset=UTF-8; name="test.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.c" I2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1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OlxuIgoJ ICAgICAgImh0dHA6Ly9wdWJzLm9wZW5ncm91cC5vcmcvb25saW5lcHVicy8iCgkgICAgICAi OTY5OTkxOTc5OS9iYXNlZGVmcy9WMV9jaGFwMDQuaHRtbCN0YWdfMDRfMDhcbiIpOwogICAg ICByZXR1cm4gMTsKICAgIH0KICByZXR1cm4gMDsKfQo= --------------000902030807030604050702--