I am trying to create a (p)threaded application on Red Hat 6.1 that uses the
Invocation API.  Unfortunately, things are not going so well.
 
At first, I downloaded the Blackdown 1.2 pre-v2 distribution, but found I
could not link because of glibc incompatibilities as Red Hat 6.1 ships with
glibc 2.1.2.  Then, I switched over to the 1.1.7 distribution, including the
native threads updates, which I can successfully build with but when I try
to call JNI_CreateJavaVM, I get a segmentation fault.  The stack crawl looks
something like:
 
in JNI_CreateJavaVM at jni.c:3924
in sysInitializeJavaVM at javai.c:832
in InitializeClassThread at threadruntime.c:111
in sun_misc_VM_unsuspendSomeThreads at threads.c:87
in sysThreadInitializeSystemThreads at threads_md.c:140
in InitializeFinalizerThread at finalize.c:303
in execute_java_constructor at interpreter.c:153
in EE from libjava.so
 
I am going to try to backtrack and get a reduced case scenario, but I am
afraid I don't know enough about Linux or the internals of the Java VM to
make real progress.  So, I have a couple of questions.
 
1) Am I correct in that I cannot use the current Blackdown 1.2 on Red Hat
6.1?
2) Since my application is (p)threaded, am I correct that I need a
native-thread version of the Java VM?
3) Can I use the Invocation API with version 1.1.7 of the Blackdown VM and
native threads?
 
I should mention that I have the same application running correctly on
Win32, so I believe that I am using the Invocation API correctly.  In
particular, I know about attaching threads and so on.  In this case,
however, I am not even getting that far.
 
If anyone can shed some light on this, I would be very grateful.

Tom Otvos
Director of Research, Pervasive Software Inc.

"Don't think you are. Know you are." - Morpheus

 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to