Hang with snapshot 20050905

Volker Quetschke quetschke@scytek.de
Tue Sep 6 23:48:00 GMT 2005


I just discovered that after upgrading from snapshot 20050716 to
20050905 my OOo build hangs. Sorry, I didn't update/test the snapshots
on this machine (Opteron 2.4GHz, cygcheck.log attached.) more
frequently.

It appears that this line from a perl script hangs:

if ( $^O =~ /cygwin/i ) { chomp( $sourcepath = qx{cygpath -w "$sourcepath"} ); }

The build scripts are deeply nested so this is only a symptom and not
a cause.

The funny thing is that ps -W shows "cygpath", to which I cannot attach
strace.
-=-=-
q@opti ~
$ ps
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      2756       1    2756       3684    2 1003 01:34:15 /usr/bin/bash
      4036    2756    2756        516    2 1003 01:34:15 /usr/bin/perl
      3988    4036    2756       1072    2 1003 01:34:16 /usr/bin/bash
      3568    3988    2756        956    2 1003 02:57:38 /usr/bin/tcsh
      2012    3568    2756       2620    2 1003 02:58:25 /cygdrive/d/w1/morejava/
solenv/wntmsci10/bin/dmake
      3584    2012    2756       3908    2 1003 02:58:25 /usr/bin/tcsh
      2224    3584    2756       3896    2 1003 02:58:25 /usr/bin/perl
      2256    2224    2756       3800    2 1003 10:40:41 /cygdrive/d/w1/morejava/
solenv/wntmsci10/bin/dmake
      3848    2256    2756       2776    2 1003 10:40:45 /usr/bin/tcsh
       960    3848    2756       2616    2 1003 10:40:45 /usr/bin/perl
      2092     960    2756        504    2 1003 10:43:52 /usr/bin/cygpath
      3732       1    3732       3732  con 1003 19:08:28 /usr/bin/bash
      3856    3732    3856       2388  con 1003 19:08:32 /usr/bin/ps

q@opti ~
$ strace -p 2092 > p2092.log
strace: couldn't attach to pid 2092<504> for debugging
-=-=-

But the windows task manager shows sh.exe that takes 100% cpu load and runs
approximately since the same stime.

If im not mistaken <http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators>
perl uses sh to start qx{} commands so that the cygpath in the ps output
corresponds to the sh.exe in the task manager.

Any ideas?

I still keep the hanging process for a while in case someone has a great
idea how to debug this.

If not I'll try to build a testcase but as this hang is 8h into the
OOo build that might take a while. Also look at the ps output, we are
ten levels deep. :(

Volker

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050906/e0a02222/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050906/e0a02222/attachment.sig>


More information about the Cygwin mailing list