X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-VirusChecked: Checked X-Env-Sender: hkehoe AT budcat DOT com X-Msg-Ref: server-7.tower-172.messagelabs.com!1285345870!92298749!1 X-StarScan-Version: 6.2.4; banners=budcat.com,-,- Message-ID: <4C9CD24C.1000606@budcat.com> Date: Fri, 24 Sep 2010 11:31:08 -0500 From: Heath Kehoe User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: strange crashes on invocation 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> In-Reply-To: <20100924091712.GA18898@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 Stack trace: Frame Function Args 00289F34 6102740B (00289F34, 00000000, 00000000, 00000000) 0028A224 6102740B (6117AC40, 00008000, 00000000, 6117C997) 0028B254 61004B2B (6117C084, 0028B270, 00000000, 00000000) 0028B4A4 6100136E (61053A4A, 00000168, 00000002, 00000002) 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's just speculation, of course. But the intermittent nature of this crash (1 in 500ish invocations) would also seem to point to a race condition of some kind. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- 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