Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2005 19:26:27 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Alexandru Balan <abalan@bitdefender.com>
Cc:        Mikhail Teterin <mi+kde@aldan.algebra.com>, krion@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   pkg_delete and malloc debugging (Re: port register/unregister hogs up resources and takes forever)
Message-ID:  <20051001232627.GA95853@xor.obsecurity.org>
In-Reply-To: <1127838257.947.90.camel@abalan.dsd.ro>
References:  <200509261700.48416.mi%2Bmx@aldan.algebra.com> <200509261558.13760.ringworm01@gmail.com> <200509262322.40104@aldan> <200509270114.13395.ringworm01@gmail.com> <1127838257.947.90.camel@abalan.dsd.ro>

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

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

On Tue, Sep 27, 2005 at 07:24:17PM +0300, Alexandru Balan wrote:

> rebuilding pkgdb or port INDEX and hellknowswhat) and nothing whatsoever
> helps. Running (for example) strace pkg_delete -v ymessenger* shows the
> process in some sort of loop like the one in the attach.=20
>=20
> I would pkg_delete * at this point and reinstall every package if it
> didn't take forever at each port ;(=20
>=20
>=20
> --
> J
>=20
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> >=20
> >=20

> fstat(3, {st_mode=3D0150320, st_size=3D15046755950319947984, ...}) =3D 0
> read(3, "@comment PKG_FORMAT_REVISION:1.1"..., 4096) =3D 1525
> close(3)                                =3D 0
> lstat("<D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D=
0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><=
D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0>=
<D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0=
><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0><D0>

This looks like the signature of malloc debugging exposing a memory
use bug.  I wonder if some of the recent changes to pkg_tools might be
to blame (CC'ing Kirill)?  Try disabling it with

ln -sf aj /etc/malloc.conf=20

If it "fixes" it, it's only a workaround, but it points the way to the
solution.

Kris

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDPxsjWry0BWjoQKURAnc9AJ9McQKCx4m4ci+PPD/DWDoqrHqydgCeJo7u
/EQA1290j1RNfaIU4JYfQWo=
=sYDd
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--



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