Tcl Source Code

View Ticket
Login
Ticket UUID: 837257
Title: EBUSY failures in 'make test'
Type: Bug Created on: 2003-11-06 15:24:50
Submitter: dkf Assigned to: aku
Subsystem: 37. File System Severity: Minor
Priority: 4 Last modified: 2014-09-11 12:46:52
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: obsolete: 8.5a0
Description:
Several tests fail with what amounts to an EBUSY result
when I run them in an NFS-mounted directory on Linux. 
Test IDs are: fCmd-6.15, fCmd-6.16, fCmd-6.18,
fCmd-9.8, fCmd-9.9, fCmd-9.12, fCmd-9.13, fCmd-18.8
(fCmd-9.14.2 also fails, probably for the same reason,
but that's a different error message.)  Partial test
trace (generated with 'make test TESTFLAGS="-verbose
e"') follows:

fCmd.test

==== fCmd-6.15 CopyRenameOneFile: TclpRenameFile
succeeds FAILED
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "td2" to "td1/td2": file
busy
    while executing
"file rename -force td2 td1"
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EBUSY {file busy}
==== fCmd-6.15 FAILED


==== fCmd-6.16 CopyRenameOneFile: TclpCopyRenameOneFile
fails FAILED
---- Result was:
1 {error renaming "td2" to "td1/td2": file busy}
---- Result should have been (exact matching):
1 {error renaming "td2" to "td1/td2": file already exists}
==== fCmd-6.16 FAILED


==== fCmd-6.18 CopyRenameOneFile: errno != EXDEV FAILED
---- Result was:
1 {error renaming "td2" to "td1/td2": file busy}
---- Result should have been (exact matching):
1 {error renaming "td2" to "td1/td2": file already exists}
==== fCmd-6.18 FAILED


==== fCmd-9.8 file rename: comprehensive: dir to empty
dir FAILED
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tds1" to "tdd1/tds1":
file busy
    while executing
"file rename -force tds1 tdd1"
    ("uplevel" body line 25)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EBUSY {file busy}
==== fCmd-9.8 FAILED


==== fCmd-9.9 file rename: comprehensive: dir to
non-empty dir FAILED
---- Result was:
{tdd1 tdd2 tds1 tds2} {1 {error renaming "tds1" to
"tdd1/tds1": file busy}} {1 {error renaming "tds2" to
"tdd2/tds2": file busy}} 1 0
---- Result should have been (exact matching):
{tdd1 tdd2 tds1 tds2} {1 {error renaming "tds1" to
"tdd1/tds1": file already exists}} {1 {error renaming
"tds2" to "tdd2/tds2": file already exists}} 1 0
==== fCmd-9.9 FAILED


==== fCmd-9.12 file rename: comprehensive: target
exists FAILED
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "td3" to "td4/td3": file
busy
    while executing
"file rename -force td3 td4"
    ("uplevel" body line 8)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EBUSY {file busy}
==== fCmd-9.12 FAILED


==== fCmd-9.13 file rename: comprehensive: can't
overwrite target FAILED
---- Result was:
1 {error renaming "td1" to "td2/td1": file busy}
---- Result should have been (exact matching):
1 {error renaming "td1" to "td2/td1": file already exists}
==== fCmd-9.13 FAILED


==== fCmd-9.14.2 file rename: comprehensive: dir into
self FAILED
---- Result was:
0 {}
---- Result should have been (exact matching):
1 {error renaming "../td1" to "../td1x": permission denied}
==== fCmd-9.14.2 FAILED


==== fCmd-18.8 TclFileRenameCmd: rename dir on top of
another empty dir w/ -force FAILED
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tfa" to "tfad/tfa":
file busy
    while executing
"file rename -force tfa tfad"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EBUSY {file busy}
==== fCmd-18.8 FAILED
User Comments:
vincentdarley added on 2003-11-07 18:26:14:
Logged In: YES 
user_id=32170

I have no idea what 'file busy' means in this context, and
no real knowledge of the unix filesystem, so I suggest this
be assigned to someone who is a unix-filesystem specific
maintainer of Tcl, since I really don't see how I can help
here....

Vince.

dkf added on 2007-08-19 06:31:15:
Logged In: YES 
user_id=79902
Originator: YES

Maybe the notNetworkFilesystem constraint is right? (Though we ought to come up with a way of determining if we're on NFS in the first place...)