From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14058 invoked from network); 21 Dec 2007 18:51:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Dec 2007 18:51:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 64946 invoked from network); 21 Dec 2007 18:51:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Dec 2007 18:51:31 -0000 Received: (qmail 2014 invoked by alias); 21 Dec 2007 18:51:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24307 Received: (qmail 1995 invoked from network); 21 Dec 2007 18:51:28 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Dec 2007 18:51:28 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 6F3038058F54 for ; Fri, 21 Dec 2007 19:48:04 +0100 (CET) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Fri, 21 Dec 2007 19:48:03 +0100 (CET) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20071221185207.NYLH6054.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Fri, 21 Dec 2007 18:52:07 +0000 Received: from pws-pc ([82.6.96.116]) by aamtaout03-winn.ispmail.ntl.com with SMTP id <20071221185255.LNYY26699.aamtaout03-winn.ispmail.ntl.com@pws-pc> for ; Fri, 21 Dec 2007 18:52:55 +0000 Date: Fri, 21 Dec 2007 18:49:32 +0000 From: Peter Stephenson To: Zsh Subject: Re: 4.3.4-dev-6 Message-Id: <20071221184932.cab2d9a9.p.w.stephenson@ntlworld.com> In-Reply-To: <20071220205823.GD6125@scowler.net> References: <5951.1198159661@csr.com> <20071220205823.GD6125@scowler.net> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 20 Dec 2007 15:58:23 -0500 Clint Adams wrote: > > ftp://ftp.zsh.org/pub/development/zsh-4.3.4-dev-6.tar.gz > > This has been failing forever, but 24290 has made it less > ignorable. > > This occurs when being built chrooted by either a perl or bash script, > with output possibly redirected or piped to tee. > > ../../Test/A04redirect.ztst: starting. > *** /tmp/zsh.ztst.out.23912 Thu Dec 20 15:28:39 2007 > --- /tmp/zsh.ztst.tout.23912 Thu Dec 20 15:28:39 2007 > *************** > *** 0 **** > --- 1 ---- > + foo > Test ../../Test/A04redirect.ztst failed: output differs from expected as shown above for: > print foo >&- > Was testing: '>&-' redirection > ../../Test/A04redirect.ztst: test failed. I suggest breakpointing where REDIR_CLOSE is handled around line 2708 of exec.c in such an environment (which I don't have) to see what's happening. I suppose it's just vaguely possible that stdin has been set up as a multio for some reason: addfd() is the function that adds to a multio and closemn() is where they are actually spawned (it's quite badly named). I'm likely to be offline for most of the next couple of weeks. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/