From owner-freebsd-ports@FreeBSD.ORG Wed Feb 14 15:30:17 2007 Return-Path: X-Original-To: ports@FreeBSD.org 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 4ED5216A400; Wed, 14 Feb 2007 15:30:17 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75]) by mx1.freebsd.org (Postfix) with ESMTP id 079CA13C47E; Wed, 14 Feb 2007 15:30:11 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (localhost [127.0.0.1]) by svm.csie.ntu.edu.tw (8.13.8/8.13.8) with ESMTP id l1EFUBXu007445; Wed, 14 Feb 2007 23:30:11 +0800 (CST) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: (from rafan@localhost) by svm.csie.ntu.edu.tw (8.13.8/8.13.8/Submit) id l1EFUBGn027151; Wed, 14 Feb 2007 23:30:11 +0800 (CST) (envelope-from rafan) Date: Wed, 14 Feb 2007 23:30:11 +0800 From: Rong-En Fan To: Thomas Dickey Message-ID: <20070214153011.GN88028@svm.csie.ntu.edu.tw> References: <20070214143011.GA76316@svm.csie.ntu.edu.tw> <20070214150912.GB14230@saltmine.radix.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hl1kWnBARzJiTscN" Content-Disposition: inline In-Reply-To: <20070214150912.GB14230@saltmine.radix.net> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: ports@FreeBSD.org, Kirill Ponomarew , Xin LI , Rong-En Fan Subject: Re: Python 2.4.4 and devel/ncurses 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, 14 Feb 2007 15:30:17 -0000 --hl1kWnBARzJiTscN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2007 at 10:09:12AM -0500, Thomas Dickey wrote: > On Wed, Feb 14, 2007 at 10:30:11PM +0800, Rong-En Fan wrote: > > distinfo pkg-plist ports/lang/python24/files patch-CVE-2006-4980 > > patch-setup.py] > > Reply-To:=20 > > In-Reply-To: <20070214130732.GA58681@voodoo.bawue.com> > ... > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 0x604000 (LWP 100437)] > > 0x00000008011ad7d4 in keybound () from /lib/libncurses.so.6 > > (gdb) bt > > #0 0x00000008011ad7d4 in keybound () from /lib/libncurses.so.6 > > #1 0x00000008012fe281 in keyname () from /usr/local/lib/libtinfo.so.5.6 >=20 > Is /usr/local/lib/libtinfo.so.5.6 built using the rpath option? > If it's not (or not working properly), that could be the problem. Yes, --enable-rpath is passed to configure. > Also, if /lib/libncurses.so.6 happened to be loaded first, that > could be the issue. $ kdump -T | grep curses\.so 45383 python 1171466835.725865 NAMI "/lib/libncurses.so.5.6" 45383 python 1171466835.725888 NAMI "/usr/lib/libncurses.so.5.6" 45383 python 1171466835.725914 NAMI "/usr/lib/compat/libncurses.so.5.6" 45383 python 1171466835.725940 NAMI "/usr/X11R6/lib/libncurses.so.5.6" 45383 python 1171466835.725967 NAMI "/usr/local/lib/libncurses.so.5.6" 45383 python 1171466835.725995 NAMI "/usr/local/lib/libncurses.so.5.6" 45383 python 1171466835.726209 NAMI "/lib/libncurses.so.6" 45383 python 1171466835.726234 NAMI "/lib/libncurses.so.6" [I typed 'import _curses' at python prompt then 5+ seconds later, I hit ent= er] 45383 python 1171466842.011160 NAMI "_curses.so" 45383 python 1171466842.011279 NAMI "/usr/local/lib/python24.zip/_curse= s.so" 45383 python 1171466842.011451 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/Lib/_curses.so" 45383 python 1171466842.011640 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/Lib/plat-freebsd6/_curses.so" 45383 python 1171466842.011859 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/Lib/lib-tk/_curses.so" 45383 python 1171466842.012050 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/Modules/_curses.so" 45383 python 1171466842.012236 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_cu= rses.so" 45383 python 1171466842.012313 NAMI "/home/rafan/work/FreeBSD/ports/lan= g/python24/work/Python-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_cu= rses.so" 45383 python 1171466842.012551 NAMI "/lib/libncurses.so.5.6" 45383 python 1171466842.012575 NAMI "/usr/lib/libncurses.so.5.6" 45383 python 1171466842.012603 NAMI "/usr/lib/compat/libncurses.so.5.6" 45383 python 1171466842.012630 NAMI "/usr/X11R6/lib/libncurses.so.5.6" 45383 python 1171466842.012658 NAMI "/usr/local/lib/libncurses.so.5.6" It seems to me that rpath works as expected but /lib/libncurses.so.6 is loaded first... >=20 > --=20 > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net --hl1kWnBARzJiTscN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) iD8DBQFF0ysC144QkYb9jGgRAih+AJ9sf2IPATdmZ+cODuZjKmisQDdVGACfX/Gl vilyUyaPkOhGl56n2y5/jW8= =ImhK -----END PGP SIGNATURE----- --hl1kWnBARzJiTscN--