Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Wed, 15 Oct 2003 12:37:27 -0500 (CDT)
From: Brian Ford <ford@vss.fsi.com>
X-X-Sender: ford@eos
To: cygwin@cygwin.com
Subject: Re: cygpath hangings
In-Reply-To: <Pine.GSO.4.56.0310151249200.20462@slinky.cs.nyu.edu>
Message-ID: <Pine.GSO.4.56.0310151229360.823@eos>
References: <20031014100230.A12215@fw.j-son.org> <006501c392b7$dc780730$200aa8c0@thorin>
 <3F8BE1B9.3000704@cs.york.ac.uk> <Pine.GSO.4.56.0310140914020.20462@slinky.cs.nyu.edu>
 <Pine.GSO.4.56.0310141554180.823@eos> <Pine.GSO.4.56.0310141712520.20462@slinky.cs.nyu.edu>
 <Pine.GSO.4.56.0310141619070.823@eos> <Pine.GSO.4.56.0310151249200.20462@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 15 Oct 2003, Igor Pechtchanski wrote:

> On Tue, 14 Oct 2003, Brian Ford wrote:
> > On Tue, 14 Oct 2003, Igor Pechtchanski wrote:
> > >Brian Ford wrote:
> > > > There will be no ouput unless main calls foo, right?
> > >
> > > Actually, if the DLL was loaded, there should be output even if foo isn't
> > > called...
> > >
> > Just linking to it causes a load, or is it the first referance?  I'm a DLL
> > dunce.
>
> I've just verified that the DLL is loaded even if no functions from it are
> called (or variables referenced).  FWIW, here's the code I used:
>
It has been a while since I ran through this stuff, but I did get that
output in a bash shell after compiling with -mno-cygwin (I think).

> > > > Then, I still get a hang under setup from explorer; no output.
> > >
> > > This could be because the DLL was not loaded, or because of the two stdio
> > > conflicts...  Did you compile the DLL with -mno-cygwin?
> >
> > No.  I guess you wanted me too? :)
>
> I don't know if it matters, frankly.  It looks like the DLL is loaded, but
> it doesn't load completely.  Maybe something that SHLWAPI.DLL is doing on
> initialization?
>
I think it might (again, going on my faulty memory).

Does that comment mean you can reproduce this now?  I guess you're just
talking about email observations, right.

> I still suspect the initialization code in SHLWAPI.DLL is doing
> something that Cygwin doesn't like.
>
Maybe, it is just *very* strange.

Only setup launched from explorer launched bash launched back tick SHLWAPI
base program without input redirection.  Ugh...!  Any change in the above
and the problem goes away. (ie. explorer->setup->bash`SHLWAPI exe #
without < /dev/null`).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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

