Date: Sun, 18 Apr 2004 13:55:10 +1000 From: Tim Robbins <tjr@freebsd.org> To: Alex Vasylenko <lxv@omut.org> Cc: current@freebsd.org Subject: Re: /usr/bin/less weird memory consumption? Message-ID: <20040418035510.GB5615@cat.robbins.dropbear.id.au> In-Reply-To: <408098A7.6090407@omut.org> References: <040416140449E.61901@www.mmlab.cse.yzu.edu.tw> <408098A7.6090407@omut.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 16, 2004 at 10:38:31PM -0400, Alex Vasylenko wrote: > Tai-hwa Liang wrote: > > Anyone tried to view a file contains *hugh* line with /usr/bin/less in > >-CURRENT? > > > >Sample file: > > > > dd if=/dev/zero bs=512 count=1500 | tr '\00' ' ' > test.txt > > > > On my -CURRENT box cvsup'd this morning, "/usr/bin/less text.txt" > > consumes > >about 511 MBytes of memory(see 'top'). -STABLE(less 358) and less 381 on > >Debian doesn't seem to have such problem, though. > > There's a memory leak. The latest less (382) doesn't have this problem. > Use attached patch. Thanks for pointing this out. I've imported less 381, which fixes the memory leak. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040418035510.GB5615>