Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh parser segmentation fault in strcatsub
- X-seq: zsh-workers 41114
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Zsh parser segmentation fault in strcatsub
- Date: Tue, 16 May 2017 13:30:18 +0000
- Cc: zsh-workers@xxxxxxx, Eduardo Bustamante <dualbus@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=ngIk70CIdw4B0/UnOdm+WH+IkQfwV8ycY1S0ntUBaAw=; b=HG3w3w6O OnjYhq65Z1fbAKDxSX4XPzindntPgcEnZUTr3hM+XfqGxUg6RyfM2Pmc4GaWptwD Gtzhv67DBuxE+vGEISUhQWpvqIyouXACv7ItkOSr1RoPKELdEv16ApogZQtEfsW8 yAcijE4zoGwNIWUkAZGCSq3iF5BYfznaTm6Zpkjz/CqaeT4KkjaI2KcRmGKhm0/7 IMTnsD69xuxuvzShEvC0tzcQAWhy0nlt5XMD5UhKgmLcPuNwvxeZUQlxUfeaTRwK h1OOas4M5t8n9XFk6tLE5Zvd5VeekNB7pOAZwG7P6AGGvoYRJioFIH7dCHPHylOu Gy4Qxc6SXCZd8A==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=ngIk70CIdw4B0/UnOdm+WH+IkQfwV8ycY1S0ntUBaAw=; b=q38/+eis Ugvr4u6PHNbW6DfQndExWA+JSr/u6yBnhkdnbOw6kjqtewfrMbaCpPm3wCBJS+Zk toDcCHkOWOWCu6Wniyg77gqL4MpGQxS9Zw2RmpHfKC//qD9xsgGWbnVSgpFejR1y YCSvayrCY9+tf73D84TSo592q96Q5xUoc7ToUUWa3T7lYgIGIT4ThUpfsJBTtPt+ IclGl1SOMPCWYPzfRewCA4lxNy5VBPevaYP45ui+JQmNHtnoYgBAXsfR7eSUeECX H3se3+uSQvYK89u+t4SDevoi99GbQ/GFBDnUIY/y5izMIkKhSLGM3lMvT61QywHu NQJRqWZesxrdtQ==
- In-reply-to: <20170516094723.570b5c07@pwslap01u.europe.root.pri>
- 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
- References: <CAOSMAuuUiTz_3ih-b6TYnZYnevs+eYgOkXHjLY6oOTtCmQOWfg@mail.gmail.com> <CGME20170516004844epcas2p21db507caf180dd1a46ac3953efd285b8@epcas2p2.samsung.com> <CAH+w=7bs1PjG-DNLdCK1CsQsSNAsJzvOhE64j-sJZChuXLEGog@mail.gmail.com> <20170516094723.570b5c07@pwslap01u.europe.root.pri>
Peter Stephenson wrote on Tue, May 16, 2017 at 09:47:23 +0100:
> On Mon, 15 May 2017 17:48:07 -0700
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > On Mon, May 15, 2017 at 2:30 PM, Eduardo Bustamante <dualbus@xxxxxxxxx> wrote:
> > >
> > > Core was generated by `/home/dualbus/src/zsh/zsh/Src/zsh -nv strcatsub'.
> >
> > I can't reproduce this with any of "zsh -f", "zsh -nf", or "zsh -nvf"
> > when using the latest checkout from git and the file you attached.
> > Valgrind reports no problems.
>
> It's possible it's a variant of the previous string handling problem in
> patterns, (41096 / 4bb81eef) which had murky effects.
Building a tree newer than that revision (171e7fa4c1d9 + some local
patches that don't go anywhere near the parser), I get:
[[[
% /path/to/installed/zsh -fnv strcatsub
$$0000${(e0z)^Y-000${(z)^Y-00>
{000000}0}0
00}${%0000000000000000000000000000000000000000�000000�00�0000���0000000${(fzfLl0200oNN�?>&9������//��?0B0mpr0200%����O�)3oN0iO0)c000%000000000000}�0�000000�00��0000000000000�00�}00%
]]]
where the final % is in reverse video, but stays there even with -o nopromptsp.
If I remove the -f, it outputs the same junk, but preceded by the
entirety of my .zshenv. All that goes to stderr.
My configure line:
./configure --enable-zsh-debug --with-term-lib=ncursesw --prefix=$HOME/prefix/zsh
perl -pi -e 's/link=dynamic/link=static/g; if (/link=static/) { s/auto=yes/auto=no/ }' config.modules
Messages sorted by:
Reverse Date,
Date,
Thread,
Author