X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 24 Sep 2010 15:54:22 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: strange crashes on invocation Message-ID: <20100924195422.GA27380@ednor.casa.cgf.cx> 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> <20100924165747 DOT GB5793 AT calimero DOT vinschen DOT de> <4C9CECB4 DOT 1040607 AT budcat DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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