delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/24/15:17:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <00a001c2f243$c336bbf0$0a01a8c0@ashoka>
Reply-To: "Mark Moraes" <moraes AT computer DOT org>
From: "Mark Moraes" <markmoraes AT yahoo DOT com>
To: <cygwin AT cygwin DOT com>
Subject: python script recently started getting "unable to remap" error on cygssl from popen2
Date: Mon, 24 Mar 2003 12:26:54 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

------=_NextPart_000_009D_01C2F200.A77DB370
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi.

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

Thanks,
    Mark.

: 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

: ashoka ; ls -lt /usr/bin/*ssl*
-rwxrwxrwx    1 Administ Users      168960 Mar 19 12:35 /usr/bin/cygssl.dll
-rwxrwxrwx    1 Administ Users      180736 Mar 19 12:25 /usr/bin/cygssl-0.9.7.dll
-rwxrwxrwx    1 Administ Users      318464 Mar 19 12:25 /usr/bin/openssl.exe
: ashoka ; sum /usr/bin/*ssl*
17190   177 /usr/bin/cygssl-0.9.7.dll
63625   165 /usr/bin/cygssl.dll
34128   311 /usr/bin/openssl.exe

------=_NextPart_000_009D_01C2F200.A77DB370
Content-Type: text/plain;
	name="test-remap-cygssl-problem.py"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="test-remap-cygssl-problem.py"

#! /usr/bin/env python=0A=
=0A=
import socket=0A=
import os=0A=
=0A=
if __name__ =3D=3D '__main__':=0A=
    fw, fr =3D os.popen2("wc -l")=0A=
    fw.write("hello\nworld\n")=0A=
    fw.flush()=0A=
    fw.close()=0A=
    s =3D fr.read()=0A=
    print `s`=0A=


------=_NextPart_000_009D_01C2F200.A77DB370
Content-Type: text/plain; charset=us-ascii

--
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/
------=_NextPart_000_009D_01C2F200.A77DB370--

- Raw text -


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