Re: bug#6214: 23.1; json-read-string crashes emacs with long string
[notmuch-archives.git] / ae / 3d82026c0d33fc1743c1689205136f6208a8da
1 Return-Path: <bremner@pivot.cs.unb.ca>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 2B09F431FBC\r
6         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 01:40:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id L1jjnfV7LdQu for <notmuch@notmuchmail.org>;\r
11         Sat, 28 Nov 2009 01:40:16 -0800 (PST)\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.195])\r
13         by olra.theworths.org (Postfix) with ESMTP id BC1C7431FAE\r
14         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 01:40:16 -0800 (PST)\r
15 Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57])\r
16         by mx.perfora.net (node=mxus1) with ESMTP (Nemesis)\r
17         id 0MSLbf-1NheO30zxj-00TV1P for notmuch@notmuchmail.org;\r
18         Sat, 28 Nov 2009 04:40:16 -0500\r
19 Received: from bremner (helo=pivot.cs.unb.ca)\r
20         by pivot.cs.unb.ca with local-esmtp (Exim 4.69)\r
21         (envelope-from <bremner@pivot.cs.unb.ca>) id 1NEJmp-00076S-Ee\r
22         for notmuch@notmuchmail.org; Sat, 28 Nov 2009 05:40:15 -0400\r
23 Date: Sat, 28 Nov 2009 05:40:13 -0400\r
24 Message-ID: <87k4xbkmwy.wl%bremner@pivot.cs.unb.ca>\r
25 From: David Bremner <bremner@pivot.cs.unb.ca>\r
26 To: notmuch@notmuchmail.org\r
27 User-Agent: EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.9 (=?UTF-8?B?R29q?=\r
28         =?UTF-8?B?xY0=?=) APEL/10.7 EasyPG/1.0.0 Emacs/23.1 (i486-pc-linux-gnu)\r
29         MULE/6.0 (HANACHIRUSATO)\r
30 MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata")\r
31 Content-Type: text/plain; charset=US-ASCII\r
32 X-Mailman-Approved-At: Sat, 28 Nov 2009 09:38:27 -0800\r
33 Subject: [notmuch] Duplicate In-reply-to line 326 lib/message.cc\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.12\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38         <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Sat, 28 Nov 2009 09:40:17 -0000\r
47 \r
48 \r
49 On the trail of a searching problem, I enabled debugging with \r
50    make CFLAGS="-g -DDEBUG" CXXFLAGS="-g -DDEBUG"\r
51 \r
52 Now it seems that any search that is non-empty (i.e. matches\r
53 something) crashes with a duplicate In-Reply-To ID. This is in git\r
54 revision 92c4dcc (although it was the same yesterday).  The oddest\r
55 thing is that the second message-id is a common English word.\r
56 \r
57 Here is a trace\r
58 \r
59 dulcinea:~/tmp % ~/projects/notmuch/notmuch search spam\r
60 Query string is:\r
61 spam\r
62 Final query is:\r
63 Xapian::Query((Tmail AND Zspam:(pos=1)))\r
64 Query string is:\r
65 thread:13c033781712e92541a5591320ac0ff4\r
66 Query string is:\r
67 thread:13c033781712e92541a5591320ac0ff4 AND (spam)\r
68 Final query is:\r
69 Xapian::Query((Tmail AND 0 * G13c033781712e92541a5591320ac0ff4))\r
70 Final query is:\r
71 Xapian::Query((Tmail AND 0 * G13c033781712e92541a5591320ac0ff4 AND Zspam:(pos=1)))\r
72 Internal error: Message 877htzhn9e.wl%jemarch@gnu.org has duplicate In-Reply-To IDs: 1e5bcefd0911081424p12eb6fa9te57ff4cfeb83fcdd@mail.gmail.com and data\r
73  (lib/message.cc:326).\r
74 \r
75 At the moment I don't have any real good ideas for how to debug this\r
76 (or any real familiarity with notmuch internals).  I put a test corpus\r
77 of messages (all from public mailing lists) at\r
78 \r
79    http://pivot.cs.unb.ca/scratch/mailtest.tgz\r
80 \r
81 The current tarball is about 5M.  The machine has plenty of bandwidth\r
82 (not meant as a challenge to DDOS hobbyists :) ).\r
83 \r
84 d\r
85 \r