From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Olum Newsgroups: gmane.emacs.bugs Subject: bug#16433: Test case for newline cache corruption Date: Thu, 22 May 2014 16:38:27 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1400791167 26630 80.91.229.3 (22 May 2014 20:39:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2014 20:39:27 +0000 (UTC) To: eliz@gnu.org, 16433@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 22 22:39:21 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 1WnZlo-0000B7-MT for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 May 2014 22:39:20 +0200 Original-Received: from localhost ([::1]:39596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnZlo-0003Yf-Be for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 May 2014 16:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnZle-0003YW-7Z for bug-gnu-emacs@gnu.org; Thu, 22 May 2014 16:39:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnZlX-0005GW-Ek for bug-gnu-emacs@gnu.org; Thu, 22 May 2014 16:39:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnZlX-0005GS-Br for bug-gnu-emacs@gnu.org; Thu, 22 May 2014 16:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WnZlW-0004h5-Q8 for bug-gnu-emacs@gnu.org; Thu, 22 May 2014 16:39:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Ken Olum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 May 2014 20:39: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.140079112517979 (code B ref 16433); Thu, 22 May 2014 20:39:02 +0000 Original-Received: (at 16433) by debbugs.gnu.org; 22 May 2014 20:38:45 +0000 Original-Received: from localhost ([127.0.0.1]:56952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnZlA-0004fk-58 for submit@debbugs.gnu.org; Thu, 22 May 2014 16:38:44 -0400 Original-Received: from cosmos.phy.tufts.edu ([130.64.83.16]:40171) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WnZky-0004f8-3p for 16433@debbugs.gnu.org; Thu, 22 May 2014 16:38:34 -0400 Original-Received: from kdo by cosmos.phy.tufts.edu ([local]:local) with local id 1WnZkx-0005sv-KZ - Using Exim-4.80.1 (MandrivaLinux) MTA (return-path ); Thu, 22 May 2014 16:38:27 -0400 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:89372 Archived-At: --=-=-= Content-Type: text/plain Here is a procedure which I can use to reproduce the newline cache corruption. 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. The details of the "new mail" in test.in don't seem to matter much, but it is very sensitive to precisely what is in the existing message in test.mbox. I removed everything that I could to simplify the test case. I hope this is helpful. Ken --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.mbox Content-Transfer-Encoding: base64 RnJvbSBrZG9AY29zbW9zLnBoeS50dWZ0cy5lZHUgV2VkIE1heSAyMSAxNToxOTozMSAyMDE0CkVu dmVsb3BlLXRvOiBrZG9AY29zbW9zLnBoeS50dWZ0cy5lZHUKRGVsaXZlcnktZGF0ZTogV2VkLCAy MSBNYXkgMjAxNCAxNToxOTozMSAtMDQwMApGcm9tOiBrZG9AY29zbW9zLnBoeS50dWZ0cy5lZHUK VG86IGtkb0Bjb3Ntb3MucGh5LnR1ZnRzLmVkdQpTdWJqZWN0OiB0ZXN0CkRhdGU6IFdlZCwgMjEg TWF5IDIwMTQgMTk6MTg6MjUgKzAwMDAKTWVzc2FnZS1JRDogPEEwODYxNkEzODFERERBNEY5MDdD RTQzMEY2NUM2N0ZFMDFDNTExOEFBN0BSTVNNQlgwMS5ybXMtbGF3LmNvbT4KWC1STUFJTC1BVFRS SUJVVEVTOiAtLS0tLS0tLQoKPGh0bWw+CjxoZWFkPgo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50 LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD11cy1hc2NpaSI+CjxtZXRhIG5hbWU9 IkdlbmVyYXRvciIgY29udGVudD0iTWljcm9zb2Z0IEV4Y2hhbmdlIFNlcnZlciI+CjwhLS0gY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encoding: base64 RnJvbSBrZG9AY29zbW9zLnBoeS50dWZ0cy5lZHUgVGh1IE1heSAyMiAxMDo0Mzo1MCAyMDE0ClJl dHVybi1wYXRoOiA8a2RvQGNvc21vcy5waHkudHVmdHMuZWR1PgpFbnZlbG9wZS10bzoga2RvQGNv c21vcy5waHkudHVmdHMuZWR1CkRlbGl2ZXJ5LWRhdGU6IFRodSwgMjIgTWF5IDIwMTQgMTA6NDM6 NTAgLTA0MDAKUmVjZWl2ZWQ6IGZyb20ga2RvIGJ5IGNvc21vcy5waHkudHVmdHMuZWR1IChbbG9j YWxdOmxvY2FsKQoJd2l0aCBsb2NhbCBpZCAxV25VRG0tMDAwN2c4LTFBIC0gVXNpbmcgRXhpbS00 LjgwLjEgKE1hbmRyaXZhTGludXgpIE1UQSAKCShyZXR1cm4tcGF0aCA8a2RvQGNvc21vcy5waHku dHVmdHMuZWR1Pik7IFRodSwgMjIgTWF5IDIwMTQgMTA6NDM6NTAgLTA0MDAKRGF0ZTogVGh1LCAy MiBNYXkgMjAxNCAxMDo0Mzo1MCAtMDQwMApUbzoga2RvQGNvc21vcy5waHkudHVmdHMuZWR1ClN1 YmplY3Q6IHRlc3QKTWVzc2FnZS1JZDogPEUxV25VRG0tMDAwN2c4LTFBQGNvc21vcy5waHkudHVm dHMuZWR1PgpGcm9tOiBLZW4gT2x1bSA8a2RvQGNvc21vcy5waHkudHVmdHMuZWR1PgoKCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.emacs Content-Transfer-Encoding: base64 KHJlcXVpcmUgJ3JtYWlsKQoKKGRlZnVuIG1heWJlLWNoZWNrLW5ld2xpbmUtY2FjaGUgKCkKICAo aWYgKGVxIG1ham9yLW1vZGUgJ3JtYWlsLW1vZGUpCiAgICAgIChwcm9nbgoJKGNoZWNrLW5ld2xp bmUtY2FjaGUpCgkoaWYgcm1haWwtdmlldy1idWZmZXIKCSAgICAod2l0aC1jdXJyZW50LWJ1ZmZl ciBybWFpbC12aWV3LWJ1ZmZlcgoJICAgICAgKGNoZWNrLW5ld2xpbmUtY2FjaGUpKSkpKSkKCihk ZWZ1biBjaGVjay1uZXdsaW5lLWNhY2hlICgpCiAgKGxldCAoKG5ld2xpbmVzIChuZXdsaW5lLWNh Y2hlLWNoZWNrKSkpCiAgICAoaWYgKGFuZCBuZXdsaW5lcwoJICAgICAobm90IChlcXVhbCAoYXJl ZiBuZXdsaW5lcyAwKSAoYXJlZiBuZXdsaW5lcyAxKSkpKQoJKG1lc3NhZ2UgIk5ld2xpbmUgY2Fj aGUgY29ycnVwdGVkIGluICVzIiAoY3VycmVudC1idWZmZXIpKSkpKQoKKGFkZC1ob29rICdwb3N0 LWNvbW1hbmQtaG9vayAnbWF5YmUtY2hlY2stbmV3bGluZS1jYWNoZSkKCihkZWZ1biBkby10ZXN0 ICgpCiAgKGludGVyYWN0aXZlKQogIChybWFpbCAidGVzdC5tYm94IikpCgooZ2xvYmFsLXNldC1r ZXkgW2YzXSAnZG8tdGVzdCkKCihkZWZ1biBkby10ZXN0LTEgKCkKICAoaW50ZXJhY3RpdmUpCiAg KHJtYWlsLWdldC1uZXctbWFpbCAidGVzdC5pbiIpKQoKKGdsb2JhbC1zZXQta2V5IFtmNF0gJ2Rv LXRlc3QtMSkK --=-=-=--