The oid Oracle identiy server C binary creates JVM (binary is linked with libjvm.so) using JNI intefrace. We are seeing JVM crash on this particular platform in some JNDI APIs. These APIs are part of JDK distribution.
Can we get help from Sun Java team to find out what is going wrong in this API? . The same java class works fine all other platforms (all vendors jdk) including Sparc64 . We found that BasicAttributes.put(null), BasicAttributes.get(null) like
method calls crash JVM.
Here is the java stack, heap stack :
_*1. Java version :*_
$ java -version
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
------------------------------------------------------------------------
*_2. Core stack :_*
#0 0xfdefe057 in _lwp_kill () from /lib/libc.so.1
#1 0xfdefb80b in thr_kill () from /lib/libc.so.1
#2 0xfdeaae3b in raise () from /lib/libc.so.1
#3 0xfde8e889 in abort () from /lib/libc.so.1
#4 0xfee644f2 in __1cCosFabort6Fi_v_ ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
#5 0xfeeb37ae in __1cHVMErrorOreport_and_die6M_v_ ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
#6 0xfed8e375 in __1cMreport_fatal6Fpkci1_v_ ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
#7 0xfed4f937 in __1cIRuntime1bCreturn_address_for_exception6F_pC_ ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
#8 0xf8c6cd16 in ?? ()
#9 0xfd68d40c in ?? ()
#10 0xf4a270a6 in ?? ()
#11 0xfd68d3f0 in ?? ()
#12 0xfd68d3c0 in ?? ()
#13 0x00000000 in ?? ()
...
#80 0xf0ef58d8 in ?? ()
#81 0xf0ef58f8 in ?? ()
#82 0xf0a46fc0 in ?? ()
#83 0xfef28000 in ?? ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
#84 0x0b0d5580 in ?? ()
#85 0x00000002 in ?? ()
#86 0xfd68d57c in ?? ()
#87 0xfec7eb67 in __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ ()
from /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
------------------------------------------------------------------------
_*3. Heap dump :*_
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (43113F32554E54494D45110E435050030A), pid=3807, tid=8
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 interpreted mode)
--------------- T H R E A D ---------------
Current thread (0x0b0d5580): JavaThread "main" [_thread_in_Java, id=8]
Stack: [0xfd596000,0xfd696000), sp=0xfd68d2a4, free space=988k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x2b3667]
V [libjvm.so+0x18e375]
V [libjvm.so+0x14f937]
v ~RuntimeStub::implicit_null_exception Runtime1 stub
j javax.naming.directory.BasicAttributes.get(Ljava/lang/String;)Ljavax/naming/directory/Attribute;+19
j oracle.ldap.ospf.LdapEntry.getAttribute(Ljava/lang/String;)Ljavax/naming/directory/Attribute;+5
j whrep_addjn03.when_add_replace(Loracle/ldap/ospf/PluginDetail;)Loracle/ldap/ospf/PluginResult;+226
v ~StubRoutines::call_stub
V [libjvm.so+0x7eb67]
V [libjvm.so+0x7e9a1]
V [libjvm.so+0x7e96e]
V [libjvm.so+0x1c0464]
V [libjvm.so+0x8afec]
C [oidldapd+0x138c72] sgslpip_invokeJPlg+0x36e
C [oidldapd+0x13cea7] sgslpad_addJPlugin+0x134
C [oidldapd+0x13086b] gslpwra_ExecWhenReplAddPlugin+0x208
C [oidldapd+0x118fbc] gslsbaAddEntry+0x35e7
C [oidldapd+0x10c21a] gslfadADoAdd+0x793
C [oidldapd+0x62e6f] gslarswWorker+0xc8c
C [libc.so.1+0x9d02f]
C [libc.so.1+0x9d320]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0b16cd88 JavaThread "CompilerThread0" daemon [_thread_blocked, id=17]
0x0b16c190 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=16]
0x0b168680 JavaThread "Finalizer" daemon [_thread_blocked, id=14]
0x0b166e88 JavaThread "Reference Handler" daemon [_thread_blocked, id=13]
=>0x0b0d5580 JavaThread "main" [_thread_in_Java, id=8]
Other Threads:
0x0b1656a0 VMThread [id=12]
0x0b16e510 WatcherThread [id=18]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 576K, used 356K [0xf0a00000, 0xf0aa0000, 0xf0ee0000)
eden space 512K, 57% used [0xf0a00000, 0xf0a49380, 0xf0a80000)
from space 64K, 99% used [0xf0a80000, 0xf0a8fff8, 0xf0a90000)
to space 64K, 0% used [0xf0a90000, 0xf0a90000, 0xf0aa0000)
tenured generation total 1408K, used 182K [0xf0ee0000, 0xf1040000, 0xf4a00000)
the space 1408K, 12% used [0xf0ee0000, 0xf0f0d9a8, 0xf0f0da00, 0xf1040000)
compacting perm gen total 4096K, used 1315K [0xf4a00000, 0xf4e00000, 0xf8a00000)
the space 4096K, 32% used [0xf4a00000, 0xf4b48ed0, 0xf4b49000, 0xf4e00000)
Dynamic libraries:
0x08050000 oidldapd
0xfec00000 /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjvm.so
0xfef80000 /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libjava.so
0xfebd0000 /ade/shvaramb_im1014b/oracle/jdk/jre/lib/i386/libverify.so
0xfef70000 /lib/libthread.so.1
0xfe000000 /ade/shvaramb_im1014b/oracle/lib/libclntsh.so.10.1
0xfea80000 /ade/shvaramb_im1014b/oracle/lib/libnnz10.so
0xfdf70000 /lib/libnsl.so.1
0xfea60000 /lib/libsocket.so.1
0xfdf50000 /lib/libgen.so.1
0xfefd0000 /lib/libdl.so.1
0xfdf30000 /lib/libkstat.so.1
0xfde60000 /lib/libc.so.1
0xfddf0000 /lib/libm.so.2
0xfddc0000 /usr/lib/libCrun.so.1
0xfdda0000 /lib/libm.so.1
0xfea40000 /usr/lib/libsched.so.1
0xfdd60000 /lib/libaio.so.1
0xfdd40000 /lib/librt.so.1
0xfdd20000 /lib/libmd5.so.1
0xfd270000 /lib/libmp.so.2
0xfd240000 /lib/libscf.so.1
0xfd210000 /lib/libdoor.so.1
0xfcfe0000 /lib/libuutil.so.1
0xfcfc0000 /project/as10g/qa1/shvaramb/views/view_storage/shvaramb_im1014b/jdk/jre/lib/i386/native_th
reads/libhpi.so
0xfcf80000 /project/as10g/qa1/shvaramb/views/view_storage/shvaramb_im1014b/jdk/jre/lib/i386/libzip.so
0xfad00000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3
VM Arguments:
jvm_args: -Djava.compiler=NONE -Doraclehome=/ade/shvaramb_im1014b/oracle -Xusealtsigs
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=/ade/shvaramb_im1014b/oracle/jdk
...
--------------- S Y S T E M ---------------
OS: Solaris 10 3/05 s10_74L2a X86
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 January 2005
uname:SunOS 5.10 Generic_118844-08 i86pc (T2 libthread)
rlimit: STACK infinity, CORE infinity, NOFILE 65536, AS infinity
load average:0.30 0.29 0.32
CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 4127784k(3277592k free)
vm_info: Java HotSpot(TM) Client VM (1.4.2_12-b03) for solaris-x86, built on May 9 2006 12:47:44 by unkno
wn with Workshop 5.2 compat=5
------------------------------------------------------------------------