Date: Wed, 14 Feb 2007 22:30:11 +0800 From: Rong-En Fan <rafan@FreeBSD.org> To: Kirill Ponomarew <krion@voodoo.bawue.com> Cc: ports@FreeBSD.org, Thomas Dickey <dickey@radix.net>, Xin LI <delphij@FreeBSD.org> Subject: Python 2.4.4 and devel/ncurses Message-ID: <20070214143011.GA76316@svm.csie.ntu.edu.tw>
next in thread | raw e-mail | index | archive | help
--IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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> [I move to ports@ for discussion. Also CC'ing ncurses author] On Wed, Feb 14, 2007 at 02:07:32PM +0100, Kirill Ponomarew wrote: > On Wed, Feb 14, 2007 at 06:07:33AM +0000, Xin LI wrote: > > delphij 2007-02-14 06:07:29 UTC > >=20 > > FreeBSD ports repository > >=20 > > Modified files: > > Mk bsd.python.mk=20 > > lang/python Makefile distinfo=20 > > lang/python-doc-html distinfo=20 > > lang/python24 Makefile distinfo pkg-plist=20 > > lang/python24/files patch-setup.py=20 > > Removed files: > > lang/python24/files patch-CVE-2006-4980=20 > > Log: > > Update to Python 2.4.4. > > =20 > > Approved by: maintainer timeout, alexbl (python@) > > Tested by: pointyhat > > PR: ports/105901 >=20 > Upgrading from python24-2.4.3_3 to python24-2.4.4 fails on AMD64 6.2 RELE= ASE. >=20 > cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t -DTHREAD= _STACK_SIZE=3D0x20000 -fPIC -fno-strict-aliasing -I. -I/usr/ports/lang/pyth= on24/work/Python-2.4.4/./Include -I/usr/local/include -I/usr/ports/lang/pyt= hon24/work/Python-2.4.4/Include -I/usr/ports/lang/python24/work/Python-2.4.= 4 -c /usr/ports/lang/python24/work/Python-2.4.4/Modules/_cursesmodule.c -o = build/temp.freebsd-6.2-PRERELEASE-amd64-2.4/_cursesmodule.o > cc -shared -pthread -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t = -DTHREAD_STACK_SIZE=3D0x20000 build/temp.freebsd-6.2-PRERELEASE-amd64-2.4/_= cursesmodule.o -L/usr/local/lib -lncurses -o build/lib.freebsd-6.2-PRERELEA= SE-amd64-2.4/_curses.so > Segmentation fault (core dumped) > *** Error code 139 I can reproduce this with both i386/amd64 6.2-RELEASE with devel/ncurses installed. ldd ${WRKSRC}/build/.../_curses.so says it is linked against local/lib/libncurses.so.6 (ktrace on python executable also confirms that). gdb shows (I have devel/ncurses-devel installed instead of ncurses 5.6): (gdb) run Starting program: /home/admin/usr/ports/lang/python24/work/Python-2.4.4/python warning: Unable to get location for thread creation breakpoint: generic error [New LWP 100158] Python 2.4.4 (#1, Feb 14 2007, 21:57:09) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 Type "help", "copyright", "credits" or "license" for more information. [New Thread 0x604000 (LWP 100158)] >>> import _curses 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 #2 0x000000080142c1be in init_curses () at /home/admin/usr/ports/lang/python24/work/Python-2.4.4/Modules/_curse= smodule.c:2605 #3 0x000000000047215f in _PyImport_LoadDynamicModule ( name=3D0x7fffffffdf70 "_curses", pathname=3D0x7fffffffdac0 "/home/admin/usr/ports/lang/python24/work/Pyt= hon-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_curses.so", fp=3D0x80= 142b3b9) at ./Python/importdl.c:53 #4 0x0000000000470255 in load_module (name=3D0x7fffffffdf70 "_curses", fp=3D0x101, buf=3D0x1 <Error reading address 0x1: Bad address>, type=3D= 3, loader=3D0x101) at /home/admin/usr/ports/lang/python24/work/Python-2.4.4/Python/import.= c:1689 #5 0x000000000047061d in import_submodule (mod=3D0x5b3ea0, subname=3D0x7fffffffdf70 "_curses", fullname=3D0x7fffffffdf70 "_curses") at /home/admin/usr/ports/lang/python24/work/Python-2.4.4/Python/import.= c:2276 [...] I can build python 2.4.4 without problems on 7.x i386, which has ncurses 5.6 in base. Moreover, python 2.5 builds fine on these machines, i.e.,=20 with devel/ncurses installed.=20 So, my guess is that devel/ncurses + base ncurses confuses python 2.4.4 build in someway... Regards, Rong-En Fan >=20 > -Kirill --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) iD8DBQFF0xzy144QkYb9jGgRArt7AJkBZOS6a/fnOdEzq4Ej9AmoFot5hQCgjXou jCbPa7kRNL5ScmSYjUtYRQc= =h0PZ -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070214143011.GA76316>