Date: Wed, 04 Jul 2012 21:57:46 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: Kimmo Paasiala <kpaasial@gmail.com> Cc: bapt@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: PKGNG: SHLIBS causes pkg segfault on some ports Message-ID: <4FF4AE4A.8060204@FreeBSD.org> In-Reply-To: <CA%2B7WWSckWBXS8n%2B3CE6DiUkQBwApnidVpPuLHLVZxXsK2vD42g@mail.gmail.com> References: <CA%2B7WWSckWBXS8n%2B3CE6DiUkQBwApnidVpPuLHLVZxXsK2vD42g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF4AE4A.8060204>