Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2012 22:32:40 +0300
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        freebsd-ports@freebsd.org, bapt@freebsd.org
Subject:   PKGNG: SHLIBS causes pkg segfault on some ports
Message-ID:  <CA%2B7WWSckWBXS8n%2B3CE6DiUkQBwApnidVpPuLHLVZxXsK2vD42g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.

Here is the tail end of a log from building databases/db42 with SHLIBS on:

http://pastebin.com/3AqMdptc

Backtrace from gdb:

http://pastebin.com/V3QY1Mmm

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.

Operating system is FreeBDS 9-STABLE r237674 amd64. I have the whole
system compiled with CLANG including ports, /usr/bin/cc is CLANG.

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.

Regards,
Kimmo Paasiala



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7WWSckWBXS8n%2B3CE6DiUkQBwApnidVpPuLHLVZxXsK2vD42g>