delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/21/01:27:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_CG,TW_GF,TW_GL,TW_GQ,TW_GX,TW_HD,TW_QR,TW_XC,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20110421010657.GA24483@ednor.casa.cgf.cx>
References: <20110421010657 DOT GA24483 AT ednor DOT casa DOT cgf DOT cx>
Date: Thu, 21 Apr 2011 07:26:51 +0200
Message-ID: <BANLkTimTDrKSMio5W2=gixYBK=vfODsaXQ@mail.gmail.com>
Subject: Re: rebaseall rebasing dlls into cygwin address range?
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Thu, Apr 21, 2011 at 3:06 AM, Christopher Faylor  wrote:
> I just noticed today that cygz.dll was rebased right into the middle of
> cygwin1.dll's address range. =A0So, I added a -v to the rebaseall run and
> saw that there were quite a few dlls stomping all over cygwin.
>
> I wonder if this explains why we're seeing problems which are not cured
> by rebase? =A0Maybe rebase should detect where cygwin1.dll lives and avoid
> putting other DLLs there.
>
> But, for now, just setting the base to something higher:
>
> rebaseall -b 0x77000000
>
> would solve some of the problems we've seen.
>
> I don't know if that stomps on system routines or not, though.
>
> cgf

I guess this explain why after rebaseall, octave is broken

$ ldd ./octave-3.4.0.exe
        ntdll.dll =3D> /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c900000)
        kernel32.dll =3D> /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80=
0000)
        cygoctinterp-3-4-0.dll =3D>
/tmp/octave_rebased/cygoctinterp-3-4-0.dll (0x61040000)
        cygoctave-3-4-0.dll =3D> /tmp/octave_rebased/cygoctave-3-4-0.dll
(0x61c90000)
        cygcruft-3-4-0.dll =3D> /tmp/octave_rebased/cygcruft-3-4-0.dll
(0x62810000)
        cyggcc_s-1.dll =3D> /usr/bin/cyggcc_s-1.dll (0x6dbd0000)
        cygwin1.dll =3D> /usr/bin/cygwin1.dll (0x460000)
                                                             ^^^^^^^^^^ ?
        cyggfortran-3.dll =3D> /usr/bin/cyggfortran-3.dll (0x6d540000)
        cygstdc++-6.dll =3D> /usr/bin/cygstdc++-6.dll (0x63c60000)
        cygblas-0.dll =3D> /usr/bin/cygblas-0.dll (0x671a0000)
        cyglapack-0.dll =3D> /usr/bin/cyglapack-0.dll (0x66c70000)
        cygreadline7.dll =3D> /usr/bin/cygreadline7.dll (0x642d0000)
        cygncursesw-10.dll =3D> /usr/bin/cygncursesw-10.dll (0x664c0000)
        USER32.dll =3D> /cygdrive/c/WINDOWS/system32/USER32.dll (0x7e410000)
        GDI32.dll =3D> /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77f10000)
        cygfftw3-3.dll =3D> /usr/bin/cygfftw3-3.dll (0x6e1d0000)
        cygfftw3f-3.dll =3D> /usr/bin/cygfftw3f-3.dll (0x6e0d0000)
        cygqrupdate-0.dll =3D> /usr/bin/cygqrupdate-0.dll (0x64c30000)
        cygGL-1.dll =3D> /usr/bin/cygGL-1.dll (0x6cea0000)
        cygX11-xcb-1.dll =3D> /usr/bin/cygX11-xcb-1.dll (0x63640000)
        cygX11-6.dll =3D> /usr/bin/cygX11-6.dll (0x63520000)
        cygxcb-1.dll =3D> /usr/bin/cygxcb-1.dll (0x632a0000)
        cygXau-6.dll =3D> /usr/bin/cygXau-6.dll (0x63500000)
        cygXdmcp-6.dll =3D> /usr/bin/cygXdmcp-6.dll (0x63220000)
        cygXext-6.dll =3D> /usr/bin/cygXext-6.dll (0x631f0000)
        cygxcb-glx-0.dll =3D> /usr/bin/cygxcb-glx-0.dll (0x63330000)
        cygGLU-1.dll =3D> /usr/bin/cygGLU-1.dll (0x6c800000)
        cygz.dll =3D> /usr/bin/cygz.dll (0x5e7a0000)
        cygfontconfig-1.dll =3D> /usr/bin/cygfontconfig-1.dll (0x6dec0000)
        cygexpat-1.dll =3D> /usr/bin/cygexpat-1.dll (0x6e3c0000)
        cygfreetype-6.dll =3D> /usr/bin/cygfreetype-6.dll (0x6dd10000)
        cygiconv-2.dll =3D> /usr/bin/cygiconv-2.dll (0x6a870000)
        cyghdf5-6.dll =3D> /usr/bin/cyghdf5-6.dll (0x6aa20000)

after "rebaseall -b 0x77000000" instead

$ ldd ./octave-3.4.0.exe
        ntdll.dll =3D> /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c900000)
        kernel32.dll =3D> /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80=
0000)
        cygoctinterp-3-4-0.dll =3D> /usr/bin/cygoctinterp-3-4-0.dll (0x6804=
0000)
        cygoctave-3-4-0.dll =3D> /usr/bin/cygoctave-3-4-0.dll (0x68c90000)
        cygcruft-3-4-0.dll =3D> /usr/bin/cygcruft-3-4-0.dll (0x69810000)
        cyggcc_s-1.dll =3D> /usr/bin/cyggcc_s-1.dll (0x74bd0000)
        cygwin1.dll =3D> /usr/bin/cygwin1.dll (0x61000000)
        cyggfortran-3.dll =3D> /usr/bin/cyggfortran-3.dll (0x74540000)
        cygstdc++-6.dll =3D> /usr/bin/cygstdc++-6.dll (0x6ac60000)
        cygblas-0.dll =3D> /usr/bin/cygblas-0.dll (0x671a0000)
        cyglapack-0.dll =3D> /usr/bin/cyglapack-0.dll (0x66c70000)
        cygreadline7.dll =3D> /usr/bin/cygreadline7.dll (0x6b2d0000)
        cygncursesw-10.dll =3D> /usr/bin/cygncursesw-10.dll (0x6d4c0000)
        USER32.dll =3D> /cygdrive/c/WINDOWS/system32/USER32.dll (0x7e410000)
        GDI32.dll =3D> /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77f10000)
        cygfftw3-3.dll =3D> /usr/bin/cygfftw3-3.dll (0x751d0000)
        cygfftw3f-3.dll =3D> /usr/bin/cygfftw3f-3.dll (0x750d0000)
        cygqrupdate-0.dll =3D> /usr/bin/cygqrupdate-0.dll (0x6bc30000)
        cygGL-1.dll =3D> /usr/bin/cygGL-1.dll (0x73ea0000)
        cygX11-xcb-1.dll =3D> /usr/bin/cygX11-xcb-1.dll (0x6a640000)
        cygX11-6.dll =3D> /usr/bin/cygX11-6.dll (0x6a520000)
        cygxcb-1.dll =3D> /usr/bin/cygxcb-1.dll (0x6a2a0000)
        cygXau-6.dll =3D> /usr/bin/cygXau-6.dll (0x6a500000)
        cygXdmcp-6.dll =3D> /usr/bin/cygXdmcp-6.dll (0x6a220000)
        cygXext-6.dll =3D> /usr/bin/cygXext-6.dll (0x6a1f0000)
        cygxcb-glx-0.dll =3D> /usr/bin/cygxcb-glx-0.dll (0x6a330000)
        cygGLU-1.dll =3D> /usr/bin/cygGLU-1.dll (0x73800000)
        cygz.dll =3D> /usr/bin/cygz.dll (0x657a0000)
        cygfontconfig-1.dll =3D> /usr/bin/cygfontconfig-1.dll (0x74ec0000)
        cygexpat-1.dll =3D> /usr/bin/cygexpat-1.dll (0x753c0000)
        cygfreetype-6.dll =3D> /usr/bin/cygfreetype-6.dll (0x74d10000)
        cygiconv-2.dll =3D> /usr/bin/cygiconv-2.dll (0x71870000)
        cyghdf5-6.dll =3D> /usr/bin/cyghdf5-6.dll (0x71a20000)

plotting is still broken on 1.7.10s(2011-04-20) , but all the other
functionalities seem fine.

Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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