delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/04/11:27:19

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: Sat, 4 Oct 2003 11:27:09 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
cc: Cliff Hones <cliff AT aonix DOT co DOT uk>
Subject: Re: cygpath hangs from postinstall scripts when called like $(cygpath
-S) but not otherwise
In-Reply-To: <Pine.GSO.4.56.0310041050330.15176@slinky.cs.nyu.edu>
Message-ID: <Pine.GSO.4.56.0310041124030.15176@slinky.cs.nyu.edu>
References: <JLEBIHHBMBHBAFPAJLEFKEMKEHAA DOT miles0201 AT cox DOT net>
<1065241514 DOT 18546 DOT 19 DOT camel AT localhost> <00dd01c38a7b$fbfc91f0$12760251 AT ximenes>
<Pine DOT GSO DOT 4 DOT 56 DOT 0310041050330 DOT 15176 AT slinky DOT cs DOT nyu DOT edu>
Importance: Normal
MIME-Version: 1.0

On Sat, 4 Oct 2003, Igor Pechtchanski wrote:

> On Sat, 4 Oct 2003, Cliff Hones wrote:
>
> > I ran cygcheck on cygpath, and was surprised to discover
> > that it has a dependence on msvcrt (as well as cygwin1):
> >
> > $ cygcheck /bin/cygpath.exe
> > D:/cygwin/bin/cygpath.exe
> >   D:/cygwin/bin\cygwin1.dll
> >     D:\WINNT\system32\KERNEL32.dll
> >       D:\WINNT\system32\NTDLL.DLL
> >   D:\WINNT\system32\SHELL32.DLL
> >     D:\WINNT\system32\GDI32.DLL
> >       D:\WINNT\system32\USER32.DLL
> >     D:\WINNT\system32\ADVAPI32.DLL
> >       D:\WINNT\system32\RPCRT4.DLL
> >     D:\WINNT\system32\SHLWAPI.DLL
> >       D:\WINNT\system32\msvcrt.dll
> >     D:\WINNT\system32\COMCTL32.DLL
> >
> > I thought that using the msvcrt and cygwin1 dll's in
> > the same executable was likely to cause crashes or hangs -
> > is this no longer the case, or could this be the problem
> > with the postinstall?
> >
> > -- Cliff
>
> Wow!  Good thinking, Cliff!  I think you may be on to something...
> ISTM that the problem could manifest itself when running from setup as
> opposed to from the shell because setup is a Windows program, so some
> MSVCRT functions may be found before the Cygwin ones...  We could test by
> using "cygstart cygpath" or "run cygpath" or something.
>         Igor

Oh, and this might explain why I'm not seeing the hang on my machine:

$ cygcheck /bin/cygpath.exe
C:/cygwin/bin/cygpath.exe
  C:/cygwin/bin\cygwin1.dll
    C:\WINNT\System32\KERNEL32.dll
      C:\WINNT\System32\NTDLL.DLL
  C:\WINNT\System32\SHELL32.DLL
    C:\WINNT\System32\GDI32.DLL
      C:\WINNT\System32\USER32.DLL
    C:\WINNT\System32\ADVAPI32.DLL
      C:\WINNT\System32\RPCRT4.DLL
    C:\WINNT\System32\SHLWAPI.DLL
    C:\WINNT\System32\COMCTL32.DLL
$ cygpath --version
cygpath (cygwin) 1.29
Path Conversion Utility
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
Compiled on Sep 20 2003
$ cygcheck -cd cygwin
Cygwin Package Information
Package              Version
cygwin               1.5.5-1
$ uname -a
CYGWIN_NT-5.0 pechtcha 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
$

I'm running on Win2k, which may be significant.
	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