From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22650 invoked from network); 12 Dec 2005 16:58:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Dec 2005 16:58:37 -0000 Received: (qmail 6783 invoked from network); 12 Dec 2005 16:58:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 16:58:29 -0000 Received: (qmail 8185 invoked by alias); 12 Dec 2005 16:58:23 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9786 Received: (qmail 8176 invoked from network); 12 Dec 2005 16:58:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Dec 2005 16:58:22 -0000 Received: (qmail 5772 invoked from network); 12 Dec 2005 16:58:22 -0000 Received: from cluster-d.mailcontrol.com (HELO rly25d.srv.mailcontrol.com) (217.69.20.190) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 16:58:20 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly25d.srv.mailcontrol.com (MailControl) with ESMTP id jBCGutjP004784 for ; Mon, 12 Dec 2005 16:58:17 GMT Received: from news01 ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 12 Dec 2005 16:49:25 +0000 Date: Mon, 12 Dec 2005 16:49:24 +0000 From: Peter Stephenson To: zsh-users@sunsite.dk Subject: Re: crash with tab completion for 'make' Message-Id: <20051212164924.53f092fe.pws@csr.com> In-Reply-To: <20051212130604.GJ6192@crate15> References: <20051211204732.GH6192@crate15> <20051212130604.GJ6192@crate15> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Dec 2005 16:49:25.0253 (UTC) FILETIME=[025A7350:01C5FF3C] X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.68.0.135 Oded Shimon wrote: > On Sun, Dec 11, 2005 at 10:47:32PM +0200, Oded Shimon wrote: > > 22:45 ods15@crate15 ~ $ zsh --version > > zsh 4.2.6 (i686-pc-linux-gnu) > > > > 22:43 ods15@crate15 ~ $ zsh -ic 'compinit; _make' > > zsh: 16202 segmentation fault zsh -ic 'compinit; _make' > > I narrowed down the crash to something more specific. > > 15:04 ods15@crate15 ~ $ zsh -c 'a(){zparseopts -D -A opts c: r:}; a -r bla' > zsh: 27128 segmentation fault zsh > > this change fixes it: > > 15:05 ods15@crate15 ~ $ zsh -c 'a(){zparseopts -D -A opts c: r: g:}; a -r bla' > 15:05 ods15@crate15 ~ $ > > Basically, whatever is the last element in the 'zparseopts' call, causes a > crash. I still haven't managed to get this to happen. There could easily be a memory allocation error, but I couldn't spot it by inspection, either. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com