This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: python script recently started getting "unable to remap" error on cygssl from popen2


> 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 at exposure dot org dot 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]