X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0	tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4E70D768.8050508@acm.org>
Date: Wed, 14 Sep 2011 09:33:44 -0700
From: David Rothenberger <daveroth@acm.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: plotting from octave: address space already occupied, fork aborts
References: <loom.20110914T045158-624@post.gmane.org> <4E703F00.8020101@gmail.com> <4E709C95.3070600@cs.utoronto.ca>
In-Reply-To: <4E709C95.3070600@cs.utoronto.ca>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
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 9/14/2011 5:22 AM, Ryan Johnson wrote:
> There is some evidence [1] that flagging cygwin .exe as large address
> aware and rebasing all libraries (excepting cygwin1.dll?) into high
> addresses makes it immune to ASLR problems (the latter apparently only
> mucks with low addresses), but I don't know if anybody has ever tested
> it on octave. Emacs broke in nasty ways when marked large address-aware
> [2], though the problem has since been fixed [3].
> 
> [1] http://cygwin.com/ml/cygwin-developers/2011-06/msg00002.html
> [2] http://cygwin.com/ml/cygwin/2011-08/msg00153.html
> [3] http://cygwin.com/ml/cygwin/2011-08/msg00312.html

While it was true that DLLs could be rebased above 0x80000000, this is
no longer true [1]. The Cygwin DLL uses the high addresses for the heap
now. Still, marking all .exe files as large-address aware does help,
since it allows the heap to go into high addresses, leaving more room
for the DLLs.

[1] http://cygwin.com/ml/cygwin/2011-08/msg00066.html

-- 
David Rothenberger  ----  daveroth@acm.org

Creditor, n.:
        A man who has a better memory than a debtor.

--
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

