Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Segmentation fault



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