Strange issue while creating Java VM

S

Srihari

Hi all!
I have a tomcat service, which manages a process (for which the native
binaries are available and the platform is Linux). This process in turn
uses the JNI to make calls to java programs.

The jvm library (to be used for the creating a JVM) is specified
explicitly within the native code.

In this scenario, the creation of JVM from native code succeeds only
when client JVM lib is used. When server JVM lib is used, the process
crashes (stack trace is pasted at the end)

Somehow, if I modify the jvm.cfg (the config file present in
<JAVA_HOME>/jre/lib/i386/jvm.cfg where the various JVM configurations
are specified), such that server JVM configuration is on top above
client JVM configuration (by default, its client JVM config which is at
the top in the config file), the creation of JVM succeeds for server
JVM lib.

Will the config file even matter when we explicitly specify the JVM
library to be used? What could be the problem?

Srihari.

Stack Trace:
-----------

#0 0x02af8cef in raise () from /lib/tls/libc.so.6
#1 0x02afa4f5 in abort () from /lib/tls/libc.so.6
#2 0x08170b3c in fatalSignalHandler ()
#3 0x03f8f93b in os::Linux::chained_handler () from
java/jre/lib/i386/server/libjvm.so
#4 0x03f91e54 in JVM_handle_linux_signal () from
java/jre/lib/i386/server/libjvm.so
#5 0x03f90c38 in signalHandler () from
java/jre/lib/i386/server/libjvm.so
#6 <signal handler called>
#7 0x030d05e0 in JVM_NativePath () from
java/jre/lib/i386/client/libjvm.so
#8 0x02cf8ff3 in Java_java_util_zip_ZipEntry_initFields () from
java/jre/lib/i386/libzip.so
#9 0x02cf93af in ZIP_Open () from java/jre/lib/i386/libzip.so
#10 0x03df7977 in ClassLoader::setup_bootstrap_search_path ()
from java/jre/lib/i386/server/libjvm.so
#11 0x03df89b5 in ClassLoader::initialize () from
java/jre/lib/i386/server/libjvm.so
#12 0x03df8a71 in classLoader_init () from
java/jre/lib/i386/server/libjvm.so
#13 0x03e88acf in init_globals () from
java/jre/lib/i386/server/libjvm.so
#14 0x04009d4b in Threads::create_vm () from
java/jre/lib/i386/server/libjvm.so
#15 0x03ecbb08 in JNI_CreateJavaVM () from
java/jre/lib/i386/server/libjvm.so
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top