delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/15/15:10:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 15 Oct 2003 15:10:36 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Brian Ford <ford AT vss DOT fsi DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: setup hangs during postinstall
In-Reply-To: <Pine.GSO.4.56.0310151353340.823@eos>
Message-ID: <Pine.GSO.4.56.0310151504260.20462@slinky.cs.nyu.edu>
References: <D721826DEE793D49BC49582C121EDD3E3F55C9 AT exchange DOT perwill DOT com>
<20031015184121 DOT GC28402 AT redhat DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0310151353340 DOT 823 AT eos>
Importance: Normal
MIME-Version: 1.0

On Wed, 15 Oct 2003, Brian Ford wrote:

> On Wed, 15 Oct 2003, Christopher Faylor wrote:
>
> > On Wed, Oct 15, 2003 at 07:24:53PM +0100, Steve Fairbairn wrote:
> > >As Brian has noted, Executing the binary with '< /dev/null' stops the
> > >hanging, but also executing it without capturing the output to a variable
> > >also stops the hanging.
> >
> > I would guess that something like
> >
> > foo=`bar`
> >
> > is what is causing the problem because this uses a pipe for
> > communication.  In a shell that is run from setup.exe, it is possible
> > that stdin is not opened at all and stdout is the pipe in question.
> > Maybe this is somehow confusing the SHF* function.
>
> Yes.  I thought this had always been clear.

I'd say it's confusing the DLL initialization sequence, as the function
doesn't even have to be called (see the simple hanging example in this
thread).

> Since this only happens in bash, and not in sh, I doubt that is the
> problem.  Are we looking at some kind of weird bash bug here?  We have
> almost eliminated most of Cygwin since MINGW SHLWAPI executables exhibit
> the problem.

Speaking of which, what's the version of SHLWAPI that hangs?  On my
machine (which doesn't exhibit the hang) I have

$ ls -l shlwapi.dll msvcrt.dll
-rwxrwxr-x+   1 Administ SYSTEM     300816 Oct 20  2000 shlwapi.dll
-rwxrwxr-x+   1 Administ SYSTEM     290869 Oct 30  2001 msvcrt.dll

The properties dialogs show the following versions:

File version: 5.50.4522.1800
Description: Shell Light-weight Utility Library
Copyright: Copyright (C) Microsoft Corp. 1981-2000

File version: 6.1.9359.0
Description: Microsoft (R) C Runtime Library
Copyright: Copyright (C) Microsoft Corp. 1981-1999

I don't know if it'll help, but it might be worth a shot...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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