From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16544 invoked from network); 18 Sep 2009 09:48:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 18 Sep 2009 09:48:28 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 96320 invoked from network); 18 Sep 2009 09:48:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Sep 2009 09:48:24 -0000 Received: (qmail 27102 invoked by alias); 18 Sep 2009 09:48:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27280 Received: (qmail 27073 invoked from network); 18 Sep 2009 09:48:21 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Sep 2009 09:48:21 -0000 Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by bifrost.dotsrc.org (Postfix) with ESMTP id 2C0E28026E39 for ; Fri, 18 Sep 2009 11:48:14 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 49460130F; Fri, 18 Sep 2009 11:48:13 +0200 (CEST) From: Jim Meyering To: zsh-workers@sunsite.dk Subject: latest from CVS segfaults when FD ulimit is set too low Date: Fri, 18 Sep 2009 11:48:13 +0200 Message-ID: <87iqfgwplu.fsf@meyering.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9814/Thu Sep 17 19:17:50 2009 on bifrost X-Virus-Status: Clean Hello, I was surprised to see zsh segfault. I confirmed that it happens also with the latest from CVS. Here's a nearly minimal reproducer (same with ulimit -n 12): $ printf '_src_etc_profile_d() { f=; }\n_src_etc_profile_d\n' > k $ Src/zsh -f -c '( . ./k; ulimit -n 7 && exec 0