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, 24 May 2014 11:24:02 +0300 Message-ID: <834n0flh3x.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400919868 26991 80.91.229.3 (24 May 2014 08:24:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2014 08:24:28 +0000 (UTC) Cc: 16433@debbugs.gnu.org To: Ken Olum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 24 10:24:22 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 1Wo7Fb-0006en-VR for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 May 2014 10:24:20 +0200 Original-Received: from localhost ([::1]:47175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo7Fb-0001Wd-3o for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 May 2014 04:24:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo7FS-0001WX-JV for bug-gnu-emacs@gnu.org; Sat, 24 May 2014 04:24:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wo7FK-0006Ix-7k for bug-gnu-emacs@gnu.org; Sat, 24 May 2014 04:24:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo7FK-0006Il-4M for bug-gnu-emacs@gnu.org; Sat, 24 May 2014 04:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wo7FJ-0003Aa-OH for bug-gnu-emacs@gnu.org; Sat, 24 May 2014 04:24:01 -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, 24 May 2014 08:24:01 +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.140091983512168 (code B ref 16433); Sat, 24 May 2014 08:24:01 +0000 Original-Received: (at 16433) by debbugs.gnu.org; 24 May 2014 08:23:55 +0000 Original-Received: from localhost ([127.0.0.1]:58601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wo7FC-0003AA-MO for submit@debbugs.gnu.org; Sat, 24 May 2014 04:23:55 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51953) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wo7F9-00039n-4w for 16433@debbugs.gnu.org; Sat, 24 May 2014 04:23:53 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N6200300KMKT400@a-mtaout22.012.net.il> for 16433@debbugs.gnu.org; Sat, 24 May 2014 11:23:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N62003ZXKNKP110@a-mtaout22.012.net.il>; Sat, 24 May 2014 11:23:44 +0300 (IDT) In-reply-to: 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:89443 Archived-At: > From: Ken Olum > Date: Thu, 22 May 2014 16:38:27 -0400 > > 1. Detach attached files test.mbox, test.in, and test.emacs. > > 2. Put test.emacs in place of your .emacs file. > > 3. Run emacs. I used a compilation from trunk revision 117139. > > Because I had to try this many, many times, test.emacs puts testing > commands on keys F3 and F4. So > > 3. Push F3 to run rmail on test.mbox > > 4. Push F4 to get new mail from test.in > > 5. Push "p" to go to the previous message. You should get a warning > about cache corruption. I'm sorry, but I cannot reproduce the problem with this recipe. I tried both the current trunk and the emacs-24 branch, and neither produced the message about cache corruption. What are your locale settings? This could somehow conceal the bug, although I doubt that, since the mbox file you sent doesn't include any non-ASCII text in any shape. Also, is your build optimized or not? More generally, what are the values of system-configuration and system-configuration-options in the build where you reproduce this? If your build options are different from mine, especially the optimization switches, perhaps that is part of the issue somehow. If the locale stuff and build options don't help, I think the only way to make progress is to ask you debug this on your system with guidance from me and others here. I have written some debugging code that could help in this matter, which I can post here. How proficient are you with using GDB on the C level? Thanks.