From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: segfault in completion when using alias with \ as last character
Date: Thu, 01 Aug 2013 09:25:08 -0700 [thread overview]
Message-ID: <130801092508.ZM8575@torch.brasslantern.com> (raw)
In-Reply-To: <20130801144552.GA11716@gluon.atom>
On Aug 1, 4:45pm, torstenschmits@gmail.com wrote:
}
} alias foo='bar\'
} foo <tab>
} -> 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 <Address 0x8c32001 out of bounds>)
at ../../zsh-5.0/Src/utils.c:4236
4236 if (*s++ == Meta) {
#0 0x080c7da3 in ztrsub (t=0x8c0c5d7 "",
s=0x8c32001 <Address 0x8c32001 out of bounds>)
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
next prev parent reply other threads:[~2013-08-01 16:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 14:45 torstenschmits
2013-08-01 16:25 ` Bart Schaefer [this message]
2013-08-02 5:49 ` Bart Schaefer
2013-08-02 15:56 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=130801092508.ZM8575@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).