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

2003-03-24 Thread Mark Moraes
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(0x72)
!= 0x73
  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*
-rwxrwxrwx1 Administ Users  168960 Mar 19 12:35 /usr/bin/cygssl.dll
-rwxrwxrwx1 Administ Users  180736 Mar 19 12:25 /usr/bin/cygssl-0.9.7.dll
-rwxrwxrwx1 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
#! /usr/bin/env python

import socket
import os

if __name__ == '__main__':
fw, fr = os.popen2(wc -l)
fw.write(hello\nworld\n)
fw.flush()
fw.close()
s = fr.read()
print `s`

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

1.3.12 bug: st_mode of file changes to directory after unlink?

2002-09-30 Thread Mark Moraes

Hi.

If I open a file for read/write and then
unlink it (the old Unix idiom for temporary
files), fstat() on the file's fd shows
that st_mode has changed from regular
file to directory.

Regards,
Mark.

: ASHOKA ; ./xx
/tmp/bt.XX
before unlink: mode 0x81a4 fmt 0x8000 size 0
after unlink: mode 0x416d fmt 0x4000 size 0



xx.c
Description: Binary data


cygcheck.out
Description: Binary data

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