zsh-users
 help / color / mirror / code / Atom feed
From: Corentin Henry <corentinhenry@gmail.com>
To: zsh-users@zsh.org
Subject: segfault when name a local variable "path"
Date: Fri, 20 Nov 2015 11:38:40 +0100	[thread overview]
Message-ID: <CAJfJ4siQpcw7CT0hHs8QA_rjjXOxCJ2kpV2VKCAwo7JF1LLu2w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Hi,

I have the following script:

# segfault.sh
function foo() {
    local path=
}


I source it an execute foo:

% source segfault.sh
% foo

Then zsh segaults. Is this a known bug? If not, can anyone reproduce?
My setup:

arch-lenovo% uname -a
Linux arch-lenovo 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015
x86_64 GNU/Linux
arch-lenovo% zsh --version
zsh 5.1.1 (x86_64-unknown-linux-gnu)

I installed zsh using archlinux package manager. I use prezto (
https://github.com/sorin-ionescu/prezto) but I'm able to reproduce with a
plain zsh config.

Please let me know how I can provide more info, if needed.

Cheers,
Corentin

             reply	other threads:[~2015-11-20 10:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 10:38 Corentin Henry [this message]
2015-11-20 11:11 ` 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=CAJfJ4siQpcw7CT0hHs8QA_rjjXOxCJ2kpV2VKCAwo7JF1LLu2w@mail.gmail.com \
    --to=corentinhenry@gmail.com \
    --cc=zsh-users@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).