From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Segfault in paramsubst() from completion (regression from 5.3.1)
Date: Mon, 28 Aug 2017 00:50:55 +0000 [thread overview]
Message-ID: <20170828005055.ije2rr4d7ovbmfr4@tarpaulin.shahaf.local2> (raw)
Just found this:
% autoload compinit
% compinit
% _f() { _arguments '1: :_files' '2: :_hosts' ':: : _normal' }
% compdef _f f
% f x y <TAB>
Process 27225 stopped
* thread #1: tid = 27225, 0x00000000004cc3ca zsh`paramsubst(l=0x00007fffff800268, n=0x00007fffff800250, str=0x00007fffff7ff6d0, qt=1, pf_flags=4, ret_flags=0x00007fffff7ffcac) + 762 at subst.c:1770, name = 'zsh', stop reason = signal SIGSEGV: invalid address (fault address: 0x7fffff7fed68)
frame #0: 0x00000000004cc3ca zsh`paramsubst(l=0x00007fffff800268, n=0x00007fffff800250, str=0x00007fffff7ff6d0, qt=1, pf_flags=4, ret_flags=0x00007fffff7ffcac) + 762 at subst.c:1770
1767 * these later on, too.
1768 */
1769 c = *s;
-> 1770 if (itype_end(s, IIDENT, 1) == s && *s != '#' && c != Pound &&
1771 !IS_DASH(c) &&
1772 c != '!' && c != '$' && c != String && c != Qstring &&
1773 c != '?' && c != Quest &&
(lldb) p s
(char *) $0 = 0x00007ffff5f171da "curcontext\xffffff9e"
(lldb) p $0[9]
(char) $1 = 't'
(lldb) p $0[10]
(char) $2 = '\x9e'
(lldb) p $0[11]
(char) $3 = '\0'
(lldb)
On 5.4.2-dev-0 compiled from git.
In 5.3.1 (Debian package) I just get:
_tags:comptags:36: nesting level too deep
_tags:comptags:60: nesting level too deep
_tags:comptags:67: nesting level too deep
next reply other threads:[~2017-08-28 0:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 0:50 Daniel Shahaf [this message]
2017-08-28 0:55 ` Daniel Shahaf
2017-08-28 17:57 ` Peter Stephenson
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=20170828005055.ije2rr4d7ovbmfr4@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--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).