From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1809 invoked from network); 10 May 2004 00:01:20 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (96@203.24.36.3) by ns1.primenet.com.au with SMTP; 10 May 2004 00:01:20 -0000 Received: (qmail 7649 invoked from network); 9 May 2004 23:32:03 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by proxy.melb.primenet.com.au with SMTP; 9 May 2004 23:32:03 -0000 Received: (qmail 27399 invoked from network); 9 May 2004 23:30:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 May 2004 23:30:39 -0000 Received: (qmail 21392 invoked by alias); 9 May 2004 23:30:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19901 Received: (qmail 21383 invoked from network); 9 May 2004 23:30:34 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 9 May 2004 23:30:31 -0000 Received: (qmail 27040 invoked from network); 9 May 2004 23:30:31 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 9 May 2004 23:30:28 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 8CC2B7004A; Sun, 9 May 2004 19:30:00 -0400 (EDT) Date: Sun, 9 May 2004 19:30:00 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Cc: 245678-submitter@bugs.debian.org Subject: Re: Bug#245678: zsh: built-in rm -rf fills up the memory Message-ID: <20040509233000.GA11066@scowler.net> References: <20040508140207.GA25045@scowler.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.4 required=6.0 tests=BAYES_20 autolearn=no version=2.63 X-Spam-Hits: -1.4 > And you're saying that (h->used + (new - old) <= HEAP_ARENA_SIZE) is > always false, so the zhalloc() is always called? I don't know that it's always false, but here's a small snapshot of those comparisons during a zsh/files rm -rf attempt. [ h->used + (new - old) > HEAP_ARENA_SIZE ] 63432 + (63504 - 63432) > 16360 63504 + (63576 - 63504) > 16360 63576 + (63648 - 63576) > 16360 63648 + (63728 - 63648) > 16360 63728 + (63800 - 63728) > 16360 63800 + (63872 - 63800) > 16360 63872 + (63944 - 63872) > 16360 63944 + (64024 - 63944) > 16360 64024 + (64096 - 64024) > 16360 64096 + (64168 - 64096) > 16360 64168 + (64240 - 64168) > 16360 64240 + (64320 - 64240) > 16360 > If that's not what you find to be the case, then the bug is elsewhere and > we need to keep looking. If it is what you find, then there's a problem > with h->used record-keeping, or something.