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