[OpenAFS-devel] Solaris 8 hangs with 64 bit files

Mark Dapoz md@dementia.org
Tue, 25 Jun 2002 12:23:56 -0400 (EDT)


There appears to be a bug in OpenAFS on 64 bit Solaris 8 systems which causes
the kernel to hang.  I have a test case which reproduces the problem.  You can
find the test case here: http://www.dementia.org/~md/testcase.tar.gz

The scenario is as follows:

   - a file is opened R/W
   - the file pointer is set to 0xFFFFFFFF using lseek()
   - a 4K block is written to the file

the 4K write will cause the system to hang.  The test case must be compiled
for the V9 (64 bit) architecture.

I came across this problem while compiling openAFS on an Ultra/10 using
Sun's WorkShop 5.0 compiler.  The compiler tries to create a file using the
above scenario and hung my machine.  The test case basically duplicates the
steps the compiler is going through.  I've tried this on openAFS 1.2.4 and
1.2.5 and the result is the same.  Derrick Brashear has tested this on one
of his machines and it does the same thing.  Hopefully someone someone
familiar with the Solaris port can take a look at this and see what's wrong.
Thanks.
				-mak