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: [RFC] an alternative to rebasing


Steven,

On Fri, Aug 02, 2002 at 03:49:25PM -0400, Jason Tishler wrote:
> On Fri, Aug 02, 2002 at 03:14:03PM +0100, Steven O'Brien wrote:
> > I have done some simple tests that fail with cygwin1.dll-1.3.12-2,
> > but succeed with my patched dll. I am also running the gnome desktop
> > and core apps which depend on run-time loaded dlls to function and
> > that is OK. I would like package maintainers who would otherwise
> > need rebasing (Jason?) to try my patch and report results here if
> > they can find time.
> 
> I will try your patch out on Python first thing on Monday morning.
> Unfortunately, I seem to be having problems getting Python to fail to
> fork() due to rebase problems lately...

I'm sorry to report that your patch does not fix the following rebase
problem:

    http://sourceforge.net/tracker/?func=detail&atid=305470&aid=491107&group_id=5470

Specifically, I'm getting the following:

    $ make
    ...
    building 'gdbm' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -I. -I/tmp/python-2.2.1-1/./Include -I/usr/local/include -IInclude/ -c /tmp/python-2.2.1-1/Modules/gdbmmodule.c -o build/temp.cygwin-1.3.13-i686-2.2/gdbmmodule.o
C:\cygwin\tmp\python-2.2.1-1\build\python.exe: *** unable to remap C:\cygwin\bin\cygcrypto.dll to same address as parent -- 0x420000
      8 [main] python 1548 sync_with_child: child 2772(0x100) died before initialization with status code 0x1
   9652 [main] python 1548 sync_with_child: *** child state child loading dlls
error: Resource temporarily unavailable
make: *** [sharedmods] Error 1

If you wish, you can reproduce the problem yourself with the following:

    $ wget -nd http://www.python.org/ftp/python/2.2.1/Python-2.2.1.tgz
    $ tar -xzf Python-2.2.1.tgz
    $ cd Python-2.2.1
    $ configure
    $ make

The following (simpler) test case also fails:

    $ cat test.py 
    import os
    import _socket

    pid = os.fork()

    $ ./python test.py 
    C:\cygwin\tmp\python-2.2.1-1\build\python.exe: *** unable to remap C:\cygwin\bin\cygssl.dll to same address as parent -- 0x1A2F0000
          7 [main] python 2456 sync_with_child: child 2968(0x120) died before initialization with status code 0x1
       2838 [main] python 2456 sync_with_child: *** child state child loading dlls
    Traceback (most recent call last):
      File "test.py", line 4, in ?
        pid = os.fork()
    OSError: [Errno 11] Resource temporarily unavailable

Please let me know if I can help you in any way.  I truly want you to
succeed with your rebase alternative.

Thanks,
Jason

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