From owner-freebsd-ports@FreeBSD.ORG Sat Oct 1 23:26:29 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11DD716A41F; Sat, 1 Oct 2005 23:26:29 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8FD543D45; Sat, 1 Oct 2005 23:26:28 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [70.30.70.180]) by elvis.mu.org (Postfix) with ESMTP id 91CA41A3C1B; Sat, 1 Oct 2005 16:26:28 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 7A1FC534FF; Sat, 1 Oct 2005 19:26:27 -0400 (EDT) Date: Sat, 1 Oct 2005 19:26:27 -0400 From: Kris Kennaway To: Alexandru Balan Message-ID: <20051001232627.GA95853@xor.obsecurity.org> References: <200509261700.48416.mi+mx@aldan.algebra.com> <200509261558.13760.ringworm01@gmail.com> <200509262322.40104@aldan> <200509270114.13395.ringworm01@gmail.com> <1127838257.947.90.camel@abalan.dsd.ro> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <1127838257.947.90.camel@abalan.dsd.ro> User-Agent: Mutt/1.4.2.1i Cc: Mikhail Teterin , krion@FreeBSD.org, freebsd-ports@freebsd.org Subject: pkg_delete and malloc debugging (Re: port register/unregister hogs up resources and takes forever) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2005 23:26:29 -0000 --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>= 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--