X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+pF4XwVeRIqLJHNqCQlOgL
Date: Sat, 10 Mar 2012 20:33:39 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Can't reliably redirect standard output from C# program in recent Cygwin
Message-ID: <20120311013339.GA32518@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <004e01ccfd70$c69af3f0$53d0dbd0$@motionview3d.com> <005c01ccfd79$6341f980$29c5ec80$@motionview3d.com> <loom.20120309T021648-138@post.gmane.org> <007201ccfe25$130065e0$390131a0$@motionview3d.com> <20120309195247.GB18960@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120309195247.GB18960@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Fri, Mar 09, 2012 at 08:52:47PM +0100, Corinna Vinschen wrote:
>On Mar  9 18:47, James Johnston wrote:
>> I can reproduce this:
>> 
>> C:\cygwin\bin>perl -e 'print "abc";'
>> abc
>> C:\cygwin\bin>perl -e 'print "abc";' | more
>> abc
>> 
>> C:\cygwin\bin>perl -e 'print "abc";' | more
>> abc
>> 
>> C:\cygwin\bin>perl -e 'print "abc";' | more
>> 
>> C:\cygwin\bin>perl -e 'print "abc";' | more
>> 
>> C:\cygwin\bin>perl -e 'print "abc";' | more
>> 
>> I also noticed that the failures took 1 or 2 seconds to run - a significant
>> delay.  The successful runs completed "instantly".
>
>The delay comes from writing a stackdump.
>
>I don't quite grok the stackdump, though.  It seems to imply that the
>fh->init call dtable::init_std_file_from_handle failed, but I didn't
>manage to catch the problem in GDB so far.

Corinna did manage to find where it was failing and I managed to fix
this particular problem.  It should be ok in the latest snapshot.

I am dubious that this has anything to do with redirecting output from a
C# program though.

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

