From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25209 invoked by alias); 8 Jun 2011 19:35:14 -0000 Received: (qmail 24999 invoked by uid 22791); 8 Jun 2011 19:35:14 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm6-vm0.bullet.mail.bf1.yahoo.com (HELO nm6-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 08 Jun 2011 19:34:46 +0000 Received: from [98.139.212.144] by nm6.bullet.mail.bf1.yahoo.com with NNFMP; 08 Jun 2011 19:34:45 -0000 Received: from [98.139.213.7] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 08 Jun 2011 19:34:45 -0000 Received: from [127.0.0.1] by smtp107.mail.bf1.yahoo.com with NNFMP; 08 Jun 2011 19:34:45 -0000 Received: from cgf.cx (cgf@173.48.46.160 with login) by smtp107.mail.bf1.yahoo.com with SMTP; 08 Jun 2011 12:34:44 -0700 PDT X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 1B47842804C for ; Wed, 8 Jun 2011 15:34:44 -0400 (EDT) Date: Wed, 08 Jun 2011 19:35:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: combination of bash and cmd.exe causes fatal error when used under CYGWIN=tty Message-ID: <20110608193441.GB7755@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110425140806.C10479D59FA@mail2.intersystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110425140806.C10479D59FA@mail2.intersystems.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00076.txt.bz2 On Mon, Apr 25, 2011 at 10:08:05AM -0400, Len Giambrone wrote: >Greetings. > >If I set CYGWIN=tty, then cygwin programs die with >*** fatal error - couldn't initialize fd 0 for /dev/ttyN > >Example: > >C:\cygwin\home\lgiambro>bash -c "cmd /c 'ls'" >????? 0 [main] ls 7440 C:\cygwin\bin\ls.exe: *** fatal error - couldn't initiali >ze fd 0 for /dev/tty7 >????? 0 [main] ls 7440 C:\cygwin\bin\ls.exe: *** fatal error - couldn't initiali >ze fd 0 for /dev/tty7 >Stack trace: >Frame???? Function? Args >00283918? 6102796B? (00283918, 00000000, 00000000, 00000000) >00283C08? 6102796B? (6117EC60, 00008000, 00000000, 61180977) >00284C38? 61004F1B? (611A82B0, 00000000, 61243B04, 00010000) >End of stack trace > >Corinna had mentioned that she was aware of the problem and looking for the cause in >http://cygwin.com/ml/cygwin/2010-09/msg00237.html > >Has any progress been made on this issue?? Does anyone know of a way >to get around it? This problem will eventually go away when Cygwin 1.7.10 is released and CYGWIN=tty goes away. If this is still a problem in mintty or some other terminal emulator then we'll look into it. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple