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 E7460431FBC for ; Thu, 19 Nov 2009 18:23: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 cAwZbeAWudvm for ; Thu, 19 Nov 2009 18:23:17 -0800 (PST) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by olra.theworths.org (Postfix) with ESMTP id 7A5C2431FAE for ; Thu, 19 Nov 2009 18:23:17 -0800 (PST) Received: by ywh3 with SMTP id 3so2990218ywh.22 for ; Thu, 19 Nov 2009 18:23:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.162.31 with SMTP id p31mr1265194ago.121.1258683795742; Thu, 19 Nov 2009 18:23:15 -0800 (PST) In-Reply-To: <20091119164543.25e7afe5@hikari> References: <935ead450911181000w2cddfe95qe9efd5bea9f9209d@mail.gmail.com> <20091119164543.25e7afe5@hikari> Date: Thu, 19 Nov 2009 20:23:15 -0600 Message-ID: <935ead450911191823s776fda6eyb6f6949ac982bd03@mail.gmail.com> From: Jeffrey Ollie To: Not Much Mail Content-Type: multipart/mixed; boundary=0016e640867c879f2e0478c42866 Subject: Re: [notmuch] Segfault searching for tags 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: Fri, 20 Nov 2009 02:23:18 -0000 --0016e640867c879f2e0478c42866 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2009 at 9:45 AM, Adrian Perez de Castro wrote: > On Wed, 18 Nov 2009 12:00:10 -0600, Jeffrey wrote: > >> Getting the following segfault with 306635c2 on Fedora 12. =C2=A0Seems t= o >> be happening with any 'tag:' search that returns results. =C2=A0For >> example, 'notmuch search tag:inbox' and 'notmuch search tag:unread' >> segfault but 'notmuch search tag:nosuchtag', 'notmuch search >> subject:logwatch' and 'notmuch search video' seem to work fine. >> >> Core was generated by `/usr/bin/notmuch search --sort=3Doldest-first tag= :inbox'. >> Program terminated with signal 11, Segmentation fault. >> \#0 =C2=A0Xapian::TermIterator::operator* (this=3D) >> =C2=A0 =C2=A0 at api/omtermlistiterator.cc:78 >> 78 =C2=A0 =C2=A0 =C2=A0 =C2=A0RETURN(internal->get_termname()); >> Current language: =C2=A0auto >> The current source language is "auto; currently c++". > > I have hit what I believe is exactly the same problem. In my case, some > results are printed when I execute "notmuch search tag:inbox", and then > the program crashes in the same exact place. > > The thing is that in notmuch_message_get_in_reply_to(), line 288, a NULL > instance of Xapian::TermIterator is dereferenced. In my particular case, > the culpript is a cache file of Claws-Mail, as seen in the following GDB > session: > [...] > As you can see, there "filename" points to a Claws-Mail cache file, which > is a binary file (I can provide a copy if needed). I suspect that this is > related to the fact that the iterator ends up being NULL somehow. I straced some of the crashes, and the last file that was read before the crash was a malformed message. I've attached one of the messages. I've been using offlineimap to sync my gmail mailbox to my laptop so that I can use notmuch. offlineimap isn't the most stable program, but I'm not sure yet if offlineimap is causing the problem or if that's the way the message is in gmail. --=20 Jeff Ollie --0016e640867c879f2e0478c42866 Content-Type: text/plain; charset=US-ASCII; name="message.txt" Content-Disposition: attachment; filename="message.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g28bmh331 RGVsaXZlcmVkLVRvOiBqZWZmQG9sbGllLmNsaXZlLmlhLnVzClJlY2VpdmVkOiBieSAxMC45MC44 Ni4xOCB3aXRoIFNNVFAgaWQgajE4Y3MyMjg1NTZhZ2I7CiAgICAgICAgVGh1LCA1IE5vdiAyMDA5 IDIyOjIzOjUwIC0wODAwIChQU1QpClJlY2VpdmVkOiBieSAxMC45MC4xNi4zOCB3aXRoIFNNVFAg aWQgMzhtc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