From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DF4196DE0EE3 for ; Tue, 29 Oct 2019 10:57:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.219 X-Spam-Level: X-Spam-Status: No, score=0.219 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_FAIL=0.919] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yDSEt5j4kyFP for ; Tue, 29 Oct 2019 10:57:55 -0700 (PDT) X-Greylist: delayed 431 seconds by postgrey-1.36 at arlo; Tue, 29 Oct 2019 10:57:55 PDT Received: from mx2.mailbox.org (mx2.mailbox.org [80.241.60.215]) by arlo.cworth.org (Postfix) with ESMTPS id 2DC716DE0EDB for ; Tue, 29 Oct 2019 10:57:54 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 7AC28A331D for ; Tue, 29 Oct 2019 18:57:53 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id ZOlEVGklBkFz for ; Tue, 29 Oct 2019 18:57:49 +0100 (CET) From: Sebastian Poeplau To: notmuch@notmuchmail.org Subject: Re: Segfault in libxapian when searching In-Reply-To: <87sgnbh253.fsf@eurecom.fr> References: <87sgnbh253.fsf@eurecom.fr> Date: Tue, 29 Oct 2019 18:57:48 +0100 Message-ID: <87pnifh1sz.fsf@eurecom.fr> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Tue, 29 Oct 2019 17:57:59 -0000 Sorry, I just discovered that the problem has been reported before for the Arch package "xapian-core" [0] and upstream with the Xapian project [1]. It seems to be a bug on their side that should be fixed in the next release. Anyway, if anyone runs into the same issue they can now find the references on this list also ;) Cheers, Sebastian [0] https://bugs.archlinux.org/task/64273?project=1&string=xapian-core [1] https://trac.xapian.org/ticket/796 Sebastian Poeplau writes: > Hi all, > > After a recent upgrade to Notmuch 0.29.2 and Xapian 1.4.13 I see Notmuch > fail with a segmentation fault inside libxapian.so when executing > queries that I've been running regularly and without problems before. > > Let me start with the stack trace: > > Stack trace of thread 3133: > #0 0x00007fe0eb4ecee4 n/a (libxapian.so.30) > #1 0x00007fe0eb4f06fe n/a (libxapian.so.30) > #2 0x00007fe0eb4f7284 n/a (libxapian.so.30) > #3 0x00007fe0eb4161f8 _ZNK6Xapian7Enquire8Internal8get_msetEjjjPKNS_4RSetEPKNS_12MatchDeciderE (libxapian.so.30) > #4 0x00007fe0eb416466 _ZNK6Xapian7Enquire8get_msetEjjjPKNS_4RSetEPKNS_12MatchDeciderE (libxapian.so.30) > #5 0x00007fe0ebbc49ca n/a (libnotmuch.so.5) > #6 0x00007fe0ebbc527e notmuch_query_search_threads (libnotmuch.so.5) > #7 0x0000557fc9f05c68 n/a (notmuch) > #8 0x0000557fc9efa12c n/a (notmuch) > #9 0x00007fe0eb5d7153 __libc_start_main (libc.so.6) > #10 0x0000557fc9efa2ee n/a (notmuch) > > The type of query in question is the following: "not tag:notmuch-list > and to:notmuch@notmuchmail.org". It crashes, but only if there is a > matching message. Quoting the email address separately doesn't change > anything. I have several such queries for different lists in my post-new > hook, and the problem seems to apply to all of them. > > When I run the search with NOTMUCH_DEBUG_QUERY=1, I get the following > query information: > > Query string is: > not tag:notmuch-list and to:notmuch@notmuchmail.org > Exclude query is: > Query((Kdeleted OR Kspam)) > Final query is: > Query(((Tmail AND (( AND_NOT Knotmuch-list) AND (XTOnotmuch@1 PHRASE 3 XTOnotmuchmail@2 PHRASE 3 XTOorg@3))) AND_NOT (Kdeleted OR Kspam))) > > Does anyone have an idea where the problem could be or how to > investigate further? > > Thanks, > Sebastian