Segfault in libxapian when searching

Sebastian Poeplau sebastian.poeplau at eurecom.fr
Tue Oct 29 11:22:03 PDT 2019


Now that my setup works again, I see that others have already mentioned
the issue even on this list. Ironically, I hadn't seen those messages
before because the bug broke my tagging of list messages...


Sebastian Poeplau <sebastian.poeplau at eurecom.fr> writes:

> 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 <sebastian.poeplau at eurecom.fr> 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 at 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 at notmuchmail.org
>> Exclude query is:
>> Query((Kdeleted OR Kspam))
>> Final query is:
>> Query(((Tmail AND ((<alldocuments> AND_NOT Knotmuch-list) AND (XTOnotmuch at 1 PHRASE 3 XTOnotmuchmail at 2 PHRASE 3 XTOorg at 3))) AND_NOT (Kdeleted OR Kspam)))
>>
>> Does anyone have an idea where the problem could be or how to
>> investigate further?
>>
>> Thanks,
>> Sebastian


More information about the notmuch mailing list