Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh parser segmentation fault on taddstr
- X-seq: zsh-workers 41054
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Zsh parser segmentation fault on taddstr
- Date: Sun, 7 May 2017 21:36:31 +0100
- Cc: Eduardo Bustamante <dualbus@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1494189392; bh=njE7FjZYLs8Y5kiVTlYVIVeLp9Hj5o2TTQgGuoXXPVo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Sl/wi9VDGeLexpZpPdzJ/ENhwA+3bUm02PTnmAtdsg1nh1kNz4fUArc8INwFnMeCN kgOM8q1Ihyabcxjayd2Daa45N3z3ddcLWB8oCsTA6h5UxDrEJRevszLhP7Skj9mJ3b pcxT/fO0q6jYWYcfn2VO6wVlfgANjpHqC3bdOd1nlO9zhRQbxPvfP2uL51AwKh8gep zEaduc9+tqvv4dire8rO1kvlfi1gyaQdjXgA8O1Ls7ntcgrBy6VswXOsCN3Lw/HS6W YADaT79qfOM3v8XPsFLLGU33+ozKSlD5oU7FL75mTBxKuOuS7As+BLkAuM9gfKxTAc g1nC2B0l51+Aw==
- In-reply-to: <CAOSMAut8qq+yfOtH3XfU7oGim4CNN=YV0BxZyhU9k80RQ6khgw@mail.gmail.com>
- 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: <CAOSMAut8qq+yfOtH3XfU7oGim4CNN=YV0BxZyhU9k80RQ6khgw@mail.gmail.com>
On Sun, 7 May 2017 11:45:57 -0500
Eduardo Bustamante <dualbus@xxxxxxxxx> wrote:
> Hi all, the following file crashes Zsh when run with noexec:
>
> dualbus@mksh-parser-4pxg:~$ cat -A
> cmin-zsh-crashes/output_16_crashes_id:000392,sig:11,src:016511+011323,op:splice,rep:2
> if (a)M-^?^@^@<<^EM-^?^I^F|&^D\
>
> dualbus@mksh-parser-4pxg:~$ xxd
> cmin-zsh-crashes/output_16_crashes_id:000392,sig:11,src:016511+011323,op:splice,rep:2
> 00000000: 6966 2028 6129 ff00 003c 3c05 ff09 067c if (a)...<<....|
> 00000010: 2604 5c &.\
I haven't got an actual crash, but I am getting some undefined behaviour
which could do anything so is probably down to the same cause. I can
get the same behaviour here:
% fn() { cat <<y |& cat
FOO
y
}
% which fn
text.c:995: unknown word code in gettext2()
fn () {
time <<y | cat
}
The message is only present with debug enabled.
That's a completely valid function --- I'm guessing it's to do with some
interaction between the here-document and the |&, since | works OK, but
that's as far as I've got.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author