X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 6 Jul 2009 11:21:14 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Bash initialization w/cygwin-1.7 on NT4
Message-ID: <20090706152114.GA14932@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4A517753.6000800@verizon.net>  <4A517B99.9090303@gmail.com>  <20090706043216.GA7958@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090706043216.GA7958@ednor.casa.cgf.cx>
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 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

