X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4F4B9FC2.3000404@prover.com> Date: Mon, 27 Feb 2012 16:22:42 +0100 From: Andres Martinelli User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Subject: 1.7.10/1.7.11: .Net programs started from a cygwin console may fail. Content-Type: multipart/mixed; boundary="------------030808020505000308070005" Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------030808020505000308070005 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 --------------030808020505000308070005 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 --------------030808020505000308070005 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 --------------030808020505000308070005--