From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via samba Date: Fri, 25 Jan 2013 10:18:58 +0200 Message-ID: <83ham5llot.fsf@gnu.org> References: <8738xq3n33.fsf@gmx.de> <87sj5q281x.fsf@gmx.de> <83622mmtz7.fsf@gnu.org> <83r4lala3q.fsf@gnu.org> <83ip6llmoy.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1359102007 338 80.91.229.3 (25 Jan 2013 08:20:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2013 08:20:07 +0000 (UTC) Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org To: dmoncayo@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 25 09:20:25 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 1TyeWO-0005ww-4n for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jan 2013 09:20:24 +0100 Original-Received: from localhost ([::1]:44519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeW6-0003TI-DF for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jan 2013 03:20:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeVz-0003Ro-I0 for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 03:20:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyeVv-0007WQ-GW for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 03:19:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeVv-0007WG-Dy for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 03:19:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TyeW2-0008Mo-7W for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 03:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Jan 2013 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13540 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13540-submit@debbugs.gnu.org id=B13540.135910194332073 (code B ref 13540); Fri, 25 Jan 2013 08:20:02 +0000 Original-Received: (at 13540) by debbugs.gnu.org; 25 Jan 2013 08:19:03 +0000 Original-Received: from localhost ([127.0.0.1]:48574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyeV4-0008LD-Mr for submit@debbugs.gnu.org; Fri, 25 Jan 2013 03:19:03 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36533) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyeV2-0008Kl-4n for 13540@debbugs.gnu.org; Fri, 25 Jan 2013 03:19:01 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MH600A009AIX900@a-mtaout22.012.net.il> for 13540@debbugs.gnu.org; Fri, 25 Jan 2013 10:18:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MH600AQF9RFSK70@a-mtaout22.012.net.il>; Fri, 25 Jan 2013 10:18:51 +0200 (IST) In-reply-to: <83ip6llmoy.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:70277 Archived-At: > Date: Fri, 25 Jan 2013 09:57:17 +0200 > From: Eli Zaretskii > Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org > > > > The lack of any messages suggests that the threads continue to run, > > > but file notifications never come in, which probably means we cannot > > > detect this problem automatically, and must rely on the users who know > > > which volumes can and cannot be supported. > > > > Ok, if Emacs cannot determine itself whether file notifications work, > > I'll set `auto-revert-use-notify' to nil on that machine. > > > > > Also, I presume that you tried to modify files on the mounted volumes, > > > while you had GDB attached to Emacs. > > > > Of course. I started and "emacs -Q" process under GDB, and from that > > emacs session I visited the file on the mounted volume and turned on > > auto-revert-mode. Then, if I modify the file with another program, > > the emacs buffer isn't reverted and the GDB console doesn't show any > > message. > > Thanks. > > I guess autorevert should allow users to specify whether notifications > should be used on a per filesystem basis, rather than just globally > for the entire session. Actually, there's one more thing I'd ask you to check. Can you put a breakpoint inside the watch_completion function, say on this line: if (!io_info) <<<<<<<<<<<<<<<<<<<<< return; and see if it ever breaks when you modify files in the directory that is being watched? The issue here is: do any notifications, even invalid ones, come in, or not? If we get invalid notifications, we could perhaps signal to the main thread that the watch is not working, and autorevert could then fall back on the old methods automatically.