Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh eats 100% CPU with completion in /
- X-seq: zsh-workers 27340
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zsh eats 100% CPU with completion in /
- Date: Tue, 3 Nov 2009 12:24:49 +0100
- In-reply-to: <20091103101058.2eeaf4b6@news01>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <mikachu@xxxxxxxxx> <237967ef0911011312u307ecf19kbabf9fecf867cec1@xxxxxxxxxxxxxx> <200911012220.nA1MKgjM005270@xxxxxxxxxxxxxxxxxxx> <237967ef0911011657n54279c54ja8fce16a1861ff4f@xxxxxxxxxxxxxx> <237967ef0911011726q7550593ax30bc61f1a736e725@xxxxxxxxxxxxxx> <20091102163858.11415153@news01> <237967ef0911021258x5403c976m281fb66ee7488b59@xxxxxxxxxxxxxx> <237967ef0911021306y33467270l6a1cf921cefbe037@xxxxxxxxxxxxxx> <237967ef0911021330r6f733a5v9536bbe2f237ccf9@xxxxxxxxxxxxxx> <20091103101058.2eeaf4b6@news01>
Peter Stephenson <pws@xxxxxxx>:
> On Mon, 2 Nov 2009 22:30:08 +0100
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > > And this seems to fix it. Not sure if checking that inside the loop is the best
> > > place, but there seems to be some freeing of *pp going on that I
> > > didn't feel like
> > > investigating. Maybe checking xbuf before slashsplit would work?
> >
> > And of course, I have no idea if *xbuf being '\0' is indicative of
> > some other bug.
>
> Thanks, it looks like that really is the problem and I think the fix is
> fine.
[...]
My colleague just tried this and it seems like it fixes the bug for
him, too. Thanks for wading through the code and coming up with a fix,
Mikael! :-)
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author