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 28252431FD0 for ; Mon, 11 Jul 2011 12:29:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 IEXA49tcOtNi for ; Mon, 11 Jul 2011 12:29:35 -0700 (PDT) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4B612431FB6 for ; Mon, 11 Jul 2011 12:29:35 -0700 (PDT) Received: from zancas.localnet (fctnnbsc30w-142167177149.pppoe-dynamic.High-Speed.nb.bellaliant.net [142.167.177.149]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p6BJTXsX022906 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 11 Jul 2011 16:29:34 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1QgMAe-0005jl-NW; Mon, 11 Jul 2011 16:29:32 -0300 From: David Bremner To: notmuch Subject: problems with symbol hiding on Debian Squeeze i386 Date: Mon, 11 Jul 2011 16:25:18 -0300 Message-ID: <87liw4ei1t.fsf@zancas.localnet> User-Agent: Notmuch/0.6.1 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Mon, 11 Jul 2011 19:29:37 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Julien Valroth reported on IRC that he had problems with the initial call of 'notmuch new' crashing with terminate called after throwing an instance of 'Xapian::InvalidArgumentErro= r' I confirmed that the following quick and dirty patch seems to fix the probl= em. =2D-- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -36,7 +36,7 @@ LIBRARY_SUFFIX =3D so LINKER_NAME =3D libnotmuch.$(LIBRARY_SUFFIX) SONAME =3D $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR) LIBNAME =3D $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_REL= EASE) =2DLIBRARY_LINK_FLAG =3D -shared -Wl,--version-script=3Dnotmuch.sym,-soname= =3D$(SONAME) +LIBRARY_LINK_FLAG =3D -shared -Wl,-soname=3D$(SONAME) ifeq ($(LIBDIR_IN_LDCONFIG),1) ifeq ($(DESTDIR),) LIBRARY_INSTALL_POST_COMMAND=3Dldconfig I haven't quite decided what to do about this yet, but I thought I'd get this on the record, because it seems to me a few people have been having problems with this. FWIW, I tested with various versions of xapian and libgmime, but the problem still exists for gmime 2.4.25-1, and xapian 1.2.5-1, both recompiled for squeeze. If you install the libxapian22 from sid, then gcc and libc6 are both upgraded, and the problem goes away (but you are not really running squeeze anymore).=20=20 About the only good news is that the symbol hiding test does indeed fail on squeeze i386. I have appended part of the backtrace, in case anyone finds it illuminating. As far as I can tell without line numbers, the catch in _notmuch_message_remove_term is failing. I suppose this could be the kind of "exceptions start mysteriously malfunctioning" that http://gcc.gnu.org/wiki/Visibility warns about. Xapian _seems_ to do the right thing with visisibility declarations for these exception classes. I don't know what, if anything to conclude from the fact that everything seems to work fine in gcc 4.6. backtrace: #4 0xf7ac2442 in std::terminate() () from /usr/lib/libstdc++.so.6 #5 0xf7ac2581 in __cxa_throw () from /usr/lib/libstdc++.so.6 #6 0xf7b3fb83 in Xapian::Document::Internal::remove_term(std::string const= &) () from /usr/lib/sse2/libxapian.so.22 #7 0xf7b3fc76 in Xapian::Document::remove_term(std::string const&) () from /usr/lib/sse2/libxapian.so.22 #8 0xf7fd5233 in _notmuch_message_remove_term () from /home/bremner/software/upstream/notmuch/lib/libnotmuch.so.1 #9 0xf7fd5389 in notmuch_message_remove_tag () from /home/bremner/software/upstream/notmuch/lib/libnotmuch.so.1 #10 0xf7fd63ea in notmuch_message_maildir_flags_to_tags () from /home/bremner/software/upstream/notmuch/lib/libnotmuch.so.1 #11 0x08050483 in add_files_recursive () --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iJwEAQECAAYFAk4bTxQACgkQTiiN/0Um85kwbgP/edw6SKMotqOctEQnTpm5Shbq ld+lm3DnX7dT3Eiek2sD1Nf1kMgBHoLGcZ5OdRwVGkmJHFOSsJOFHVHaetASJ4ma 2D721JaA6+vXtKJzjPCofWyXu81z0ZdxXmp4yNk+hl3WxjNWOCf5ZkAG52VU0OVY WXQ3Mua6f1oI+WaiD88= =Q1Db -----END PGP SIGNATURE----- --=-=-=--