From owner-freebsd-gnome@FreeBSD.ORG Sat Jun 28 18:26:17 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A03BE1065676 for ; Sat, 28 Jun 2008 18:26:17 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (unknown [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 4524C8FC0A for ; Sat, 28 Jun 2008 18:26:17 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m5SIQqqP085039; Sat, 28 Jun 2008 14:26:52 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7_?= =?UTF-8?Q?=E0=A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2?= Ashish Shukla In-Reply-To: <20080626023430.GA9249@chateau.d.lf> References: <86hcbhcis9.fsf@chateau.d.lf> <20080626023430.GA9249@chateau.d.lf> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0s7hzeWDNMJfeQ0RqO/y" Organization: MarcusCom, Inc. Date: Sat, 28 Jun 2008 14:26:27 -0400 Message-Id: <1214677587.86194.10.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org Subject: Re: devel/py-gobject: segfaulting on gobject.markup_escape_text() X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2008 18:26:17 -0000 --=-0s7hzeWDNMJfeQ0RqO/y Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 2008-06-26 at 08:04 +0530, =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0= =A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2 Ashish Shukla wrote: > ,--[ On Wed, Jun 25, 2008 at 08:08:34PM -0500, Jeremy Messenger wrote: > | On Wed, 25 Jun 2008 16:21:42 -0500, Ashish Shukla "=E0=A4=86=E0=A4=B6= =E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2" =20 > | wrote: >=20 > [snip] > =20 > | > #2 0x00000008012b4277 in ?? () from > | > /usr/local/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so > |=20 > | I am not expert at backtrace read. Can you reinstall py-gobject with de= bug =20 > | symbol? It will be easier for expert backtraces read to pick up. >=20 > I'd already built that package with symbols, but its confusing why symbol= s > from _gobject.so aren't showing up, even 'file _gobject.so' its not > stripped :( . Anyways, it segfaults in pyg_markup_escape_text() in > gobject/gobjectmodule.c, in the line containing invocation of > g_markup_escape_text(). >=20 > ---->8----->8---- > static PyObject * > pyg_markup_escape_text(PyObject *unused, PyObject *args, PyObject *kwargs= ) > { > static char *kwlist[] =3D { "text", NULL }; > char *text_in, *text_out; > int text_size; > PyObject *retval; >=20 > if (!PyArg_ParseTupleAndKeywords(args, kwargs, > "s#:gobject.markup_escape_text", kwl= ist, > &text_in, &text_size)) > return NULL; >=20 > text_out =3D g_markup_escape_text(text_in, text_size); > retval =3D PyString_FromString(text_out); > g_free(text_out); > return retval; > } > ---->8---->8---- >=20 > The value of text_in which is passed to g_markup_escape_text() is not > proper. I agree with your analysis, but I cannot reproduce, and I cannot see where the code is wrong. The call to PyArg_ParseTupleAndKeywords() looks okay, so text_in should point to right address. Have you built Python with any non-default OPTIONS? If not, have you reported this bug upstream? Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-0s7hzeWDNMJfeQ0RqO/y Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkhmglIACgkQb2iPiv4Uz4fX1wCeJuAd2avJWfxU1YEp07/a8gX8 jJ4AoIRf+ACA08SqlMkYR3T5y4hASW3A =uhLh -----END PGP SIGNATURE----- --=-0s7hzeWDNMJfeQ0RqO/y--