From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#23276: 25.0.92; Crash in auto-revert when file no longer present Date: Sat, 16 Apr 2016 20:55:19 +0200 Message-ID: References: <87vb3hgzr1.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c122d283ea23f05309eabb4 X-Trace: ger.gmane.org 1460832981 7661 80.91.229.3 (16 Apr 2016 18:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 18:56:21 +0000 (UTC) Cc: 23276@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 20:56:10 2016 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 1arVO5-0004dd-Pm for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2016 20:56:10 +0200 Original-Received: from localhost ([::1]:60083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arVO5-0001b6-AW for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2016 14:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arVO2-0001Z2-2G for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 14:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arVNy-0004TA-Rw for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 14:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arVNy-0004T6-Oz for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 14:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1arVNy-00039k-E4 for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Apr 2016 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23276 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23276-submit@debbugs.gnu.org id=B23276.146083292712081 (code B ref 23276); Sat, 16 Apr 2016 18:56:02 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 16 Apr 2016 18:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:37627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arVNP-00038n-0F for submit@debbugs.gnu.org; Sat, 16 Apr 2016 14:55:27 -0400 Original-Received: from mail-vk0-f48.google.com ([209.85.213.48]:35513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arVNN-00038Z-4A for 23276@debbugs.gnu.org; Sat, 16 Apr 2016 14:55:25 -0400 Original-Received: by mail-vk0-f48.google.com with SMTP id t129so181797467vkg.2 for <23276@debbugs.gnu.org>; Sat, 16 Apr 2016 11:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ib2MJ8KL7q9evlO45SPtd26Ig0Kkmrq/znI7npWsJ00=; b=il+rPZJ7x1TzUmL9PUkk3h6B6i68yYIy+nqGu3aVdnd7dgx3dBo02nIm1i/Er0SY5u wDJU8A1mSV15cPLbELvxT6Tk4FqVkV+sMFgaYV2ik0ZYUhX7svLqX0N5/ZVxzEmTEZaK 3BOwo3x1TR8PbnIBj8dp9Ykpy8Y5rNonJ+rab8M9uQgX6B6+ePkhd2MRByiy7E3jC54E auwVUv8VMwUGN55p/PLrUsFAkSBkPT1Wr7RKbafGY0wHLCe4lLYHva+I7GG1nZspsQmo LWky0cufg5sRvKLhIuYQFnYkVT9YvLd5rihRjxB2qjqG5hv5vrJ3AXplCIfjzv5NTl9d TZ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ib2MJ8KL7q9evlO45SPtd26Ig0Kkmrq/znI7npWsJ00=; b=GUWXUzC38sCyN/cB/yjcSfhvoh4W1h22NWQkycpfjQrvR4GD5a1jSGn+CNWpFwAp6o RvhryaYeT2yqy05JW2+kc714cacow3lfMTrXjNAhfepZOfb4w7s70+sk91tTodmrTKv1 ZLBGxt84dakzyJ/kRq6INwLvcKebG81ei5QUEqOQgAoWfDQkPY6rw8nMnh7Nc3ltip9J rdL1Q3pLm5J9k0LfOXFZkQKSovLy62KiBUUPKxS8F0UBImorVUCgfwQBOjjhuLgKgDUm 7V+ztdcWMAG4Nwcvd2V/05dfeUsG7SNagExUehuKAZd4hCSmTYDfd8ooyxNZP8CUS9yp DhSQ== X-Gm-Message-State: AOPr4FVYi6BRPgqv9ipyqORnnJuQmFja8VWW5h84STKIW7hyC3kilzPvLh8erVPIKDdNghIovSvf+tjGlUNTOw== X-Received: by 10.176.6.130 with SMTP id g2mr14111805uag.58.1460832919524; Sat, 16 Apr 2016 11:55:19 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Sat, 16 Apr 2016 11:55:19 -0700 (PDT) In-Reply-To: <87vb3hgzr1.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116538 Archived-At: --94eb2c122d283ea23f05309eabb4 Content-Type: text/plain; charset=UTF-8 Hi! > > I had a file open in Emacs that was rewritten over and over again by > > an external process. My guess is that Emacs decides that it should be > > reverted, but when it actually reads the file, it is no longer > > present. > > I've tried to write a test case for this, but I've failed. Do you have a > recipe to provoke this error? > Unfortunately, no. And I don't see how it would be possible to write a test for this either, as the file must be removed after auto-revert decides that it should be reverted and before the actual revert takes place. In real-life, I see it a couple of times each week. However, in my Emacs I have opened files associated with processes that erase and rewrite them, say, every ten seconds. Anders --94eb2c122d283ea23f05309eabb4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!
=C2=A0
> I = had a file open in Emacs that was rewritten over and over again by
> an external process. My guess is that Emacs decides that it should be<= br> > reverted, but when it actually reads the file, it is no longer
> present.

I've tried to write a test case for this, but I've failed. D= o you have a
recipe to provoke this error?

Unfortuna= tely, no. And I don't see how it would be possible to write a test for = this either, as the file must be removed after auto-revert decides that it = should be reverted and before the actual revert takes place.

=
In real-life, I see it a couple of times each week. However, in = my Emacs I have opened files associated with processes that erase and rewri= te them, say, every ten seconds.

=C2=A0 =C2=A0 And= ers

--94eb2c122d283ea23f05309eabb4--