delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/22/23:28:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 22 Apr 2003 23:29:02 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CVS head bash problem
Message-ID: <20030423032902.GB30533@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <b84q3m$drl$1 AT main DOT gmane DOT org> <20030423015402 DOT GB38081907 AT hpn5170x> <b84upp$qb5$1 AT main DOT gmane DOT org> <b84vjb$sqd$1 AT main DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <b84vjb$sqd$1@main.gmane.org>
User-Agent: Mutt/1.4.1i

On Tue, Apr 22, 2003 at 11:00:51PM -0400, Rolf Campbell wrote:
>Rolf Campbell wrote:
>>Pierre A. Humblet wrote:
>>
>>>On Tue, Apr 22, 2003 at 09:27:08PM -0400, Rolf Campbell wrote:
>>>
>>>>I've been using a cvs head cygwin1.dll that I compiled on Friday, and 
>>>>I've noticed something a little strange.  Occationally, when I run a 
>>>>bash command, bash runs it in the backgroud (and I didn't have a & at 
>>>>the end).  And when the sub-process ends, sometimes bash continues to 
>>>>run correctly, sometimes everything ends (rxvt window exits).
>>>>
>>>
>>>This sounds a lot like
>>>http://cygwin.com/ml/cygwin/2003-04/msg00286.html
>>>What's your system?
>>>
>>>Pierre
>>>
>>Yes, I think that's the exact same problem that I'm having.  I'm running 
>>Win2000.  So, it looks like bash is getting an EOF (sometimes) when the 
>>program is run in the background.  You have your's set not to logout on ^D?
>>-Rolf
>
>I just tried a simple test, created about 100 lines of text, all of them 
>"cat hhhh".  Then copied them into the clipboard and pasted them into an 
>NT shell running bash.  I've appended the important part of the output. 
> At the end of this, bash is dead (still shows up in ms-task manager, 
>but doesn't respond to anything (including ^C).  I was able to reproduce 
>this in rxvt as well but it took much longer, and ^C sort-of worked. 
>After the ^C, I got back to a prompt, but then I tried to run "ps" and 
>rxvt immediately exited.  I have been unable to reproduce using strace.

A few debugging possibilities spring to mind here.

Try running it under strace with a very large buffer size in (the -b
option).  Attach to the hung process in strace or gdb.

Does it also have problems with cygwin snapshots?  If not, then we need
to see how you've configured your version of cygwin, what version of gcc
you use, etc.

If this is just a cvs thing (and that isn't really clear) then the old
popular binary search through cvs might be useful to find out what
change caused the problem.

Also, send cygcheck output (as an attachment).  I suspect that you may
be using CYGWIN=tty but we don't know what your setup is.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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