Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#245678: zsh: built-in rm -rf fills up the memory
- X-seq: zsh-workers 19901
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#245678: zsh: built-in rm -rf fills up the memory
- Date: Sun, 9 May 2004 19:30:00 -0400
- Cc: 245678-submitter@xxxxxxxxxxxxxxx
- In-reply-to: <Pine.LNX.4.44.0405091518180.29962-100000@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20040508140207.GA25045@xxxxxxxxxxx> <Pine.LNX.4.44.0405091518180.29962-100000@xxxxxxxxxxxxxxxxxx>
> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author