delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/24/17:53:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_KM,TW_MK
X-Spam-Check-By: sourceware.org
X-Trace: 837529108/mk-filter-2.mail.uk.tiscali.com/B2C/$THROTTLED_DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.68.98.63/None/drstacey AT tiscali DOT co DOT uk
X-SBRS: None
X-RemoteIP: 79.68.98.63
X-IP-MAIL-FROM: drstacey AT tiscali DOT co DOT uk
X-SMTP-AUTH:
X-Originating-Country: GB/UNITED KINGDOM
X-MUA: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
X-IP-BHB: Once
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApMBALW6AVFPRGI//2dsb2JhbAANN75ggxEBAQEEOEARCxgJFg8JAwIBAgE3AQ0TCAEBiCKqM5NejVKDKQOXKIQ8jWg
Message-ID: <5101BB68.4030302@tiscali.co.uk>
Date: Thu, 24 Jan 2013 22:53:28 +0000
From: David Stacey <drstacey AT tiscali DOT co DOT uk>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ruby rebase / remap problems
References: <50FF14FC DOT 1010406 AT tiscali DOT co DOT uk>
In-Reply-To: <50FF14FC.1010406@tiscali.co.uk>
X-IsSubscribed: yes
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 22/01/2013 22:38, David Stacey wrote:
> I have a 'kitchen sink' Cygwin installation from 2013-01-14. This 
> gives 'rebase' errors when running the following command (taken from a 
> ./configure script):
>
> $ ruby -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)'
> checking for rb_hash_foreach()...       0 [main] ruby 3064 
> child_info_fork::abort: unable to remap transdb.so to same address as 
> parent (01090000) - try running rebaseall
>       1 [main] ruby 1268 child_info_fork::abort: unable to remap 
> etc.so to same address as parent (010A0000) - try running rebaseall
>       1 [main] ruby 3748 child_info_fork::abort: unable to remap 
> transdb.so to same address as parent (01090000) - try running rebaseall
>       1 [main] ruby 3148 child_info_fork::abort: unable to remap 
> etc.so to same address as parent (010A0000) - try running rebaseall
>       1 [main] ruby 472 child_info_fork::abort: unable to remap 
> transdb.so to same address as parent (01090000) - try running rebaseall
>       1 [main] ruby 1648 child_info_fork::abort: unable to remap 
> etc.so to same address as parent (010A0000) - try running rebaseall
>
> The 'rubyrebase' shell script (submitted to this list about a year 
> ago) came to my rescue:
> http://www.cygwin.com/ml/cygwin/2012-02/msg00701.html

I may have been a little premature here - rubyrebase appeared to fix the 
immediate issue above, but in doing so it moved my rebase problem 
somewhere else :-(

Forgive my naive understanding of this, but I gather that rebaseall 
allocates a portion of memory for each Cygwin dll. Presumably, this 
bucket of memory is finite, so is it possible that Cygwin could ever 
grow to a size where it effectively runs out of rebasing address space - 
particularly on XP, which doesn't support Address Space Layout 
Randomization?

I ask this for two reasons:

1. If I install just ruby and g++ into a fresh Cygwin installation, then 
ruby works fine. I add more packages, do a rebaseall, and still ruby 
runs fine. Again, I add more packages, followed by a rebaseall, and ruby 
is OK. I only get the rebase / remap errors after installing absolutely 
everything. So we either have a clash with another Cygwin package, or we 
have hit some finite resource problem.

2. A 'kitchen sink' installation from 2012-12-19 works fine, so 
(presumably) it is something that has gone into Cygwin in the last month 
that has triggered this problem. In that time, the GStreamer packages 
have been added to Cygwin, and these have introduced over 200 dlls. 
[Although I pick on GStreamer, this is no criticism of Yaakov or his 
excellent work]

All of the above is complete hypothesis, and could be totally wrong. But 
to my rather naive understanding of the rebase problem it seems 
feasible. So, has Cygwin simply outgrown Windows XP?

Dave.



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