X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sat, 6 Jun 2009 10:49:24 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ASLR sometimes stops working on Vista with 1.7? [was: Re: 	Cygwin     1.7  release (was ...)]
Message-ID: <20090606084924.GI23519@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1244131746.30024.1318796263@webmail.messagingengine.com> <4A282063.9030804@users.sourceforge.net> <4A286B99.6020702@users.sourceforge.net> <20090605120936.GD23519@calimero.vinschen.de> <4A293237.2010102@cwilson.fastmail.fm> <20090605163510.GF23519@calimero.vinschen.de> <4A296778.2080507@cwilson.fastmail.fm> <20090605213012.GG23519@calimero.vinschen.de> <4A29B510.3020601@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4A29B510.3020601@gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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 Jun  6 01:15, Dave Korn wrote:
> Corinna Vinschen wrote:
> 
> > Not good.  I'm puzzled where this allocated 68K region is exactly coming
> > from, but it really looks like something which occurs in or near dlopen.
> > 
> > I'm going to debug this further tomorrow.  I guess that goes without
> > saying, but I'd be glad for any help.
> 
>   I'll just suggest that these problems can often be debugged more easily in
> windbg than gdb, what with gflags/appverifier heap tracking, !vad, !heap, and
> related commands.  The gflags FLG_HEAP_ENABLE_TAG_BY_DLL might come in handy here.

Right.  You might have noticed in my mail that I refer to WinDbg
already.  It has a couple of invaluable helpers.  !vprot is one of my
favorites, as well as the many available display formats in the memory
window.

This morning I woke up and suddenly knew what's going on.  It's the size
of a structure, which had a size of 320 bytes before.  Now it has a size
of 65596 bytes since the filename stored in it is now a potentially 32K
long wide character string.  The structure must be shrinked again.  I
guess I have a patch by tonight.


Stay tuned,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

