From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22709 invoked by alias); 1 Nov 2009 18:32:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27328 Received: (qmail 5406 invoked from network); 1 Nov 2009 18:32:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.49 as permitted sender) Message-Id: <200911011831.nA1IVtMH003055@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: zsh eats 100% CPU with completion in / In-Reply-To: Message from Mikael Magnusson of "Sun, 01 Nov 2009 02:50:14 +0100." <237967ef0910311850p2994c4e2ha72944842bc6fa8@mail.gmail.com> Date: Sun, 01 Nov 2009 18:31:55 +0000 X-Cloudmark-Analysis: v=1.0 c=1 a=KKLPYScoP6YA:10 a=NLZqzBF-AAAA:8 a=-hzgVdjEg3fv60dAfc0A:9 a=1PzH8ST-0siE7PwdIk0EQkfyZDcA:4 a=_dQi-Dcv4p4A:10 Mikael Magnusson wrote: > (gdb) print clwpos > $8 = 0 > (gdb) print clwords > $9 = (char **) 0x8144278 > (gdb) print clwords[0] > $10 = 0x82fb758 "" Thanks---I think that means somehow it's got confused in the lexical analyser, there's not much scope for more problems in get_comp_string(). That first word obviously ought to be "./x". Possibly something hasn't been reset properly after the last operation; we've seen a couple of things like that. We need to find out why the first zshlex(), and hence gettok(), is setting tok to STRING but not tokstr to "./x" (if it is, the problem is in get_comp_string() after all). It might well be something quite simple. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/