From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16214 invoked by alias); 29 Sep 2017 11:36:50 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41784 Received: (qmail 28392 invoked by uid 1010); 29 Sep 2017 11:36:50 -0000 X-Qmail-Scanner-Diagnostics: from mx1.redhat.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.132.183.28):SA:0(-6.9/5.0):. Processed in 3.652427 secs); 29 Sep 2017 11:36:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: kdudka@redhat.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 20B2D81DEA Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=kdudka@redhat.com From: Kamil Dudka To: Peter Stephenson Cc: zsh-workers@zsh.org, Nicolas =?ISO-8859-1?Q?Despr=E8s?= Subject: Re: Crash when completion script call itself. Date: Fri, 29 Sep 2017 13:27:58 +0200 Message-ID: <4913136.yYypKkW7sH@kdudka-nb> In-Reply-To: <20170929121008.3da15b34@pwslap01u.europe.root.pri> References: <20170929121008.3da15b34@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 29 Sep 2017 11:27:46 +0000 (UTC) On Friday, September 29, 2017 1:10:08 PM CEST Peter Stephenson wrote: > On Sat, 30 Sep 2017 00:03:53 +1300 >=20 > Nicolas Despr=E8s wrote: > > On Fri, Sep 29, 2017 at 11:45 PM, Peter Stephenson > > =20 > > > wrote: > > >=20 > > > ...come to think of it, slightly more helpfully, you can at least see > > > how far it gets on your system... > > >=20 > > > i=3D0; fn() { print $(( ++i )); fn; }; fn > >=20 > > 767 and then crash. Maybe setting it to 500 would be enough? I think I > > remember that Python limit is 500 too. >=20 > I've no personal objection to reducing it to 500 by default (and I'll > probably add a variable anyway), but I'd like to know if anyone has > strong feelings --- given this is a bit of a kludge anyway and this is > based on a sample of one. >=20 > pws Recompiling zsh with the -fconserve-stack option of GCC made the default=20 nesting limit 1000 reachable again on Fedora: https://src.fedoraproject.org/rpms/zsh/c/2524ac47 But decreasing the limit to 500 sounds reasonable... Kamil