From owner-freebsd-ports@FreeBSD.ORG Wed Jul 4 19:32:41 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4F8F1065670; Wed, 4 Jul 2012 19:32:41 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 657C18FC0C; Wed, 4 Jul 2012 19:32:41 +0000 (UTC) Received: by vbmv11 with SMTP id v11so6223447vbm.13 for ; Wed, 04 Jul 2012 12:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=K7aYmWsWMhW916woVC/Rgq4U8t0GB7+nTuRGzHAsSSg=; b=RYkhVzkQKVBYL7PVeTYowYxswbnlQk+FZ0TiIxFAsxNvUhBBp8+xay4CCBqgt2RyX3 V26oN1xkoR+9vEvu2HGSquzTTkM49Nf5l3Uu1zZkJaOMvH3jRx5sYuctlSKacORTM2Gy B9PMDnyM8AGmAFvHw93uMQq+tkTFgNP+DnRcGev7O29gILOPLJsMpf7XFz0b5UQMNjKs kYXpEP3lU1HJbw5NatoNmzxhgtinnn66e/L02zJYIIJBAD7sRHQBpOQY9XvD3wHz0bOP rTFxx9LsET9Q39jalu7SXEm8rL0lbspmPnYiduLRyLgE8hhjS4M/eDWmRP9Jo6KuzA0v nyeQ== MIME-Version: 1.0 Received: by 10.52.96.135 with SMTP id ds7mr9252147vdb.50.1341430360696; Wed, 04 Jul 2012 12:32:40 -0700 (PDT) Received: by 10.52.160.129 with HTTP; Wed, 4 Jul 2012 12:32:40 -0700 (PDT) Date: Wed, 4 Jul 2012 22:32:40 +0300 Message-ID: From: Kimmo Paasiala To: freebsd-ports@freebsd.org, bapt@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: 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 19:32:41 -0000 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