Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 23:05:12 +0800
From:      Rong-En Fan <rafan@infor.org>
To:        LI Xin <delphij@delphij.net>
Cc:        ports@FreeBSD.ORG, Thomas Dickey <dickey@radix.net>, Kirill Ponomarew <krion@voodoo.bawue.com>, Xin LI <delphij@FreeBSD.ORG>, Rong-En Fan <rafan@FreeBSD.ORG>
Subject:   Re: Python 2.4.4 and devel/ncurses
Message-ID:  <20070214150512.GM88028@svm.csie.ntu.edu.tw>
In-Reply-To: <45D31DEE.2070303@delphij.net>
References:  <20070214143011.GA76316@svm.csie.ntu.edu.tw> <45D31DEE.2070303@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--SLfjTIIQuAzj8yil
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 14, 2007 at 10:34:22PM +0800, LI Xin wrote:
> Hi,
>=20
> Rong-En Fan wrote:
> > [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/p=
ython24/work/Python-2.4.4/./Include -I/usr/local/include -I/usr/ports/lang/=
python24/work/Python-2.4.4/Include -I/usr/ports/lang/python24/work/Python-2=
=2E4.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-PRERE=
LEASE-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/ncurses
> > 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 ncurses
> > 5.6 in base. Moreover, python 2.5 builds fine on these machines, i.e.,=
=20
> > with devel/ncurses installed.=20
> >=20
> > So, my guess is that devel/ncurses + base ncurses confuses python 2.4.4
> > build in someway...
>=20
> Hmm...  So I guess this is machine independent?  I'll try to see if I

Yes. And, python 2.4.3 fails, too.


Regards,
Rong-En Fan

> can produce this on my i386 crashbox, thanks for the clue.
>=20
> Cheers,
> --=20
> Xin LI <delphij@delphij.net>	http://www.delphij.net/
> FreeBSD - The Power to Serve!
>=20



--SLfjTIIQuAzj8yil
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (FreeBSD)

iD8DBQFF0yUo144QkYb9jGgRAi/PAJ4hWgink9+EMTjYjhrxA+KEHGck2ACghld0
l6GhqZFCs4aUKcsjavLWs3Y=
=MU8U
-----END PGP SIGNATURE-----

--SLfjTIIQuAzj8yil--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070214150512.GM88028>