This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.0-62: segfault when PATH is not set

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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]