From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22418 invoked by alias); 1 Aug 2013 16:26:04 -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: 31627 Received: (qmail 27367 invoked from network); 1 Aug 2013 16:25:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130801092508.ZM8575@torch.brasslantern.com> Date: Thu, 01 Aug 2013 09:25:08 -0700 In-reply-to: <20130801144552.GA11716@gluon.atom> Comments: In reply to torstenschmits@gmail.com "segfault in completion when using alias with \ as last character" (Aug 1, 4:45pm) References: <20130801144552.GA11716@gluon.atom> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: segfault in completion when using alias with \ as last character MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 1, 4:45pm, torstenschmits@gmail.com wrote: } } alias foo='bar\' } foo } -> segfault. Src/Zle/zle_tricky.c:668: BUG: 0 <= wb <= zlemetacs <= we is not true! That's right after a call to get_comp_string() which we've just been messing with for a different segfault, but workers/31611 doesn't have any effect on this one. The actual crash is here: 0x080c7da3 in ztrsub (t=0x8c0c5d7 "", s=0x8c32001
) at ../../zsh-5.0/Src/utils.c:4236 4236 if (*s++ == Meta) { #0 0x080c7da3 in ztrsub (t=0x8c0c5d7 "", s=0x8c32001
) at ../../zsh-5.0/Src/utils.c:4236 #1 0x08124699 in docomplete (lst=0) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:675 #2 0x08123aa9 in completeword (args=0x815ebe0) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:232 #3 0x081239cd in completecall (args=0x815ebe0) at ../../../zsh-5.0/Src/Zle/zle_tricky.c:208