delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/14/12:34:27

X-Recipient: archive-cygwin AT delorie DOT 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 AT acm DOT 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 AT cygwin DOT com
Subject: Re: plotting from octave: address space already occupied, fork aborts
References: <loom DOT 20110914T045158-624 AT post DOT gmane DOT org> <4E703F00 DOT 8020101 AT gmail DOT com> <4E709C95 DOT 3070600 AT cs DOT utoronto DOT ca>
In-Reply-To: <4E709C95.3070600@cs.utoronto.ca>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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 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 AT acm DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019