www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FB_WORD1_END_DOLLAR,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4A296030.4000702@users.sourceforge.net> |
Date: | Fri, 05 Jun 2009 13:13:04 -0500 |
From: | "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ASLR sometimes stops working on Vista with 1.7? [was: Re: Cygwin 1.7 release (was ...)] |
References: | <1244131746 DOT 30024 DOT 1318796263 AT webmail DOT messagingengine DOT com> <4A282063 DOT 9030804 AT users DOT sourceforge DOT net> <4A286B99 DOT 6020702 AT users DOT sourceforge DOT net> <20090605120936 DOT GD23519 AT calimero DOT vinschen DOT de> <4A293237 DOT 2010102 AT cwilson DOT fastmail DOT fm> <20090605163510 DOT GF23519 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20090605163510.GF23519@calimero.vinschen.de> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 05/06/2009 11:35, Corinna Vinschen wrote: > Here's another thought: > > I examined the address layout of the perl process again, and it struck > me as weird that the base addresses of all the DLLs which get dynamically > loaded by perl are so near together. It looks like the problem is > actually tightened by the order in which the DLLs are rebased by rebaseall, > and the order in which the DLLs are loaded into the running process. > Some perl DLL (Dumper.dll?) allocates additional memory and that's right > after it's own image. That's where Cwd.dll is based to. Cwd.dll gets > rebased and ... poof. > > What I did then was to change the offset to rebaseall: > > ash$ rebaseall -o 0x20000 (default is 0x10000) > > Then I reinstalled /bin/cyggmp-3.dll and reran cygport. This time > it ran fine. This is still w/o ASLR flags. > > In this configuration, I can reproduce running cygport successfully > every time. Alright, I tried a few combinations; finally "-b 0x61000000 -d -o 0x20000" (IOW descending from cygwin1's base) got autotools (and KDE4, which was also suffering heavily from this) working again. Mind you, that leaves my last dll at 0x189f0000, and I'm still not finished with KDE yet. I'm sure more work is needed on this, but in the meantime this workaround seems to do the job. Thanks! Yaakov -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |