Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <00f501c2f246$79146f10$ab474e51@ellixia>
From: "Elfyn McBratney" <elfyn@exposure.org.uk>
To: "cygwin" <cygwin@cygwin.com>, "Mark Moraes" <moraes@computer.org>
References: <00a001c2f243$c336bbf0$0a01a8c0@ashoka>
Subject: Re: python script recently started getting "unable to remap" error on cygssl from popen2
Date: Mon, 24 Mar 2003 20:41:14 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300

> Since 1.3.19, I've been seeing this error sporadically
> from a script that had been working fine till then.
> It only appears with ssl so far -- various other DLLs
> seem to work fine.  (removing the call to import socket
> removes the problem).
>
> This is under Windows 2000, SP3.
>
> Any ideas -- the archives have references to rebasing
> libraries, any pointers to how I can do that (and whether
> this needs to be done to python's _socket.dll or to
> cygssl?)
>
> : ashoka ; python test-remap-cygssl-problem.py
> C:\opt\gnu\cygwin\bin\python2.2.exe: *** unable to remap
C:\opt\gnu\cygwin\bin\cygssl-0.9.7.dll to same address as parent(0x720000)
> != 0x730000
>       8 [main] python 1440 sync_with_child: child 1612(0x238) died before
initialization with status code 0x1
>    4275 [main] python 1440 sync_with_child: *** child state child loading
dlls
> Traceback (most recent call last):
>   File "test-remap-cygssl-problem.py", line 8, in ?
>     fw, fr = os.popen2("wc -l")
>   File "/usr/lib/python2.2/os.py", line 569, in popen2
>     stdout, stdin = popen2.popen2(cmd, bufsize)
>   File "/usr/lib/python2.2/popen2.py", line 144, in popen2
>     inst = Popen3(cmd, 0, bufsize)
>   File "/usr/lib/python2.2/popen2.py", line 40, in __init__
>     self.pid = os.fork()
> OSError: [Errno 11] Resource temporarily unavailable
> Exit 1

Mark,

Rebasing all of your Cygwin DLL's *should* fix this. If you don't have the
rebase package installed install it via setup.exe and follow this (taken
from the rebase README):

Use the following procedure to rebase your entire system:

    1. shutdown all Cygwin processes
    2. start bash (do not use rxvt)
    3. execute rebaseall (in the bash window)

Once you've follwed these steps things should work.


Regards,

Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

