X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 24 Sep 2010 15:54:22 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: strange crashes on invocation
Message-ID: <20100924195422.GA27380@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4C9B8AC6.9080808@budcat.com> <4C9BB392.9070802@budcat.com> <4C9BE120.1080701@budcat.com> <20100924091712.GA18898@calimero.vinschen.de> <4C9CD24C.1000606@budcat.com> <20100924165747.GB5793@calimero.vinschen.de> <4C9CECB4.1040607@budcat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4C9CECB4.1040607@budcat.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Fri, Sep 24, 2010 at 01:23:48PM -0500, Heath Kehoe wrote:
>
>On 9/24/2010 11:57 AM, Corinna Vinschen wrote:
>> On Sep 24 11:31, Heath Kehoe wrote:
>>> 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.
>>
>
>Well, another difference is the addition of PATH_MAX*2 bytes on the 
>stack. Those functions do some stack manipulations that I'm having 
>trouble grokking. Does 'ret' need to be topmost on the stack?
>
>As a test, I moved the 'ret' definition after that of 'dll_path' (in 
>std_dll_init). So far with that change, I have not seen the LoadLibrary 
>fatal error, though I need to test it more to be sure.

I've moved some other stuff around in that function.  Could you try
the latest CVS?

cgf

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

