[OpenAFS] JAFS - Java Documentation for AFS

Manfred Paul manne.paul@web.de
Mon, 21 Nov 2005 16:16:15 +0100


Hi,

it's getting better. At first, thanks! But not everything is fine.

I compiled openafs with the command from the debian/rules file


./configure --with-afs-sysname=i386_linux26 --disable-kernel-module 
--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib 
--localstatedir=/var/lib --enable-supergroups --disable-optimize 
--disable-lwp-optimize --disable-transarc-paths

But one Problem is still there:

 	 private static Token token;
 
	 public static void main(String[] args) throws Exception {		 
		token  = new Token("xxx", "xxx", "xx");   
         	token.klog();
	 }


Everytime it stops with a java heap dump message and it did not use the 
standard cachedir and confdir. in debian it is under 

/etc/openafs
/var/cache/openafs

whats wrong here?

Manfred

------------------ JAVA HEAPDUMP ----------------------------

init_native: Initializing user space AFS client

    mountDir:           /afs
    confDir:            /usr/afswsp/etc
    cacheBaseDir:       /usr/afswsp/cache
    cacheBlocks:        100000
    cacheFiles:         12500
    cacheStatEntries:   8192
    dCacheSize:         11398
    vCacheSize:         128
    chunkSize:          0
    afsd_CloseSynch:    0
    afsd_debug/verbose: 0/0
    nDaemons:           3
    cacheFlags:         0
    logFile:            /usr/afswsp/log/libjafs.log


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xAAF4FAAA
Function=lookupname+0x2AF
Library=/home/manfred/Build/OpenAFS/openafs-1.4.0/lib/libjafs.so

Current Java thread:
	at org.openafs.jafs.Token.initUserSpace(Native Method)
	at org.openafs.jafs.Token.initializeUserSpace(Token.java:268)
	at org.openafs.jafs.Token.klog(Token.java:234)
	at AFSTokens.main(AFSTokens.java:9)

Dynamic libraries:
08048000-08057000 r-xp 00000000 03:01 
327184     /usr/lib/j2se/1.4/jre/bin/java
08057000-08059000 rwxp 0000e000 03:01 
327184     /usr/lib/j2se/1.4/jre/bin/java
08059000-08277000 rwxp 08059000 00:00 0          [heap]
aae40000-aaed8000 r-xp 00000000 03:06 
443408     /home/manfred/Build/OpenAFS/openafs-1.4.0/lib/libjafsadm.so
aaed8000-aaeda000 rwxp 00098000 03:06 
443408     /home/manfred/Build/OpenAFS/openafs-1.4.0/lib/libjafsadm.so
aaeef000-aaefe000 r-xp 00000000 03:01 700799     /lib/tls/libresolv-2.3.5.so
aaefe000-aaf00000 rwxp 0000f000 03:01 700799     /lib/tls/libresolv-2.3.5.so
aaf15000-aafc0000 r-xp 00000000 03:06 
443389     /home/manfred/Build/OpenAFS/openafs-1.4.0/lib/libjafs.so
aafc0000-aafc2000 rwxp 000aa000 03:06 
443389     /home/manfred/Build/OpenAFS/openafs-1.4.0/lib/libjafs.so
ab027000-ab037000 r-xs 00000000 03:06 
442083     /home/manfred/Build/OpenAFS/openafs-1.4.0/src/JAVA/libjafs/jafs.jar
ab037000-ab0f3000 r-xs 00000000 03:01 
326794     /usr/lib/j2se/1.4/jre/lib/ext/localedata.jar
ab0f3000-ab10f000 r-xs 00000000 03:01 
326791     /usr/lib/j2se/1.4/jre/lib/ext/sunjce_provider.jar
ab48f000-ab56a000 r-xp 00000000 03:01 84297      /usr/lib/libdb-4.3.so
ab56a000-ab56d000 rwxp 000db000 03:01 84297      /usr/lib/libdb-4.3.so
ab572000-ab580000 r-xs 00000000 03:01 
326793     /usr/lib/j2se/1.4/jre/lib/ext/ldapsec.jar
ab580000-ab5aa000 r-xp 00000000 03:01 
326893     /usr/lib/j2se/1.4/jre/lib/i386/libjdwp.so
ab5aa000-ab5ac000 rwxp 00029000 03:01 
326893     /usr/lib/j2se/1.4/jre/lib/i386/libjdwp.so
ab5af000-ab710000 r-xp 00000000 03:01 
97795      /usr/lib/locale/locale-archive
b59b8000-b5f58000 r-xs 00000000 03:01 
327163     /usr/lib/j2se/1.4/jre/lib/charsets.jar
b5f58000-b5f69000 r-xs 00000000 03:01 
326785     /usr/lib/j2se/1.4/jre/lib/jce.jar
b5f69000-b6046000 r-xs 00000000 03:01 
327162     /usr/lib/j2se/1.4/jre/lib/jsse.jar
b6046000-b605c000 r-xs 00000000 03:01 
326827     /usr/lib/j2se/1.4/jre/lib/sunrsasign.jar
b60a6000-b7a52000 r-xs 00000000 03:01 
327161     /usr/lib/j2se/1.4/jre/lib/rt.jar
b7a52000-b7a63000 r-xp 00000000 03:01 
326868     /usr/lib/j2se/1.4/jre/lib/i386/libzip.so
b7a63000-b7a65000 rwxp 00011000 03:01 
326868     /usr/lib/j2se/1.4/jre/lib/i386/libzip.so
b7a65000-b7a84000 r-xp 00000000 03:01 
326838     /usr/lib/j2se/1.4/jre/lib/i386/libjava.so
b7a84000-b7a85000 rwxp 0001f000 03:01 
326838     /usr/lib/j2se/1.4/jre/lib/i386/libjava.so
b7a85000-b7a96000 r-xp 00000000 03:01 
326848     /usr/lib/j2se/1.4/jre/lib/i386/libverify.so
b7a96000-b7a97000 rwxp 00011000 03:01 
326848     /usr/lib/j2se/1.4/jre/lib/i386/libverify.so
b7a97000-b7aa1000 r-xp 00000000 03:01 
700793     /lib/tls/libnss_files-2.3.5.so
b7aa1000-b7aa3000 rwxp 00009000 03:01 
700793     /lib/tls/libnss_files-2.3.5.so
b7aa3000-b7aab000 r-xp 00000000 03:01 700795     /lib/tls/libnss_nis-2.3.5.so
b7aab000-b7aad000 rwxp 00008000 03:01 700795     /lib/tls/libnss_nis-2.3.5.so
b7ab0000-b7ab3000 r-xs 00000000 03:01 
326789     /usr/lib/j2se/1.4/jre/lib/ext/dnsns.jar
b7ab3000-b7ab7000 r-xp 00000000 03:01 87544      /usr/lib/libnss_db-2.2.3.so
b7ab7000-b7ab8000 rwxp 00003000 03:01 87544      /usr/lib/libnss_db-2.2.3.so
b7ab8000-b7abb000 r-xp 00000000 03:01 
326840     /usr/lib/j2se/1.4/jre/lib/i386/libdt_socket.so
b7abb000-b7abc000 rwxp 00002000 03:01 
326840     /usr/lib/j2se/1.4/jre/lib/i386/libdt_socket.so
b7abc000-b7ac0000 rwxs 00000000 03:01 896472     /tmp/hsperfdata_manfred/23694
b7ac0000-b7ae3000 r-xp 00000000 03:01 700788     /lib/tls/libm-2.3.5.so
b7ae3000-b7ae5000 rwxp 00022000 03:01 700788     /lib/tls/libm-2.3.5.so
b7ae5000-b7af7000 r-xp 00000000 03:01 700790     /lib/tls/libnsl-2.3.5.so
b7af7000-b7af9000 rwxp 00012000 03:01 700790     /lib/tls/libnsl-2.3.5.so
b7afb000-b7dbc000 r-xp 00000000 03:01 
326855     /usr/lib/j2se/1.4/jre/lib/i386/client/libjvm.so
b7dbc000-b7dd7000 rwxp 002c0000 03:01 
326855     /usr/lib/j2se/1.4/jre/lib/i386/client/libjvm.so
b7def000-b7f1c000 r-xp 00000000 03:01 700784     /lib/tls/libc-2.3.5.so
b7f1c000-b7f21000 r-xp 0012d000 03:01 700784     /lib/tls/libc-2.3.5.so
b7f21000-b7f24000 rwxp 00132000 03:01 700784     /lib/tls/libc-2.3.5.so
b7f26000-b7f28000 r-xp 00000000 03:01 700787     /lib/tls/libdl-2.3.5.so
b7f28000-b7f2a000 rwxp 00001000 03:01 700787     /lib/tls/libdl-2.3.5.so
b7f2a000-b7f38000 r-xp 00000000 03:01 700798     /lib/tls/libpthread-2.3.5.so
b7f38000-b7f3a000 rwxp 0000d000 03:01 700798     /lib/tls/libpthread-2.3.5.so
b7f3d000-b7f44000 r-xp 00000000 03:01 
700791     /lib/tls/libnss_compat-2.3.5.so
b7f44000-b7f46000 rwxp 00006000 03:01 
700791     /lib/tls/libnss_compat-2.3.5.so
b7f46000-b7f4e000 r-xp 00000000 03:01 
326880     /usr/lib/j2se/1.4/jre/lib/i386/native_threads/libhpi.so
b7f4e000-b7f4f000 rwxp 00007000 03:01 
326880     /usr/lib/j2se/1.4/jre/lib/i386/native_threads/libhpi.so
b7f50000-b7f65000 r-xp 00000000 03:01 700598     /lib/ld-2.3.5.so
b7f65000-b7f67000 rwxp 00014000 03:01 700598     /lib/ld-2.3.5.so
bfc4f000-bfc65000 rwxp bfc4f000 00:00 0          [stack]
ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]

Heap at VM Abort:
Heap
 def new generation   total 576K, used 181K [0xab910000, 0xab9b0000, 
0xabdf0000)
  eden space 512K,  35% used [0xab910000, 0xab93d6b0, 0xab990000)
  from space 64K,   0% used [0xab990000, 0xab990000, 0xab9a0000)
  to   space 64K,   0% used [0xab9a0000, 0xab9a0000, 0xab9b0000)
 tenured generation   total 1408K, used 0K [0xabdf0000, 0xabf50000, 
0xaf910000)
   the space 1408K,   0% used [0xabdf0000, 0xabdf0000, 0xabdf0200, 0xabf50000)
 compacting perm gen  total 4096K, used 1037K [0xaf910000, 0xafd10000, 
0xb3910000)
   the space 4096K,  25% used [0xaf910000, 0xafa13490, 0xafa13600, 0xafd10000)

Local Time = Mon Nov 21 16:07:19 2005
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.2-02 mixed mode)
#
# An error report file has been saved as hs_err_pid23694.log.
# Please refer to the file for further information.
#
Starting AFS cache scan...