From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6790 invoked by alias); 4 Jan 2014 01:46:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18279 Received: (qmail 18349 invoked from network); 4 Jan 2014 01:46:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 From: Frank Terbeck To: Lawrence =?utf-8?Q?Vel=C3=A1zquez?= Cc: Russell Harmon , zsh-users@zsh.org Subject: Re: Segmentation Fault on Stack Overflow In-Reply-To: ("Lawrence \=\?utf-8\?Q\?Vel\=C3\=A1zquez\=22's\?\= message of "Fri, 3 Jan 2014 20:16:12 -0500") References: <3540501074823477909@gmail297201516> <87d2k8y6wn.fsf@ft.bewatermyfriend.org> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Organisation: 63797068657270756e6b Date: Sat, 04 Jan 2014 02:46:55 +0100 Message-ID: <878uuwy0vk.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: NDMwNDQ0 Lawrence Vel=C3=A1zquez wrote: > On Jan 3, 2014, at 6:36 PM, Frank Terbeck wrote: >> This is caused by infinite recursion. More recent versions of the shell >> will react more reasonably: >>=20 >> zsh% function inf() { inf }; inf >> inf: maximum nested function level reached > > What version are you using? I'm seeing the segfault with the latest relea= se. > > % zsh --version > zsh 5.0.4 (x86_64-apple-darwin13.0.2) > % zsh -c 'function inf() { inf }; inf' > zsh: segmentation fault zsh -c 'function inf() { inf }; inf' > % Huh. I must be remembering something incorrectly. The limit was in place since sometime in 2000=C2=B9. But you might be building with the =E2=80=98--disable-max-function-depth=E2=80=99 configuration option. Otherwise the limit should be in place (it defaults to 1000). If the limit is in place, and the shell still crashes, it might be another issue, which I couldn't reproduce then. Regards, Frank For the record, I've tried this with an older development version of zsh: zsh-5.0.2-174-g8a70a98 =C2=B9 http://www.zsh.org/mla/workers/2000/msg01390.html