Bug 1582561 - Bug in Xapian causes Crash of notmuch
Summary: Bug in Xapian causes Crash of notmuch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xapian-core
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-25 15:16 UTC by Dan Čermák
Modified: 2018-07-13 17:31 UTC (History)
8 users (show)

Fixed In Version: xapian-core-1.4.6-1.fc27 xapian-core-1.4.6-1.fc28
Clone Of:
Environment:
Last Closed: 2018-07-13 16:34:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
This is the patch file of the mentioned upstream commit. (2.29 KB, application/mbox)
2018-05-25 15:24 UTC, Dan Čermák
no flags Details

Description Dan Čermák 2018-05-25 15:16:02 UTC
Description of problem:

A bug in Xapian causes notmuch to crash. There is an upstream fix in commit f92e2a936c159209398bb85a61ee1ae7d0bc635a (https://github.com/xapian/xapian/commit/f92e2a936c159209398bb85a61ee1ae7d0bc635a) that should fix this issue.

The fix is scheduled for 1.4.6, could it please be included as a patch for the current Xapian version in Fedora 28, as notmuch is currently unusable due to this?

The bug report for notmuch is: https://bugzilla.redhat.com/show_bug.cgi?id=1546162 


Version-Release number of selected component (if applicable):

dnf list installed|grep xapian
xapian-core.x86_64                       1.4.5-4.fc28                   @fedora
xapian-core-devel.x86_64                 1.4.5-4.fc28                   @fedora
xapian-core-libs.x86_64                  1.4.5-4.fc28                   @fedora


How reproducible:

Everytime.


Steps to Reproduce:
1. Install & setup notmuch
2. Run notmuch new


Actual results:

Notmuch crashes with:
/usr/include/c++/8/bits/stl_vector.h:1010: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::front() [with _Tp = Xapian::Internal::MSetItem; _Alloc = std::allocator<Xapian::Internal::MSetItem>; std::vector<_Tp, _Alloc>::reference = Xapian::Internal::MSetItem&]: Assertion '__builtin_expect(!this->empty(), true)' failed.
Aborted (core dumped)

Expected results:

Notmuch should not crash.

Additional info:

Comment 1 Dan Čermák 2018-05-25 15:24:23 UTC
Created attachment 1441609 [details]
This is the patch file of the mentioned upstream commit.

Comment 2 Peter Robinson 2018-05-25 15:30:18 UTC
What is the release schedule for 1.4.6?

Comment 3 Dan Čermák 2018-05-25 15:35:09 UTC
> What is the release schedule for 1.4.6?

Sorry, don't know that.

Comment 4 Dan Čermák 2018-05-25 22:32:18 UTC
I just tried rebuilding Xapian with the mentioned patch applied and it turns out, the patch cannot be applied, as the file that was being patched didn't exist in 1.4.5 yet!

I am sorry for causing such a ruckus, since I have my doubts whether this is actually caused by Xapian or by notmuch itself.

Comment 5 Nicholas Sielicki 2018-07-01 22:38:11 UTC
0.27-1.fc{27,28,29} is now available in the Fedora repositories. While this bug still exists in Xapian and 1.4.6 is still yet to be released, notmuch is no longer broken due to this issue and this ticket can be closed.

Comment 6 Peter Robinson 2018-07-03 10:50:50 UTC
We have a 1.4.6 and I'll be pushing updates shortly.

Comment 7 Fedora Update System 2018-07-03 17:00:17 UTC
xapian-bindings-1.4.6-1.fc28 xapian-core-1.4.6-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-3ecacade34

Comment 8 Fedora Update System 2018-07-03 17:00:36 UTC
xapian-bindings-1.4.6-1.fc27 xapian-core-1.4.6-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-62394ac295

Comment 9 Fedora Update System 2018-07-04 16:22:17 UTC
xapian-bindings-1.4.6-1.fc27, xapian-core-1.4.6-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-62394ac295

Comment 10 Fedora Update System 2018-07-04 18:21:10 UTC
xapian-bindings-1.4.6-1.fc28, xapian-core-1.4.6-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-3ecacade34

Comment 11 Fedora Update System 2018-07-13 16:34:28 UTC
xapian-bindings-1.4.6-1.fc27, xapian-core-1.4.6-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2018-07-13 17:31:54 UTC
xapian-bindings-1.4.6-1.fc28, xapian-core-1.4.6-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.