From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: newline cache Date: Wed, 21 May 2014 18:22:14 +0300 Message-ID: <83fvk3nom1.fsf@gnu.org> References: <837g6id3mi.fsf@gnu.org> <838uqxb6o6.fsf@gnu.org> <837g6g9iip.fsf@gnu.org> <83iopxpxyx.fsf@gnu.org> <83oaznooas.fsf@gnu.org> <83mwf7o5mv.fsf@gnu.org> <20140521084113.GA30780@brouette> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400685875 2045 80.91.229.3 (21 May 2014 15:24:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2014 15:24:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Damien Wyart Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 21 17:24:23 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wn8NT-0002A1-1B for ged-emacs-devel@m.gmane.org; Wed, 21 May 2014 17:24:23 +0200 Original-Received: from localhost ([::1]:60406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn8NS-00063z-Fj for ged-emacs-devel@m.gmane.org; Wed, 21 May 2014 11:24:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn8NJ-0005xR-Jr for emacs-devel@gnu.org; Wed, 21 May 2014 11:24:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn8ND-0003Pi-OH for emacs-devel@gnu.org; Wed, 21 May 2014 11:24:13 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:42142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn8ND-0003PZ-EJ for emacs-devel@gnu.org; Wed, 21 May 2014 11:24:07 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N5X00100JU7A300@mtaout25.012.net.il> for emacs-devel@gnu.org; Wed, 21 May 2014 18:18:58 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5X00OYZJVMO310@mtaout25.012.net.il>; Wed, 21 May 2014 18:18:58 +0300 (IDT) In-reply-to: <20140521084113.GA30780@brouette> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171990 Archived-At: > Date: Wed, 21 May 2014 10:41:13 +0200 > From: Damien Wyart > Cc: emacs-devel@gnu.org > > > > Based on the few incidents I had until now, it looks like the cache > > > gets corrupted after deleting several mails, then saving the mailbox > > > buffer. Not sure yet what exactly causes this. > > * Eli Zaretskii [2014-04-27 05:42]: > > One more important fact: not each time I delete messages and then save > > the mailbox, I get the cache corrupted. So some other factor is at > > work here. > > Hi Eli, > > Was there some progress on this problem? > > 24.4 is approaching and I think killing this bug before would be nice. No real progress, unfortunately. The bug is very elusive, almost a Heisenbug, so I cannot reliably reproduce it, and thus still don't have a simple recipe starting from "emacs -Q" that I could use to investigate it and verify that it's fixed. Without a simple reliable recipe, it is extremely hard to find the root cause, because the newline cache is consulted _a_lot_, and on top of that Rmail swaps buffer text, which makes traces even harder to understand and interpret. I'm beginning to think that maybe the only practical solution, at least for 24.4, is to disable caching in Rmail buffers (since I saw no reports of similar problems in any other modes).