From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2907 invoked by alias); 27 Apr 2012 07:37:41 -0000 Received: (qmail 31121 invoked by uid 22791); 27 Apr 2012 07:37:16 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 27 Apr 2012 07:37:01 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 5FAD02C5714; Fri, 27 Apr 2012 09:36:59 +0200 (CEST) Date: Fri, 27 Apr 2012 07:37:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: peflags warning and tsaware flags Message-ID: <20120427073659.GK25385@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20120426195724.GC28119@calimero.vinschen.de> <87d36uz195.fsf@Rainer.invalid> <4F9A0DE4.7040008@cygwin.com> <87ty054szm.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87ty054szm.fsf@Rainer.invalid> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-04/txt/msg00627.txt.bz2 On Apr 27 07:57, Achim Gratz wrote: > Larry Hall (Cygwin) writes: > > Does this help? > > Thanks, I've been reading this before. Tentatively I concluded that all > Cygwin executables should have the +tsaware set, I just wanted to make > sure that there aren't some that I would break if I do this. To the contrary. Originally we didn't care for the tsaware flag at all, up to the point when we encountered that bash just crashed on a TS-enabled 2008 Server. After some debugging I found that, on a TS-enabled machine, the system loads an additional DLL if an application is not marked as tsaware. I don't know what this DLL is doing exactly, but apparently it performs certain tests on the executable to search for possible incompatibilities of an application and then changes the system behaviour to match the application's (or the system's) expectations. Unfortunately it turned out that the DLL could also leave the process in a broken state. In case of bash it changed the page protection of parts of the .text segment to non-executable, which then resulted in a SEGV. I opened a support case at Microsoft, but it has been rejected. So, adding the tsaware flag to Cygwin executables might not help, but should never hurt. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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