X-Recipient: archive-cygwin@delorie.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 <cygwin@cwilson.fastmail.fm>
Reply-To: Charles Wilson <cygwin@cwilson.fastmail.fm>
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@cygwin.com
Subject: Re: cygheap base mismatch detected
References: <4F4E7CC8.9090804@cwilson.fastmail.fm> <20120301105139.GF2257@calimero.vinschen.de> <CAB8Xom9nR9g=R_uzzZM5D+OHZ3wQhkJ+F5tAKBL0xL60iTc9rA@mail.gmail.com> <20120301121442.GG2257@calimero.vinschen.de> <4F4FFBD8.1080803@cwilson.fastmail.fm> <20120302085943.GB14404@calimero.vinschen.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

