zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: zsh-workers@zsh.org, Eduardo Bustamante <dualbus@gmail.com>
Subject: Re: Zsh parser segmentation fault in strcatsub
Date: Tue, 16 May 2017 13:30:18 +0000	[thread overview]
Message-ID: <20170516133018.GA6347@fujitsu.shahaf.local2> (raw)
In-Reply-To: <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@brasslantern.com> wrote:
> > On Mon, May 15, 2017 at 2:30 PM, Eduardo Bustamante <dualbus@gmail.com> 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


      reply	other threads:[~2017-05-16 13:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 21:30 Eduardo Bustamante
2017-05-16  0:48 ` Bart Schaefer
2017-05-16  1:36   ` Eduardo Bustamante
2017-05-16  3:38     ` Bart Schaefer
2017-05-17 18:37     ` Bart Schaefer
2017-05-18  2:21       ` Eduardo Bustamante
2017-05-16  8:47   ` Peter Stephenson
2017-05-16 13:30     ` Daniel Shahaf [this message]

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=20170516133018.GA6347@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=dualbus@gmail.com \
    --cc=p.stephenson@samsung.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).