problems with symbol hiding on Debian Squeeze i386
authorDavid Bremner <david@tethera.net>
Mon, 11 Jul 2011 19:25:18 +0000 (16:25 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:05 +0000 (09:39 -0800)
c6/8335d36d77e7c9cac33b4ebe0c44205ab0d268 [new file with mode: 0644]

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