From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10226 invoked from network); 19 May 2006 10:06:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 May 2006 10:06:56 -0000 Received: (qmail 60343 invoked from network); 19 May 2006 10:06:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 May 2006 10:06:50 -0000 Received: (qmail 24008 invoked by alias); 19 May 2006 10:06:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22448 Received: (qmail 23999 invoked from network); 19 May 2006 10:06:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 May 2006 10:06:47 -0000 Received: (qmail 60094 invoked from network); 19 May 2006 10:06:47 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 19 May 2006 10:06:46 -0000 Received: from rly16c.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly16c.srv.mailcontrol.com (MailControl) with ESMTP id k4JA6bRA013942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 19 May 2006 11:06:40 +0100 Received: from submission.mailcontrol.com (submission.mailcontrol.com [212.158.48.250]) by rly16c.srv.mailcontrol.com (MailControl) id k4JA6CTl013049 for zsh-workers@sunsite.dk; Fri, 19 May 2006 11:06:12 +0100 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly16c-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id k4JA19ZB001498; Fri, 19 May 2006 11:06:12 +0100 (BST) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 May 2006 11:04:43 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k4JA5tKj025539; Fri, 19 May 2006 11:05:55 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k4JA5tjK025536; Fri, 19 May 2006 11:05:55 +0100 Message-Id: <200605191005.k4JA5tjK025536@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk, Frank Terbeck , 367823-forwarded@bugs.debian.org Subject: Re: Bug#367823: zsh: segfault when completing arrays In-reply-to: <20060518131226.GA19838@scowler.net> References: <20060518120635.11242.54875.reportbug@fsst.voodoo.lan> <20060518131226.GA19838@scowler.net> Comments: In-reply-to Clint Adams message dated "Thu, 18 May 2006 09:12:26 -0400." Date: Fri, 19 May 2006 11:05:55 +0100 From: Peter Stephenson X-OriginalArrivalTime: 19 May 2006 10:04:43.0556 (UTC) FILETIME=[A69A0640:01C67B2B] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-04 (www.mailcontrol.com) on 10.67.1.126 Clint Adams wrote: > > Howdy. > > zsh 4.3.2 crashes with sig11 when doing the following: > > > > [snip] > > % zsh -f > > % autoload compinit; compinit > > % array=( 5 4 3 2 1 ) > > % print $array[4] > > ^- place your cursor here and hit > > [snap] > > > > I've tested this on a sarge system with zsh 4.2.5 and that version is > > not affected by this problem. > > Should zlemetaline be 0 or should zleline + zlemetacs be non-zero? I suspect it's just a typo... Index: Src/Zle/zle_params.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_params.c,v retrieving revision 1.28 diff -u -r1.28 zle_params.c --- Src/Zle/zle_params.c 7 Mar 2006 21:31:43 -0000 1.28 +++ Src/Zle/zle_params.c 19 May 2006 10:04:48 -0000 @@ -300,7 +300,8 @@ get_rbuffer(UNUSED(Param pm)) { if (zlemetaline != NULL) - return dupstrpfx((char *)zleline + zlemetacs, zlemetall - zlemetacs); + return dupstrpfx((char *)zlemetaline + zlemetacs, + zlemetall - zlemetacs); return zlelineasstring(zleline + zlecs, zlell - zlecs, 0, NULL, NULL, 1); } -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php