delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/21/07:03:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Bv9VgbFwFspKLyXBbSmqtFyYspSxpKcDica1bsdsvtV76k0IQw+/e
mRfzUvrcjqUEdyjNtX4dpgZ1PrvVyWt2vppiMO6VoIgsN19ohyM8UKoKUw2SInBN
YRk63sEa/BVp9jKaCsaUtQ3IdlbR95h4WRifcrXpDeHCQ7s4C3bI24=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=oEO23WxcWofZog/j385JGr02ULc=; b=ZBn0tlzc+zdtw7NPPHRNkMo+e/6w
2JzeC62uKZcfpAmhcmy2ohaXGFeUMlKGIc5Rf2JBrGycogB7S5wpV2Gcyxsx5Vgj
gKt20Hp8tV+Y3RiIGt2zB7qJkpQaFT0cDjFZeKwrdUjqBjZInDYoGS+Pi6dqbCoL
386Ue1h20M0YUe0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 21 Oct 2014 13:03:10 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygcheck -s segfaults in cygwin64 on Win7Pro-64
Message-ID: <20141021110310.GD32374@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1413488630 DOT 82429 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com> <544055FF DOT 2030604 AT cs DOT umass DOT edu> <1413517183 DOT 86611 DOT YahooMailNeo AT web162801 DOT mail DOT bf1 DOT yahoo DOT com> <1413517863 DOT 36122 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com> <54411638 DOT 2000104 AT cs DOT umass DOT edu> <1413582729 DOT 36005 DOT YahooMailNeo AT web162802 DOT mail DOT bf1 DOT yahoo DOT com> <5441E5A2 DOT 1050506 AT gmail DOT com> <1413844762 DOT 64871 DOT YahooMailNeo AT web162804 DOT mail DOT bf1 DOT yahoo DOT com> <t43c4aha2fardlfn1go3hdb5ajbog9lf0t AT 4ax DOT com>
MIME-Version: 1.0
In-Reply-To: <t43c4aha2fardlfn1go3hdb5ajbog9lf0t@4ax.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--5p8PegU4iirBW1oA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 21 04:03, Andrew Schulman wrote:
> > Instead, I found that COMSPEC needs to be set in the environment or I g=
et a=20
> > segfault as shown in my previous email below.  I don't know why that is=
,=20
> > but I can easily demonstrate it.
>=20
> Confirmed here.  I had actually already seen this segfault too, but I
> hadn't figured out it was caused by empty COMSPEC.

That's interesting.  I just debugged this a bit.  As you know, cygcheck
is a native Windows application (it's supposed to work even if Cygwin
is entirely broken).

At one point it tries to fetch information about the installed services
by calling cygrunsrv --list --verbose.  It tries to accomplish that by
calling the MSVCRT version of popen(2).  And it's that call to popen
which crashes if COMSPEC is not set, or not set correctly.

I applied a patch to cygcheck, which enforces setting COMSPEC if the
variable is unset.  That doesn't help against *wrong* settings of COMSPEC,
but that's really user's fault alone, I think :)

I also created a new snapshot on https://cygwin.com/snapshots/ which
comes with a cygcheck containing that patch.


HTH,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--5p8PegU4iirBW1oA
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURj1uAAoJEPU2Bp2uRE+gI6MP/iM2esMClDa6lKW7MXMAym98
ap9snYAH2XNcTF+f6QQ6WCHgrIEAcYvFlOWpuknK+IrMPBwnSuEVk055zpuNy163
nwLFuqaX5BpA2LUoH2Hy1qor4rsik5/4TxBJ7rz6tIXNIPrjW6vOpK0bW8tKxiwq
APNNPTcAH6jlX4bzAwaxJgtBqG9Blxa/ZI4sWoIO+2Wv2R7BurHMZLZatsrBzciX
CC/6xhwrSQTqFVVFq1YzlU9LNmPeB9O3fmU+iMemux3d0tKlQunk36EydpbvG5cW
0Ij6EUJvF88uXDPRplDudXPqHIfAJet8i1eb5mz3/eF25flZg9l7CfhbzvMqSHWn
XyBBUAVYe/57l8JsVcR/XS4hsbJH2Nxndy/4sgiP52ZD3X+SGSFwbGaezFospYqg
5geS52Kr4oyOirQAr5xqqQRXOymxKy3xPsX4QzGhyy5qsnnZy90GeIPJbLut3dyN
xZC7bWvIcAYYJTGDhcQm+QS6RSzYq7wmq+0at+zHyUIqpTjyi6eL2/bQJa0lxJgK
MoloseMnF7c2km/jIedLSb4Gal5jiIYriIKSBC9p/Q0cXKVx+OfhoDLB7b3zAKA0
5tfYNDlcL5RrRRy5q3iaOMso2FzECilfDZRor4D4put6fdWH+7EXmXaUjZOly/i8
IBcjq7Aizuhp1Yew4zq/
=l+Hi
-----END PGP SIGNATURE-----

--5p8PegU4iirBW1oA--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019