From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12309 invoked from network); 22 Sep 2008 08:48:30 -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: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Sep 2008 08:48:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86522 invoked from network); 22 Sep 2008 08:48:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Sep 2008 08:48:03 -0000 Received: (qmail 2553 invoked by alias); 22 Sep 2008 08:47:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25707 Received: (qmail 2544 invoked from network); 22 Sep 2008 08:47:55 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Sep 2008 08:47:55 -0000 Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [217.69.20.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id C474280307AB for ; Mon, 22 Sep 2008 10:47:40 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly43d.srv.mailcontrol.com (MailControl) with ESMTP id m8M8lTs3015543 for ; Mon, 22 Sep 2008 09:47:32 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Sep 2008 09:47:28 +0100 Date: Mon, 22 Sep 2008 09:47:23 +0100 From: Peter Stephenson To: "Zsh hackers list" Subject: Re: SEGV in history when searching a null list Message-ID: <20080922094723.2193acf7@news01> In-Reply-To: <6cd6de210809200814v6e4fbb82k8692845645de9c2f@mail.gmail.com> References: <6cd6de210809200814v6e4fbb82k8692845645de9c2f@mail.gmail.com> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Sep 2008 08:47:28.0459 (UTC) FILETIME=[D7E219B0:01C91C8F] X-Scanned-By: MailControl A-08-50-14 (www.mailcontrol.com) on 10.68.0.153 X-Virus-Scanned: ClamAV 0.92.1/8307/Mon Sep 22 07:05:57 2008 on bifrost X-Virus-Status: Clean On Sat, 20 Sep 2008 11:14:30 -0400 "Rocky Bernstein" wrote: > Found this bug when adding history to zshdb: > > #!/usr/local/bin/zsh -if > history -ap ./$$ > fc -l commands > > Program received signal SIGSEGV, Segmentation fault. > > A possible patch should be attached. Thanks, that certainly looks safe. I've committed it. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070