X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 8 Feb 2012 16:16:03 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7.10-1 fork - address space needed by ... already in use
Message-ID: <20120208151603.GN25129@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20120207154359.GA2952@qp9482> <20120207161428.GB12159@calimero.vinschen.de> <4F31559B.6060600@cs.utoronto.ca> <B0ED7173-1AC3-4B4E-8B79-3A9B22652684@Denis-Excoffier.org> <20120208090824.GA1724@qp9482> <20120208092711.GF25129@calimero.vinschen.de> <20120208102235.GA2796@qp9482> <20120208130012.GG25129@calimero.vinschen.de> <20120208133502.GH25129@calimero.vinschen.de> <20120208145527.GA4644@qp9482>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20120208145527.GA4644@qp9482>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Feb  8 15:55, Denis Excoffier wrote:
> On Wed, Feb 08, 2012 at 02:35:02PM +0100, Corinna Vinschen wrote:
> >> Denis, can you please change your test output?  Instead of printing only
> >> d_alt->modname, please print d_alt->name and then run your rsync test
> >> again.  If this is the same problem as in the doit testcase, I'd like to
> >> see where the second cygiconv-2.dll is coming from.  In theory, if you
> >> have only a single installation of cygiconv-2.dll, this should'nt
> >> happen.
> Here it is. Enjoy!
>       1 [main] gcc-4 5440 dll_list::reserve_space: address space needed by 'cygiconv-2.dll' (file D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygiconv-2.dll) (0x674C0000 with type 1=DLL_LINK)
>    1580 [main] gcc-4 5440 dll_list::reserve_space: address space needed by 'cygintl-8.dll' (file D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygintl-8.dll) (0x6F5C0000 with type 1=DLL_LINK)
>    1899 [main] gcc-4 5440 dll_list::reserve_space: address space needed by 'cygiconv-2.dll' (file \\?\D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygiconv-2.dll) (0x674C0000 with type 2=DLL_LOAD)
>    2562 [main] gcc-4 5440 dll_list::reserve_space: address space needed by 'cygintl-8.dll' (file \\?\D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygintl-8.dll) (0x6F5C0000 with type 2=DLL_LOAD)
>    3290 [main] gcc-4 5440 child_info_fork::abort: address space needed by 'cygiconv-2.dll' (0x674C0000) is already occupied
>       2 [main] gcc 3408 fork: child -1 - forked process died unexpectedly, retry 0, exit code 1, errno 11
> 
> I don't think you will need /proc/5440/maps this time.

Nope, thank you.  Look at this:

  D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygiconv-2.dll
  \\?\D:\Home\dexcoff1\dexcoff1\cygwin2011f\bin\cygiconv-2.dll

So it's the same DLL path, just one time with the long pathname prefix
(or better: The Win32 equivalent to the native NT path prefix).  But,
as I wrote in my mail to Heiko, neither the Windows loader nor the
GetModuleFileName call normalize the path.  So I think I just apply
my patch to use only the basename in the dll_init code.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

