Bug 193809 - mail/notmuch crashes when indexing new mail
Summary: mail/notmuch crashes when indexing new mail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 201884
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-21 13:17 UTC by 33n5ps+89brie9u1qz9g
Modified: 2015-07-31 18:05 UTC (History)
5 users (show)

See Also:
33n5ps+89brie9u1qz9g: maintainer-feedback? (ross)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 33n5ps+89brie9u1qz9g 2014-09-21 13:17:09 UTC
mail/notmuch from binary package crashes when indexing new mail (notmuch new)

In order to reproduce the issue:

1. Install mail/notmuch from package repository: pkg install notmuch.

2. Setup a Maildir that contains unindexed new mail.

3. Run: notmuch new



Other sub-commands like search are unaffected.

This problem occurs with the mail/notmuch installed using pkg command only.  If I install mail/notmuch using ports, there's no such problem.

I can see this problem on two systems, where one of them is freshly installed.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-21 13:17:09 UTC
Maintainer CC'd
Comment 2 m5bere2 2014-10-14 19:18:23 UTC
I observe the same behavior on a freshly installed FreeBSD 10.0 system and no matter whether notmuch is installed using pkg or using ports.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-10-31 17:26:03 UTC
PR timed out (no response from maintainer in 2 weeks) but there's no fix suggested so there's nothing to do...
Comment 4 John Marino freebsd_committer freebsd_triage 2014-11-14 10:34:25 UTC
Move PR out of triage.
Comment 5 bugs_freebsd_org 2015-03-23 17:58:12 UTC
I can confirm the same error on several of my machines (all running 10.1, either freshly installed or upgraded from older verssions). I tried compiling notmuch (and all of its dependencies) from ports and also installed the binary packages. The problem is also present when using the new notmuch 0.19 port (see patch by mp39590@gmail.com). I did some testing and posted a backtrace to the notmuch mailing list, apparently it is related to maildir flag syncing and xapian:

http://notmuchmail.org/pipermail/notmuch/2015/020342.html

As a (somewhat unsatisfying) workaround for now, you can disable maildir flag syncing by putting 

[maildir]
synchronize_flags=false

into ~/.notmuch-config

Any idea what could be the problem here?
Comment 6 mp39590 2015-07-19 10:43:19 UTC
Hello, can you check if latest notmuch is failing for you, if being compiled from the ports tree on 10.1?
Comment 7 33n5ps+89brie9u1qz9g 2015-07-19 17:22:51 UTC
(In reply to mp39590 from comment #6)

Hi, notmuch always worked well when compiled from ports.  Only the binary package from pkgng repository had issues with new emails.  They are still present in the newest version (0.20.2) on 10.1-RELEASE-p14.
Comment 8 mp39590 2015-07-26 07:07:47 UTC
I've pushed bug #201884, which shall fix the issue. It will take some time for packages to get rebuild (~1 week I suppose) - testing will be appreciated.
Comment 9 Bartek Rutkowski freebsd_committer freebsd_triage 2015-07-30 10:21:38 UTC
Can you guys report if the issue in this PR is now solved, after 201884 have been committed?
Comment 10 33n5ps+89brie9u1qz9g 2015-07-31 18:05:43 UTC
(In reply to Bartek Rutkowski from comment #9)

It works. Thanks a lot!