From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3135 invoked by alias); 19 Jul 2013 21:28:00 -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: 31542 Received: (qmail 22835 invoked from network); 19 Jul 2013 21:27:54 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=m5m6r09xgCuo/Wvu94Uepp9PaDUcgqCBPROMlv/OOM8=; b=epYpOzUvlSz0UEBekgWs77KWI+/X5zm54tQ7T92p8BUoXrVTOjJWw1k8PL5eNKQWFQ IdRJaOzmE/42A7JfedpHmbdFQPiCACWwfOisFsKlXsAH6P1+2p+p3HddhuissEoBTtfx l+hpSAz5BlZg1SQpaUXz4pmc97Na1KS3mYvGJeFHwEu0OjHaHnPih7c7V7w4xyCjIvv9 ZTMKzNr/600QYkR+zIvpZ4LviAr+OijYZXvW55U9JVgRTt9Y8Qg8KGFp0zUz2NnMfTvW LRuhzCvusgo//nSA3ZsaR4DYPxnfwiEnbwk6+5RgROQVr7wl25IBxjI7/rdK3lT0ienF UXtQ== X-Received: by 10.194.60.5 with SMTP id d5mr13621574wjr.26.1374267534974; Fri, 19 Jul 2013 13:58:54 -0700 (PDT) Date: Fri, 19 Jul 2013 21:58:53 +0100 From: Stephane Chazelas To: Peter Stephenson , zsh-workers@zsh.org Subject: Re: bug with eval, proc-subst and pipes Message-ID: <20130719205853.GB8712@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , zsh-workers@zsh.org References: <20130715133525.GA7694@chaz.gmail.com> <130715100624.ZM14123@torch.brasslantern.com> <20130716215540.22d88a27@pws-pc.ntlworld.com> <130717000027.ZM15643@torch.brasslantern.com> <20130717201733.2c0b029b@pws-pc.ntlworld.com> <20130718095741.3f54725f@pwslap01u.europe.root.pri> <20130718102227.527429bd@pwslap01u.europe.root.pri> <20130718123210.054f1ea1@pwslap01u.europe.root.pri> <20130719200159.GA8712@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130719200159.GA8712@chaz.gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) 2013-07-19 21:01:59 +0100, Stephane Chazelas: [...] > See how fd 13 is closed in the process that execs ls and fd 11 > in its parent shortly before the fork. [...] According to gdb, fd 11 is closed by zclose(subsh_close) in execcmd() and fd 13 by closedumps() (the missing link to compinit?). (gdb) p *dumps $2 = {next = 0x0, dev = 64768, ino = 66808, fd = 13, map = 0x7f0d4e833000, addr = 0x7f0d4e833000, len = 125304, count = 1, filename = 0x13ae650 "/usr/share/zsh/functions/Completion/Base.zwc"} It sounds like those fd are closed too many times. I don't have much time to investigate any further. Cheers, Stephane