www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/06/11:21:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 6 Jul 2009 11:21:14 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash initialization w/cygwin-1.7 on NT4
Message-ID: <20090706152114.GA14932@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4A517753 DOT 6000800 AT verizon DOT net> <4A517B99 DOT 9090303 AT gmail DOT com> <20090706043216 DOT GA7958 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
In-Reply-To: <20090706043216.GA7958@ednor.casa.cgf.cx>
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 Mon, Jul 06, 2009 at 12:32:16AM -0400, Christopher Faylor wrote:
>On Mon, Jul 06, 2009 at 05:20:41AM +0100, Dave Korn wrote:
>>Jerry DeLisle wrote:
>>> I am making the switch to 1.7.  I started with a clean windows (nt4)
>>> environment and went through the usual run of setup-1.7 downloaded today.
>>> 
>>> All appears fine, but bash does not get initialized.
>>> 
>>> pwd is /usr/bin
>>> 
>>> path is not set
>>> 
>>> home directory is not created
>>> 
>>> These are all taken care of nicely for the user with cygwin 1.5
>>> 
>>> I think this is a bug unless I am missing something in the install process.
>>
>>This is symptomatic of a problem preventing the postinstall scripts
>>from having run correctly, isn't it?  Have a look in your
>>/var/log/setup.log* files, and see what happened to
>>base-files-profile.sh.
>
>I can actually duplicate this problem on my NT4 virtual machine.
>Unfortunately, I won't have a lot of time to track this down next
>week but I'll get to it if no one else beats me to it.

I just checked in a fix for this.  It was a pretty embarrassing bug.
For some reason, I had decided that it was ok not to check the error
return value from an Nt* system call.  At least it was an easy fix.

For the curious, I debugged it by doing this:

set CYWGIN=error_start:gdb

When gdb popped up, the stack trace led me straight to the problem.

I am generating a new snapshot now but, given the nature of the problem,
I'm not entirely sure how to suggest using the snapshot to fix the
problem.  I guess one thing you could do is just rerun all of the
post-install scripts after installing the snapshot cygwin1.dll.

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