delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/07/06:25:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 7 Sep 2010 12:25:04 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: TCL exec kills its owning tty (was: Unable to initialize fd 0 for /dev/tty1)
Message-ID: <20100907102504.GN16534@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C855E65 DOT 1060907 AT ece DOT cmu DOT edu> <4C86046F DOT 2070402 AT ece DOT cmu DOT edu>
MIME-Version: 1.0
In-Reply-To: <4C86046F.2070402@ece.cmu.edu>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sep  7 11:22, Ryan Johnson wrote:
>  On 9/6/2010 11:34 PM, Ryan Johnson wrote:
> >The last couple days I've gotten some really strange errors.
> >Sometimes I'll alt-tab to an xterm window and start typing, only
> >to have it disappear at the first keystroke. Sometimes `emacs -nw'
> >will get hit instead, leaving both emacs and the xterm pretty much
> >unusable. I haven't been able to get a stack trace
> I can reproduce this bug reliably with both 1.7.7 and 1.7.6 versions
> of cygwin1.dll (which makes me suspect the problem is not there).

Actually, this is a Cygwin bug.  I can reproduce it and I can
only reproduce it starting with Cygwin 1.7.6, which introduced a
change in the way ttys are handled under the hood.  Apparently  I
managed to break something along the line.

> $ echo 'exec ls' > tty-killer; tclsh tty-killer &
> 
> Running the script in the foreground, passing it as a -c argument to
> bash, or piping it into tclsh, does *not* expose the bug.

Unfortunately it also doesn't happen under strace.  So, still digging
for the culprit.  Stay tuned...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019