[OpenAFS] openafs panic after chroot

emoy@apple.com emoy@apple.com
Mon, 10 Feb 2003 00:31:16 -0800


Under Mac OS X 10.2.3, running OpenAFS 1.2.8 with some modifications  
from Jim Rees, I get a kernel panic shortly after running the chroot  
command.  I have already copied the boot drive onto AFS, and when I  
chroot to that copy and run a command within the chrooted environment,  
it works fine.  However, a couple of minutes later, not even doing  
anything in AFS, the kernel panics:

----------------------------------------------------------------
panic(cpu 0): flushactive open, hasubc, but refcnt 1
Latest stack backtrace for cpu 0:
       Backtrace:
          0x000856CC 0x00085AFC 0x000287A8 0x1EACAF20 0x1EAB2A70  
0x1EB13678 0x1EB
15194 0x0020E8CC
          0x00092830 0x0069006E
       Kernel loadable modules in backtrace (with dependencies):
          org.openafs.filesystems.afs(1.2.8)@0x1eaa8000
Proceeding back via exception chain:
    Exception state (sv=0x15129500)
       PC=0x9000514C; MSR=0x0000D030; DAR=0x0002553C; DSISR=0x40000000;  
LR=0x0000
58AC; R1=0xBFFFC800; XCP=0x00000030 (0xC00 - System call)

Kernel version:
Darwin Kernel Version 6.3:
Sat Dec 14 03:11:25 PST 2002; root:xnu/xnu-344.23.obj~4/RELEASE_PPC
----------------------------------------------------------------

The backtrace shows afs_FlushActiveVcaches (called from afs_Daemon,  
itself called from afs_syscall_call) calling panic:

#ifdef AFS_DARWIN_ENV
             if (VREFCOUNT(tvc) == 1 && UBCINFOEXISTS(&tvc->v)) {
                 if (tvc->opens) panic("flushactive open, hasubc, but  
refcnt 1");
                 osi_VM_TryReclaim(tvc,0);
             }
#endif

Any know what this is about and how to fix it?
------------------------------------------------------------------------ 
--
Edward Moy
Apple Computer, Inc.
emoy@apple.com

(This message is from me as a reader of this list, and not a statement
from Apple.)