From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26101 invoked by alias); 14 May 2011 00:21:59 -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: 29269 Received: (qmail 14936 invoked from network); 14 May 2011 00:21:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=e5R7V9/qS1QNfJl0ubuKk0IED7ED9nZrZvj6dd4tU+M=; b=FiMhHE3nThRSOWPZycMp3l8C0M2hy1ZZKEDNtOEK1UVWV1G10qoOV/ExlWUI+OPZkZ e/b2j4ImI9+OfuNfd+uMjnxbUBB/M9SOMAM68UwXPuVJmJWHhpxW15An1x2PnnV8uKtt qg4Fj506C5+XuwGAvdcSEfsYV9phcpO4Omimo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TazA/x40C5lcZK9hnnT0NoS8+rDqM/xQDa4jSqqslfbsmxp3tK/GSHvVpfYP96HFw0 QnRSpTJWFjf/pue2SEjTaWRX4DuQ+jeOAxMNGo6rucff3t0WspR0EhmQLJYiyQOGHAo8 weIT9w4V9QH+OHPce76Nhdi7T6aAp7YrjNbm4= MIME-Version: 1.0 In-Reply-To: <20110514011315.30f53a2e@pws-pc.ntlworld.com> References: <20110514011315.30f53a2e@pws-pc.ntlworld.com> Date: Sat, 14 May 2011 02:21:52 +0200 Message-ID: Subject: Re: Segfault while testing __git_files functions From: Mikael Magnusson To: Peter Stephenson Cc: Zsh Workers Content-Type: text/plain; charset=UTF-8 On 14 May 2011 02:13, Peter Stephenson wrote: > On Wed, 27 Apr 2011 02:16:04 -0400 (EDT) > "Benjamin R. Haskell" wrote: >> While trying to come up with a minimal "do __git_tree_files when I say >> __git_files" example, I came upon an error that gives me a reproducible >> segfault. >> >> Attached test script can be run from `zsh -ldf`: >> >> host% . ./git-break.zsh >> >> It'll create a git repo, and prep it for the point where it'll break if >> you hit Tab. > > ... thanks to this I was able to try the heap debugging and look at the > result. However, it's nothing to do with using invalid heaps for the > matcher group itself, it's simply that one particular element of the > structure isn't being duplicated properly, so it didn't take much > tracking down. Hah. (gdb) quit Detaching from program: /usr/local/bin/zsh, process 19544 3823030 seconds elapsed Date changed from 2011-03-30 to 2011-05-14 -- Mikael Magnusson