Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-10-11
00:33 • Ticket [1229493fff] AIX 5.1: make test goes into busy loop status still Clos... artifact: e631794e84 user: hobbs
00:33 • Closed ticket [1229493fff]. artifact: 29d9fd50af user: hobbs
2005-10-10
23:03 • Ticket [1229493fff]: 4 changes artifact: abfd1f96d2 user: matzek
18:57 • Ticket [1229493fff]: 6 changes artifact: 1882b8260b user: dkf
16:46 • Open ticket [1229493fff]. artifact: aa10baf990 user: matzek
2005-10-05
11:08 • Pending ticket [1229493fff]. artifact: 8b94f49831 user: hobbs
2005-06-29
07:07 • New ticket [1229493fff]. artifact: a94f22a782 user: matzek

AIX 5.1: make test goes into busy loop

Closed / Fixed1229493fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-06-29 07:07:35
Hi *,

compiled tcl8.4.11-src-rc10 on IBM AIX 5.1 (powerpc)
with C for AIX Compiler, Version 5, and got:

1.
$ ./configure --prefix=~/tcl-8.4.11 && make && make test
was going into a busy loop in "pkgMkIndex.test". A
subsequent
$ make test TCLTEST_OPTIONS="verbose -pbse"
showed "++++ pkgMkIndex-14.6 PASSED" as last output.

2.
$ CC=xlc ./configure --prefix=~/tcl-8.4.11
--enable-64bit && make && make test
was going into a busy loop in "autoMkindex.test". A
subsequent
$ make test TCLTEST_OPTIONS="verbose -pbse"
showed "++++ autoMkindex-5.2 PASSED" as last output.

Please note, this seems to be happening only when
compiling on NFS mount (nfs3, options: bg, hard, intr, rw).

-- Matthias Kraft
hobbsplain2005-10-05 11:08:47
Logged In: YES 
user_id=72656

I am able to build on an NFS mount OK, slightly different
options (nfs3, default opts, linux NFS server).  The tests
run to completion.
matzekplain2005-10-10 16:46:13
Logged In: YES 
user_id=330806

Retested with Tcl 8.4.11.

I still have the problems, it seems
[::tcltest::removeDirectory] is hanging, when unable to
remove the directory. For a short period the NFS-Server
locks a new directory through a non-removable file, e. g.
like this (hanging in removeDirectory after pkgMkIndex-14.6):

/path/to/tcl8.4.11/unix$ ls -la pkg
total 40
drwxrwxr-x   2 makr     pcc            4096 Oct 10 10:57 .
drwxr-xr-x   4 makr     pcc            8192 Oct 10 10:50 ..
-rwxrwxr-x   1 makr     pcc            5004 Oct 10 10:41
.nfs84DE24

I am not sure though, if this locking is a specialty of our
environment here. But even if the file gets removable again,
removeDirectory still hangs in a busy loop.

-- Matthias Kraft
dkfplain2005-10-10 18:57:45
Logged In: YES 
user_id=79902

Looks like a dupe of 1034337; assigning to owner of that bug...
matzekplain2005-10-10 23:03:32
Logged In: YES 
user_id=330806

Okay, forget the "if the files gets removable again" - it
won't. Here is how to reproduce manually:

open two shells...

shell 1 $ cd /path/to/someNFSDir
shell 1 $ tclsh
% set tcl_patchLevel
8.4.11
% set tcl_prompt1 {puts -nonewline "[pid] % "}
puts -nonewline "[pid] % "
1360122 % package r tcltest
2.2.8
1360122 % namespace import ::tcltest::*
1360122 % makeDirectory foo[pid] [pwd]
/path/to/someNFSDir/foo1360122
1360122 %

now change to other shell

shell 2 $ cd /path/to/someNFSDir
shell 2 $ tclsh
% set tcl_patchLevel
8.4.11
% set tcl_prompt1 {puts -nonewline "[pid] % "}
puts -nonewline "[pid] % "
1556484 % open [pwd]/foo1360122/bar {RDWR CREAT EXCL}
file3
1556484 % 

1360122 % removeDirectory foo[pid] [pwd]

hangs, until

1556484 % close file3
1556484 % 

1360122 % 

Sorry for not being able to produce this detail in the first
place. Maybe this now sheds some light into the issue.
Thanks -- Matthias
hobbs Closed ticket [1229493fff]. [History diff]2005-10-11 00:33:04
hobbsplain2005-10-11 00:33:05
Logged In: YES 
user_id=72656

OK, the whole "only on NFS" and other indicators point to
1034337, which I just fixed.
Log in (anonymous is fine) to add a comment.