Mail Archives: cygwin/2005/10/19/17:48:20
--------------enigCBCFC9F68F177896EC86D4C9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Christopher Faylor wrote:
> On Wed, Oct 19, 2005 at 03:45:30PM -0400, Volker Quetschke wrote:
> (snip)
>>Basically we still see the same problem as in
>><http://cygwin.com/ml/cygwin/2005-09/msg00803.html>.
>>
>>The build hangs in a tcsh like this:
>>(snip)
>>And by attaching strace to the hung pid and using "ls /proc/*/fd"
>>the attached (behind the cygcheck.log) strace was created.
>
> Given the number of changes that have been made to cygwin, particularly
> in /proc handling, it's very difficult for me to believe that you are
> not seeing *any* differences in behavior and I'm wondering if you're
> actually seeing what you think you're seeing, i.e., I'm wondering if the
> process is just timing out and you are attributing it coming "unstuck"
> to the fact that you're doing "ls /proc/*/fd". I can't see any reason
> why inspecting /proc should cause any kind of special behavior in the
> latest snapshots since /proc handling now occurs in its own thread.
I can completely understand your worries. My problem is that I cannot
reproduce the problem myself and all I can do is ask the people who
have this problem to try get some debug information.
I just asked for a confirmation that it really is the "ls /proc/*/fd"
that "unstucks" the process. I don't believe that "/usr/bin/tcsh -fc pwd"
needs a long time to finish so that we're getting a coincidence there.
Having said that, I never realized that before, maybe the problem really
lies in this special command. I mean due to some historic quirks every
makefile in the OOo tree has a line that sets a macro to the current path
using that command, but there are still lots of other commands (also executed
in a tcsh shell) in these makefiles that I never heard of to hang.
(I'll also verify that what I just said is really true, it's just an idea.)
> I could almost convince myself that there was a race in /proc handling
> before but I could never convince myself that doing something like "ls /proc/*/fd"
> would have any effect on it. Nevertheless, I did make some changes to
> eliminate the potential source of hangs in this code. So, I can't
> understand why you wouldn't see something different.
I have no clue either, especially as I also cannot reproduce and therefore
cannot pinpoint the problem. :(
Anyway, thanks for all your efforts!
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
--------------enigCBCFC9F68F177896EC86D4C9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MinGW)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDVr8YPTXJup+KeF0RAkAJAJ0VGTF1NTWaPoZI5DF+eaFlU3JiPACg0LzH
CI0wzqHDZIXRl+Ou/iOhF2E=
=Tx+/
-----END PGP SIGNATURE-----
--------------enigCBCFC9F68F177896EC86D4C9--
- Raw text -