Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
segfault when name a local variable "path"
- X-seq: zsh-users 20973
- From: Corentin Henry <corentinhenry@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: segfault when name a local variable "path"
- Date: Fri, 20 Nov 2015 11:38:40 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ati30N66j70ZFhU0k3l+4YUlAR8JbM2Yx+bRK306kWM=; b=m71tUP3uv0HeF56gkT241NUDdzcRrVMxP5F/8OrBvAZneOsjFZpu2ofqQ0Fr3tdHqc t6q/EN8Mkc4lBVn+qDPRC+PNmDMzQIQ7hgoR1sdFZC68hUaCJV4nwS0YJhaC3/5qpg7j jIaFCYEILL3BeQ6jj1FqV42kwQYG0mDBIxg8OUeUkt0zI2yALS4N+ulFUNbeWTb+jWjA ulDiOTJ3BRIEz04tSEkREJQUy5RlfFqdOJ/lcZfIVhDsfAhs0XW9zufr8VI4+Zl1cQqs x/px7gAdSIX6CKW7qSLYRuzEvAHeRWGPXdrL1SQrSIRzZWjEp29D0gGHyDoIsqLVBKOc Ebfg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author