You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Niefer (JIRA)" <ji...@apache.org> on 2007/06/08 23:02:26 UTC

[jira] Commented: (HARMONY-4006) [drlvm][init] Eclipse launcher can't start Harmony VM using JNI Invocation API.

    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502931 ] 

Andrew Niefer commented on HARMONY-4006:
----------------------------------------

Stack on linux.  No modifications to eclipse were necessary to load the shared library.

free(): invalid pointer 0x4074ba94!
SIGSEGV in VM code.
Stack trace:
  0: gc_set_tls(void*) (/eclipse/harmony/trunk/working_vm/vm/gc_gen/src/thread/gc_thread.h:41)
  1: mutator_initialize(GC*, void*) (/eclipse/harmony/trunk/working_vm/vm/gc_gen/src/thread/mutator.cpp:54)
  2: gc_thread_init (/eclipse/harmony/trunk/working_vm/vm/gc_gen/src/common/gc_for_vm.cpp:152)
  3: vm_attach (/eclipse/harmony/trunk/working_vm/vm/vmcore/src/thread/thread_generic.cpp:266)
  4: vm_init1(JavaVM_Internal*, JavaVMInitArgs*) (/eclipse/harmony/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:721)
  5: JNI_CreateJavaVM (/eclipse/harmony/trunk/working_vm/vm/vmcore/src/jni/jni.cpp:499)
  6: startJavaJNI (??:-1)
  7: startJavaVM (??:-1)
  8: run (??:-1)
  9: main (??:-1)
 10: __libc_start_main (??:-1)
 11: _start (../sysdeps/i386/elf/start.S:105)
<end of stack trace>
Segmentation fault



> [drlvm][init] Eclipse launcher can't start Harmony VM using JNI Invocation API.
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-4006
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4006
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows
>            Reporter: Andrew Niefer
>         Attachments: eclipse_1018.dll
>
>
> See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=189690
> We would like for the eclipse launcher to be able to start the harmony vm using the JNI invocation API.
> The eclipse launcher does not know anything about the port library.  It looks for the symbol "JNI_CreateJavaVM" and calls it.  If we modify the eclipse launcher to find "_JNI_CreateJavaVM@12" from the harmonyvm.dll, then the result is the following crash:
> Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)     
> 2 harmonyvm!?classloader_find_native@@YAP6AXXZQAUMethod@@@Z()  0x00a8ecd8       
> 1 <symbol is not available> 0x00000000

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.