delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/27/10:24:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F4BA00E.2020806@prover.com>
Date: Mon, 27 Feb 2012 16:23:58 +0100
From: Andres Martinelli <andres DOT martinelli AT prover DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version: 1.0
To: <cygwin AT cygwin DOT com>
Subject: 1.7.10/1.7.11: .Net programs started from a cygwin console may fail.
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--------------090207050106050306050100
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 8bit

Hi Cygwin,

Many .Net programs that use to run correctly from a cygwin 1.7.9 console 
started throwing exceptions after updating to versions 1.7.10/1.7.11. I 
have noticed this problem on machines running Windows XP and Vista (32bits).

I attach a very small example that triggers the bug. The example is 
written in C#, and requires the .Net framework versions 2.0 or 3.5.

How to reproduce:

1) Compile the example with
         csc bug.cs

     The c# compiler (csc), can be usually found in
         C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe
     or C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe

2) Run the resulting bug.exe from a cygwin 1.7.10/1.7.11 console. It 
throws an exception.

3) Run bug.exe from a native windows console (or a cygwin 1.7.9 
console). It runs without producing any output, and without throwing any 
exceptions.

Be aware that the bug is not triggered if the example is compiled with 
the .Net framework 4.0.

Best regards,
Andrés Martinelli


--------------090207050106050306050100
Content-Type: text/plain; charset="UTF-8"; name="bug.cs"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cs"

77u/dXNpbmcgU3lzdGVtLlhtbDsNCnVzaW5nIFN5c3RlbS5YbWwuU2NoZW1h
Ow0KdXNpbmcgU3lzdGVtLlhtbC5TZXJpYWxpemF0aW9uOw0KDQpjbGFzcyBQ
cm9ncmFtIHsNCiAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKSB7
DQogICAgWG1sU2VyaWFsaXplciBzZXJpYWxpemVyID0gbmV3IFhtbFNlcmlh
bGl6ZXIodHlwZW9mKFNpbXBsZSkpOw0KICB9DQp9DQoNCnB1YmxpYyBjbGFz
cyBTaW1wbGUgOiBJWG1sU2VyaWFsaXphYmxlIHsNCiAgI3JlZ2lvbiBJWG1s
U2VyaWFsaXphYmxlIE1lbWJlcnMNCiAgcHVibGljIFhtbFNjaGVtYSBHZXRT
Y2hlbWEoKSB7IHJldHVybiBudWxsOyB9DQogIHB1YmxpYyB2b2lkIFJlYWRY
bWwoWG1sUmVhZGVyIHJlYWRlcikgeyB9DQogIHB1YmxpYyB2b2lkIFdyaXRl
WG1sKFhtbFdyaXRlciB3cml0ZXIpIHsgfQ0KICAjZW5kcmVnaW9uDQp9


--------------090207050106050306050100
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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