--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 63BE5431FB6\r
+ for <notmuch@notmuchmail.org>; Sat, 21 Mar 2015 11:16:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id LrYBMgSjObkj for <notmuch@notmuchmail.org>;\r
+ Sat, 21 Mar 2015 11:15:51 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 3E28F431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 21 Mar 2015 11:15:51 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1YZNuy-0005S4-O9; Sat, 21 Mar 2015 18:14:40 +0000\r
+Received: (nullmailer pid 12705 invoked by uid 1000); Sat, 21 Mar 2015\r
+ 18:14:28 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Simon Campese <notmuchmail_org@campese.de>, notmuch@notmuchmail.org\r
+Subject: Re: [BUG] notmuch crashes on FreeBSD when synchronize_flags=true\r
+In-Reply-To: <86619utwz5.fsf@tu-dortmund.de>\r
+References: <86619utwz5.fsf@tu-dortmund.de>\r
+User-Agent: Notmuch/0.19+86~gbed8b67 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 21 Mar 2015 14:14:28 -0400\r
+Message-ID: <87bnjmi5ff.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 21 Mar 2015 18:16:22 -0000\r
+\r
+Simon Campese <notmuchmail_org@campese.de> writes:\r
+\r
+\r
+> #4 0x000000080084dd1c in notmuch_message_get_replies () from /usr/local/lib/libnotmuch.so.3\r
+\r
+Just confirm, this particular backtrace is from notmuch 0.18, right?\r
+because 0.19 should build / be-linked-against libnotmuch.so.4.\r
+\r
+> On my linux box (running the same verions of notmuch and its\r
+> dependencies), the error doesn't occur, so I guess it has something to\r
+> do with the different C++-Stacks (libcxxrt is FreeBSD's ABI library).\r
+> A quick glance at the notmuch code showed that\r
+> notmuch_message_get_replies() sometimes returns NULL. I'm not a C++\r
+> expert but could it be that this might be the problem here?\r
+\r
+No, I don't think so, that's a defined part of the API.\r
+\r
+The usual problem on *BSD some incompatibility between glibc and BSD's\r
+interpretation of POSIX. OTOH I couldn't identify something like that\r
+from the backtrace you included.\r
+\r
+I would be curious if the Xapian test suite runs in your environment.\r
+\r
+> To give you some version numbers, this is what's currently installed:\r
+>\r
+> notmuch: 0.19\r
+> xapian-core: 1.2.20\r
+\r
+notmuch probably hasn't been very well tested against xapian 1.2.20,\r
+since it was only release a few weeks ago, and isn't available widely\r
+(or more precisely, in Debian) as binary packages. Are you running that\r
+on your linux box as well?\r
+\r
+d\r
+\r