X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 28 Oct 2009 12:30:58 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.0-62: segfault when PATH is not set
Message-ID: <20091028113058.GG28753@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <FE6D94EE-6C4A-43C8-B373-F2681925AF32@free.fr>  <20091019093631.GA3986@calimero.vinschen.de>  <5C9B4EF4-C83E-4D45-93C6-F6079B756F88@free.fr>  <20091019194735.GG27964@calimero.vinschen.de>  <4DF70782-0859-459B-84F2-F5E3840C8A06@free.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@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 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

