Date: Wed, 14 Feb 2007 22:34:22 +0800 From: LI Xin <delphij@delphij.net> To: Rong-En Fan <rafan@FreeBSD.ORG> Cc: ports@FreeBSD.ORG, Thomas Dickey <dickey@radix.net>, Kirill Ponomarew <krion@voodoo.bawue.com>, Xin LI <delphij@FreeBSD.ORG> Subject: Re: Python 2.4.4 and devel/ncurses Message-ID: <45D31DEE.2070303@delphij.net> In-Reply-To: <20070214143011.GA76316@svm.csie.ntu.edu.tw> References: <20070214143011.GA76316@svm.csie.ntu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig59D4A88479E904A542162C8A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, 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> >=20 > [I move to ports@ for discussion. Also CC'ing ncurses author] >=20 > On Wed, Feb 14, 2007 at 02:07:32PM +0100, Kirill Ponomarew wrote: [...] >> Upgrading from python24-2.4.3_3 to python24-2.4.4 fails on AMD64 6.2 R= ELEASE. >> >> cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t -DTHR= EAD_STACK_SIZE=3D0x20000 -fPIC -fno-strict-aliasing -I. -I/usr/ports/lang= /python24/work/Python-2.4.4/./Include -I/usr/local/include -I/usr/ports/l= ang/python24/work/Python-2.4.4/Include -I/usr/ports/lang/python24/work/Py= thon-2.4.4 -c /usr/ports/lang/python24/work/Python-2.4.4/Modules/_cursesm= odule.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-P= RERELEASE-amd64-2.4/_curses.so >> Segmentation fault (core dumped) >> *** Error code 139 >=20 > I can reproduce this with both i386/amd64 6.2-RELEASE with devel/ncurse= s > installed. ldd ${WRKSRC}/build/.../_curses.so says it is linked against= > local/lib/libncurses.so.6 (ktrace on python executable also confirms th= at). >=20 > gdb shows (I have devel/ncurses-devel installed instead of ncurses 5.6)= : >=20 > (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 >=20 > 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/_c= ursesmodule.c:2605 > #3 0x000000000047215f in _PyImport_LoadDynamicModule ( > name=3D0x7fffffffdf70 "_curses", > pathname=3D0x7fffffffdac0 "/home/admin/usr/ports/lang/python24/work= /Python-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_curses.so", fp=3D= 0x80142b3b9) > at ./Python/importdl.c:53 > #4 0x0000000000470255 in load_module (name=3D0x7fffffffdf70 "_curses",= > fp=3D0x101, buf=3D0x1 <Error reading address 0x1: Bad address>, typ= e=3D3, > loader=3D0x101) > at /home/admin/usr/ports/lang/python24/work/Python-2.4.4/Python/imp= ort.c:1689 > #5 0x000000000047061d in import_submodule (mod=3D0x5b3ea0, > subname=3D0x7fffffffdf70 "_curses", fullname=3D0x7fffffffdf70 "_cur= ses") > at /home/admin/usr/ports/lang/python24/work/Python-2.4.4/Python/imp= ort.c:2276 > [...] >=20 > I can build python 2.4.4 without problems on 7.x i386, which has ncurse= s > 5.6 in base. Moreover, python 2.5 builds fine on these machines, i.e., = > with devel/ncurses installed.=20 >=20 > So, my guess is that devel/ncurses + base ncurses confuses python 2.4.4= > build in someway... Hmm... So I guess this is machine independent? I'll try to see if I can produce this on my i386 crashbox, thanks for the clue. Cheers, --=20 Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig59D4A88479E904A542162C8A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF0x3uOfuToMruuMARA8I+AJ9EgboaYN283tq7Wbc2JGdaTyyZ+wCfVRxj IgyWYf5yobrPWWmRc2ryBVY= =JwFF -----END PGP SIGNATURE----- --------------enig59D4A88479E904A542162C8A--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D31DEE.2070303>