From owner-freebsd-ports@FreeBSD.ORG Wed Jul 4 20:58:03 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BADD106564A; Wed, 4 Jul 2012 20:58:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 72C108FC19; Wed, 4 Jul 2012 20:58:02 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q64KvwVH055441 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 4 Jul 2012 21:57:58 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q64KvwVH055441 Authentication-Results: smtp.infracaninophile.co.uk/q64KvwVH055441; dkim=none (no signature); dkim-adsp=none Message-ID: <4FF4AE4A.8060204@FreeBSD.org> Date: Wed, 04 Jul 2012 21:57:46 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Kimmo Paasiala References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig75BD0A8A2B9697D8B736D69B" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: bapt@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: PKGNG: SHLIBS causes pkg segfault on some ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 20:58:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig75BD0A8A2B9697D8B736D69B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/07/2012 20:32, Kimmo Paasiala wrote: > I have the SHLIBS feature turned on in /usr/local/etc/pkg.conf and I'm > getting segfaults in the final stage of installation with some ports. >=20 > Here is the tail end of a log from building databases/db42 with SHLIBS = on: >=20 > http://pastebin.com/3AqMdptc >=20 > Backtrace from gdb: >=20 > http://pastebin.com/V3QY1Mmm >=20 > What seems to be common for ports that cause pkg to segfault is that > they have at least some C++ code in them. Another thing in common is > that the backtrace always shows "libm.so.5" in test_depends () before > dlopen () and the _rtld_get_stack_prot () frames. >=20 > Operating system is FreeBDS 9-STABLE r237674 amd64. I have the whole > system compiled with CLANG including ports, /usr/bin/cc is CLANG. >=20 > I'm not seeing the same problem on 9.0-RELEASE powerpc with the system > and ports compiled with the stock gcc if that helps. Thank you very much for your report. This is a known problem: https://github.com/pkgng/pkgng/issues/263 If you know of any other ports that segfault in the same way, please let us know by updating that issue on github. It could be C++ related, but there are a lot of C++ ports that can be built perfectly well with SHLIBS enabled, so it's a bit more subtle than that. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig75BD0A8A2B9697D8B736D69B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/0rlUACgkQ8Mjk52CukIw7yQCfaxjWqQgugRSsYZ7P1insXSvW jo4Amwes70Fckd9JhYs0MYIJROoEXbdW =r96o -----END PGP SIGNATURE----- --------------enig75BD0A8A2B9697D8B736D69B--