Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2B09F431FBC for ; Sat, 28 Nov 2009 01:40:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L1jjnfV7LdQu for ; Sat, 28 Nov 2009 01:40:16 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by olra.theworths.org (Postfix) with ESMTP id BC1C7431FAE for ; Sat, 28 Nov 2009 01:40:16 -0800 (PST) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by mx.perfora.net (node=mxus1) with ESMTP (Nemesis) id 0MSLbf-1NheO30zxj-00TV1P for notmuch@notmuchmail.org; Sat, 28 Nov 2009 04:40:16 -0500 Received: from bremner (helo=pivot.cs.unb.ca) by pivot.cs.unb.ca with local-esmtp (Exim 4.69) (envelope-from ) id 1NEJmp-00076S-Ee for notmuch@notmuchmail.org; Sat, 28 Nov 2009 05:40:15 -0400 Date: Sat, 28 Nov 2009 05:40:13 -0400 Message-ID: <87k4xbkmwy.wl%bremner@pivot.cs.unb.ca> From: David Bremner To: notmuch@notmuchmail.org User-Agent: EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.9 (=?UTF-8?B?R29q?= =?UTF-8?B?xY0=?=) APEL/10.7 EasyPG/1.0.0 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Sat, 28 Nov 2009 09:38:27 -0800 Subject: [notmuch] Duplicate In-reply-to line 326 lib/message.cc X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2009 09:40:17 -0000 On the trail of a searching problem, I enabled debugging with make CFLAGS="-g -DDEBUG" CXXFLAGS="-g -DDEBUG" Now it seems that any search that is non-empty (i.e. matches something) crashes with a duplicate In-Reply-To ID. This is in git revision 92c4dcc (although it was the same yesterday). The oddest thing is that the second message-id is a common English word. Here is a trace dulcinea:~/tmp % ~/projects/notmuch/notmuch search spam Query string is: spam Final query is: Xapian::Query((Tmail AND Zspam:(pos=1))) Query string is: thread:13c033781712e92541a5591320ac0ff4 Query string is: thread:13c033781712e92541a5591320ac0ff4 AND (spam) Final query is: Xapian::Query((Tmail AND 0 * G13c033781712e92541a5591320ac0ff4)) Final query is: Xapian::Query((Tmail AND 0 * G13c033781712e92541a5591320ac0ff4 AND Zspam:(pos=1))) Internal error: Message 877htzhn9e.wl%jemarch@gnu.org has duplicate In-Reply-To IDs: 1e5bcefd0911081424p12eb6fa9te57ff4cfeb83fcdd@mail.gmail.com and data (lib/message.cc:326). At the moment I don't have any real good ideas for how to debug this (or any real familiarity with notmuch internals). I put a test corpus of messages (all from public mailing lists) at http://pivot.cs.unb.ca/scratch/mailtest.tgz The current tarball is about 5M. The machine has plenty of bandwidth (not meant as a challenge to DDOS hobbyists :) ). d