X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_YG X-Spam-Check-By: sourceware.org Message-ID: <4F50FF4B.1050705@cwilson.fastmail.fm> Date: Fri, 02 Mar 2012 12:11:39 -0500 From: Charles Wilson Reply-To: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygheap base mismatch detected References: <4F4E7CC8 DOT 9090804 AT cwilson DOT fastmail DOT fm> <20120301105139 DOT GF2257 AT calimero DOT vinschen DOT de> <20120301121442 DOT GG2257 AT calimero DOT vinschen DOT de> <4F4FFBD8 DOT 1080803 AT cwilson DOT fastmail DOT fm> <20120302085943 DOT GB14404 AT calimero DOT vinschen DOT de> In-Reply-To: <20120302085943.GB14404@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 3/2/2012 3:59 AM, Corinna Vinschen wrote: > On Mar 1 17:44, Charles Wilson wrote: >> Is there some workaround that could be used? > > Rebase pghook.dll. Oh, well, yeah -- that would work if I were allowed to do so. However, remember "paranoid corporate IT policies"? Avecto Privilege Guard is actually a product that $MYCORP installed to allow them even finer-grained controlled over "what I'm allowed to do with my office PC" than traditional Windows domain security policies can manage. Including such things as "interfering with Avecto Privilege Guard" by modifying some of its DLLs... > Call "cmd /c cygcheck". $ cmd /c cygcheck -cd cygwin Cygwin Package Information Package Version cygwin 1.7.11-1 Yeah, that works. Thanks. >> really trying to initialize and *use* cygwin1.dll facilities, is it? So, >> perhaps cygwin1.dll/dcrt0 could ignore the fact that it has been >> rebased, when dynamically loaded? (or perhaps, only when dynloaded by >> some app named 'cygcheck.exe'). > > That's kind of tricky. When the DLL is loaded into the wrong address, > then there are pointers in the processes startupinfo which potentially > point into nirvana. That affects any process. Yeah, I can see that. AFAIK, cygcheck is the only official tool that dynloads cygwin1.dll, so it is likely that I will only ever see /this/ particular problem (cygwin1.dll/dcrt0.c issues mismatch warning after cygwin1.dll is dynloaded by non-cygwin application) with cygcheck. Looks like I'm going to alias cygcheck to 'cmd /c c:/cygwin/bin/cygcheck'... -- Chuck -- 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