delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/25/18:54:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19bsG2wsFgy7lUf7XYqRDla
Date: Wed, 25 Jul 2012 18:54:07 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: environment variables & mks toolkit - patch opportunity?
Message-ID: <20120725225407.GA17313@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CANhU=OgrNxMpHStRVjG+Pf_kQtZDECw6Oa7yL7vXnu63-Y9F9Q AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CANhU=OgrNxMpHStRVjG+Pf_kQtZDECw6Oa7yL7vXnu63-Y9F9Q@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Wed, Jul 25, 2012 at 05:43:52PM -0500, M. Sebastian Comella wrote:
>Hi all -
>I recently lost a good chunk of my day tracking down a Cygwin issue
>ultimately caused by an installation of IBM InfoSphere. The InfoSphere
>installer surreptitiously installed MKS Toolkit, which in turn set a
>bunch of environment variables that left Cygwin in a very unhelpful
>state: attempting to start Cygwin via its usual mintty shortcut would
>appear to hang, with mintty showing "sh.exe" in its title bar and
>little else. The cause of the issue is unfortunately not very obvious
>since there is no error message or other form of reporting. If I had
>realized that MKS Toolkit was being installed I might have had a
>fighting chance, but without that info I was in the dark.
>
>Fortunately, fixing the issue is pretty easy and is a matter of
>removing some Windows environment variables, as noted in this
>2002-vintage thread:
>
>http://www.cygwin.com/ml/cygwin/2002-07/msg00734.html
>
>My question is this: is there an opportunity to patch something in
>Cygwin's startup "chain" to detect unsavory environment variables and
>warn users in some fashion? I'm not sure what package (or core
>process) could detect the situation and still get a warning off to the
>user before everything goes fubar. Putting a check into the installer
>may also be a viable solution, considering that the first thing I did
>was run the Cygwin installer again to see if it could "repair" things.
>
>I think I can take care of writing the patch, but I'd like some input
>on where it even belongs before I give it a shot.

If you can provide an exact environment variable which caused a problem
we can look into whether this is actually a problem in Cygwin, although
it seems unlikely that it is.  Cygwin is meant to read environment
variables from...  its environment.  If you set them incorrectly bad
things can happen.  Cygwin is no different than UNIX in that regard.

We're can't add special case handling for a bunch of random environment
variables because someone reported that they think they might have
caused a problem.  We need more details than that.

cgf

--
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

- Raw text -


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