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#16433: Test case for newline cache corruption Date: Sat, 31 May 2014 21:27:25 +0300 Message-ID: <834n05dcs2.fsf@gnu.org> References: <83a99yfe83.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401560907 23529 80.91.229.3 (31 May 2014 18:28:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 May 2014 18:28:27 +0000 (UTC) Cc: 16433@debbugs.gnu.org To: kdo@cosmos.phy.tufts.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 31 20:28:20 2014 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 1Wqo0v-0007F6-3t for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 May 2014 20:28:17 +0200 Original-Received: from localhost ([::1]:60812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqo0u-0003hg-NR for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 May 2014 14:28:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqo0m-0003gk-Pf for bug-gnu-emacs@gnu.org; Sat, 31 May 2014 14:28:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wqo0g-0006CN-U1 for bug-gnu-emacs@gnu.org; Sat, 31 May 2014 14:28:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqo0g-0006CJ-Pv for bug-gnu-emacs@gnu.org; Sat, 31 May 2014 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wqo0g-0006R8-G6 for bug-gnu-emacs@gnu.org; Sat, 31 May 2014 14:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 May 2014 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16433-submit@debbugs.gnu.org id=B16433.140156085924712 (code B ref 16433); Sat, 31 May 2014 18:28:02 +0000 Original-Received: (at 16433) by debbugs.gnu.org; 31 May 2014 18:27:39 +0000 Original-Received: from localhost ([127.0.0.1]:39134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wqo0J-0006QW-5Z for submit@debbugs.gnu.org; Sat, 31 May 2014 14:27:39 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:57365) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wqo0G-0006Q0-6b for 16433@debbugs.gnu.org; Sat, 31 May 2014 14:27:37 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N6G00M00B303T00@mtaout28.012.net.il> for 16433@debbugs.gnu.org; Sat, 31 May 2014 21:25:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6G00KUOB6QVL10@mtaout28.012.net.il>; Sat, 31 May 2014 21:25:38 +0300 (IDT) In-reply-to: <83a99yfe83.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:89819 Archived-At: > Date: Sat, 31 May 2014 13:13:16 +0300 > From: Eli Zaretskii > Cc: 16433@debbugs.gnu.org > > In any case, I seem to have now a reproducible recipe, and can work on > it locally. Thanks so much for your help. I think I might have nailed the villain. It was a very old bug. The fix is in revision 117181 on the emacs-24 branch; I reproduce it below for your convenience. Please try running with it for a while, and if the problems in Rmail don't come back, I will close the bug. Thanks again for your help. --- src/fileio.c 2014-05-11 02:30:57 +0000 +++ src/fileio.c 2014-05-31 18:23:53 +0000 @@ -4087,7 +4087,7 @@ by calling `format-decode', which see. && SAVE_MODIFF >= MODIFF) we_locked_file = 1; #endif /* CLASH_DETECTION */ - prepare_to_modify_buffer (GPT, GPT, NULL); + prepare_to_modify_buffer (PT, PT, NULL); } move_gap_both (PT, PT_BYTE);