Can't reliably redirect standard output from C# program in recent Cygwin

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Sun Mar 11 01:33:00 GMT 2012


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



More information about the Cygwin mailing list