delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/24/12:58:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 24 Sep 2010 18:57:47 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: strange crashes on invocation
Message-ID: <20100924165747.GB5793@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C9B8AC6 DOT 9080808 AT budcat DOT com> <4C9BB392 DOT 9070802 AT budcat DOT com> <4C9BE120 DOT 1080701 AT budcat DOT com> <20100924091712 DOT GA18898 AT calimero DOT vinschen DOT de> <4C9CD24C DOT 1000606 AT budcat DOT com>
MIME-Version: 1.0
In-Reply-To: <4C9CD24C.1000606@budcat.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Sep 24 11:31, Heath Kehoe wrote:
> 
> On 9/24/2010 4:17 AM, Corinna Vinschen wrote:
> >
> >Can you revert to the latest from CVS and try again with this patch applied:
> >
> >Index: autoload.cc
> >===================================================================
> >RCS file: /cvs/src/src/winsup/cygwin/autoload.cc,v
> >retrieving revision 1.174
> >diff -u -p -r1.174 autoload.cc
> >--- autoload.cc	23 Sep 2010 20:18:16 -0000	1.174
> >+++ autoload.cc	24 Sep 2010 09:15:40 -0000
> >@@ -233,7 +233,7 @@ std_dll_init ()
> >  	  dll->handle = h;
> >  	}
> >        else if (!(func->decoration&  1))
> >-	api_fatal ("could not load %W, %E", dll->name);
> >+	api_fatal ("could not load %W, %E", dll_path);
> >        else
> >  	dll->handle = INVALID_HANDLE_VALUE;
> >      }
> >
> >If the error occurs again, what is the path printed in the error
> >message?  Is it sane?  Does the directory correspond to your local
> >X:\Windows\System32 directory?
> >
> 
> Done. The crash came back and here's the result:
> 
>       1 [main] bclanc 2544! C:\budcat\tools\bin\bclanc.exe: ***
> fatal error - could not load C:\Windows\system32\ws2_32.dll, Win32
> error 998

Thanks for testing.

> The path is correct. I have no explanation why changing from a
> filename to a pathname (and LoadLibrary to LoadLibraryW) would make
> any difference, unless there's a race condition, say if
> LoadLibrary[W] is a bit faster when you give it a full path.

That doesn't make sense.  It's the LoadLibraryW call itself which is
failing with error 998, "Invalid access to memory location".

Hmm.  Puzzeling.


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

- Raw text -


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