X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 28 Oct 2009 12:30:58 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.0-62: segfault when PATH is not set Message-ID: <20091028113058.GG28753@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20091019093631 DOT GA3986 AT calimero DOT vinschen DOT de> <5C9B4EF4-C83E-4D45-93C6-F6079B756F88 AT free DOT fr> <20091019194735 DOT GG27964 AT calimero DOT vinschen DOT de> <4DF70782-0859-459B-84F2-F5E3840C8A06 AT free DOT fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DF70782-0859-459B-84F2-F5E3840C8A06@free.fr> 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 Oct 28 00:51, Denis Excoffier wrote: > On 2009-10-19 21:47, Corinna Vinschen wrote: > >On Oct 19 21:18, Denis Excoffier wrote: > >> > >>Hope this helps. > > > >It does. The value of $PATH is used without checking if $PATH > >exists. I fixed that in CVS. > Thank you. Let's wait until 1.7.0-63 now. > > In the same spirit, i discovered that > `cygcheck -s' does not behave correctly (ie is prematurely > interrupted) if COMSPEC is not set to the > appropriate value (C:\WINNT\system32\cmd.exe or equivalent), > or is not set at all. That appears to be a bug in Windows' msvcrt.dll. cygcheck is not a Cygwin application, but a native Win32 application. It calls popen() from msvcrt.dll, and this function crashes with a SEGV, as soon as cygcheck tries to run cygrunsrv --version. What's strange is that two prior calls to popen("id.exe") work fine. Even if I omit them, popen crashes if it's called for cygrunsrv. I have no explanation for this. 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