Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Segfault in paramsubst() from completion (regression from 5.3.1)
- X-seq: zsh-workers 41610
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Segfault in paramsubst() from completion (regression from 5.3.1)
- Date: Mon, 28 Aug 2017 00:50:55 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=5BbbCAoqEBM9yAmqEYpCk12/uEkKuZ2tTLIKl94W7 +c=; b=IIbwCvfcQDyhTqbamVrvfeSgGi+vS5ev8z6clWNex1h7PKkS4ozLx9VI5 vIR6iVPmsVi+4HxI2qM+Yapaxlt9A1HsdGINowLaX1DrzfquEexURzZRFK23yBBl E/xWczlset1BYqnh6gvCvkFrqxlS6pge8q/5IVWa/Rp+ToVf712D0VQ3aFyKMb3h DBrd26zfwrJ2E10BOBD/nJUk/fbo/g8yuXjOepi0Ko7LqKQbhyB6tpCa/KUZJb7/ 7SePyb/y86ZJpLFKGYhG+Dy6usuaZx78HiXVG+B44gG22AtBR0KUzPKUzTlqRIoe ikfaxNVqM5VJsmLZ70bYbJUs4Ac8w==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=5BbbCAoqEBM9yAmqEYpCk12/uEkKuZ2tTLIKl94W7 +c=; b=etZyCD13G3UB+0Uil8E7m28v9B2GKXc1IC6Ztu4+/7obpdcbd7K+WRRlI goL6scvuW1CrbM/nfLQHVKTKMvVAyl9Vq1XweKMvUQc+ViLc74vukrBvwTSNG7s1 S1628y44VnGurcx4IQ5v2p7hlNWoQsOa4ivaXPSt9jP1CCHA5UJ00kT7ggZxncmU Uzy8Bxp49IaDzRh0pvT0CsANfxzjZ1d62L/E0d4yBxhANSetjAKdYER/NcyCtmCP 57Tvyxy1bOLUWrEuJTs41ko+Frh0+yS+56cxnpti1ojKX+70zzTESHSGBpAJenJb 9y68LjH/ISTHfsPa2+LRp/TvMTaAg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author