Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segmentation fault
- X-seq: zsh-workers 41519
- From: Kamil Dudka <kdudka@xxxxxxxxxx>
- To: anyinteger@xxxxxxx
- Subject: Re: Segmentation fault
- Date: Thu, 10 Aug 2017 11:37:51 +0200
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=kdudka@xxxxxxxxxx
- Cc: zsh-workers@xxxxxxx
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2C00C52CD0
- In-reply-to: <20170809214553.E32A1402C1@smtp.hushmail.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: <20170809214553.E32A1402C1@smtp.hushmail.com>
On Wednesday, August 09, 2017 21:45:53 anyinteger@xxxxxxx wrote:
> Following code causes segmentation fault on zsh :
>
> func(){r;func}
> func
I guess this is just another instance of stack overflow caused by infinite
shell recursion. I reported a similar issue few months ago:
http://www.zsh.org/mla/workers/2017/msg00623.html
I am aware of two solutions:
1. reduce stack usage (compiler flags, move some data from stack to heap)
2. recompile zsh with --enable-max-function-depth set to some lower value
(the default is 1000)
Kamil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author