[1941] in Kerberos_V5_Development
Re: Solaris maake check fails on server side
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Tue Nov 12 11:49:05 1996
Date: Tue, 12 Nov 1996 11:48:42 -0500
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: tlyu@MIT.EDU
Cc: krbdev@MIT.EDU
In-Reply-To: <9611120636.AA12862@tesla-coil.MIT.EDU> (message from Tom Yu on
Tue, 12 Nov 1996 01:36:10 -0500)
Date: Tue, 12 Nov 1996 01:36:10 -0500
From: Tom Yu <tlyu@MIT.EDU>
In api.log:
spawn ./lock-test wait exclusive
spawn ./lock-test permanent wait release
permanent
FAIL: 9: eof while waiting for database lock file missing while getting exclusive
The lock test program takes a sequence of commands on the command
line, and operates on the admin (policy) database). "shared" means
get a shared lock, "exclusive" means get an exclusive lock,
"permanent" means get a permanent lock (which means get an exclusive
lock, then delete the lock file), and "wait" means wait for a newline
before proceeding. So, in this test, prog 1 starts by waiting; prog 2
gets a permanent lock (deleting the lock file); prog 1 is sent a
newline and tries to get an exclusive lock, which should fail ("lock
file missing") because prog still holds the permanent lock. The test
is failing because, apparently, prog 1 is succeeding in getting its
exclusive lock at the same time that prog 2 hold a permanent lock (as
revealed by the dbg.log).
I'm pretty confident that the locking code and the tests work because
I've run the tests many times. I cannot explain why the test is
failing for you.
Turns out that if I blow away the scratch krb5-test-root directory it
works. Weird. We may still want to look into this.
Please define "blow away." Did you actually delete the directory and
then run the tests without the directory existing? If so, that tells
you nothing. Did you just run make check again, which re-creates the
directory? If so, and it worked, that is good, but it still shouldn't
have failed.
The tests just suceeded for me on Solaris:
<DUN-DUN-NOODLES> .../build/lib/kadm5/unit-test% gmake unit-test-server-body DEJALFLAGS=lock.exp
./../../../kadmin/testing/scripts/env-setup.sh ./server-handle-test
./../../../kadmin/testing/scripts/env-setup.sh runtest lock.exp --debug --srcdir ../../../../src/lib/kadm5/unit-test --host unknown-sun4m-SunOS5.4 --tool api RPC=0 API=./../../../kadmin/testing/util/ovsec_kadm_srv_tcl \
LOCKTEST=./lock-test \
KADMIN_LOCAL=./../../../kadmin/cli/kadmin.local
Test Run By bjaspan on Tue Nov 12 11:46:22 EST 1996
Native configuration is unknown-sun4m-SunOS5.4
=== api tests ===
Running ../../../../src/lib/kadm5/unit-test/api.1/lock.exp ...
=== api Summary ===
# of expected passes 19
Barry