pkg_delete and malloc debugging (Re: port register/unregister hogs up resources and takes forever)

Kris Kennaway kris at obsecurity.org
Sat Oct 1 16:26:29 PDT 2005


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. 
> 
> I would pkg_delete * at this point and reinstall every package if it
> didn't take forever at each port ;( 
> 
> 
> --
> J
> 
> > _______________________________________________
> > freebsd-ports at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> > 
> > 

> fstat(3, {st_mode=0150320, st_size=15046755950319947984, ...}) = 0
> read(3, "@comment PKG_FORMAT_REVISION:1.1"..., 4096) = 1525
> close(3)                                = 0
> lstat("<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><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 

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

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051001/3a79221c/attachment.bin


More information about the freebsd-ports mailing list