X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.9 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_DNSBL_BUMP,KHOP_THREADED,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_SOFTFAIL,TW_YW
X-Spam-Check-By: sourceware.org
Date: Sat, 23 Jun 2012 01:42:07 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <551322972.20120623014207@mtu-net.ru>
To: Jamie Briggs <jamie.briggs@shaw.ca>, cygwin@cygwin.com
Subject: Re: cygwin 1.7.15-1 - .NET console output locks up mintty
In-Reply-To: <20120622181032.GA29688@shaw.ca>
References: <20120622022137.GA24472@shaw.ca> <31937321.20120622144920@mtu-net.ru> <20120622181032.GA29688@shaw.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings, Jamie Briggs!

>> > I have noticed a problem with the "cygwin: The Unix emulation engine" package,
>> > version 1.7.15-1.  Output from .NET console does not show up, the console
>> > (mintty) becomes unresponsive and must be killed.  
>> 
>> > Reverting back to 1.7.14-2 fixes the problem.
>> 
>> > The problem can be demonstrated using a HelloWorld.cs containing:
>> 
>> >    using System;
>> 
>> >    public class Program
>> >    {
>> >           static void Main(string[] args)
>> >          {
>> >                Console.WriteLine("Hello");
>> >          }
>> >    }
>>    
>> > compiling with:   csc HelloWorld.cs
>> 
>> > and then running:  ./HelloWorld.exe
>> 
>> > This results in no output and an unresponsive mintty under 1.7.15-1.  If
>> > "cmd.exe" is ran on top of bash and then HelloWorld is ran there it does the
>> > same thing.  After reverting to 1.7.14-2 everything is working normally again.  
>> 
>> > I am building the executables with VS2010 and running on 64bit Windows7.  I am
>> > attaching my cygcheck.out file.
>> 

> Earnie Boyd asked:

>> Does the result change if you install the latest snapshot of
>> cygwin1.dll from cygwin.com/snapshots?

> Yes, replacing cygwin1.dll with the latest snapshot, cywgin1-20120619.dll,
> makes the observed problem go away.

> James Johnson asked:

>> Try both of the following:
>> 
>> 1.  Update to latest development snapshot, should resolve the bug you are
>> primarily observing.
>> 2.  Set the CYGWIN environment variable to pipe_byte.  Cygwin now uses
>> message pipes by default, which are not compatible with .NET Framework and
>> Visual C++ runtimes (not currently documented anywhere in Cygwin or MS
>> documentation)

> 1. I'm not sure how to do that.

Run CMD.EXE, say "SET CYGWIN=pipe_byte", run bash -l from the same prompt, and
try to reproduce your issue.

> 2. Running "export CYGWIN=pipe_byte" and then the .NET HelloWorld program still
>    exhibited the problem.

The CYGWIN environment variable is a configuration for cygwin1.dll, it's "a bit"
late to define it, when you already have any cygwin1.dll dependent application
running.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 23.06.2012, <01:39>

Sorry for my terrible english...


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

