harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4006) [drlvm][init] Eclipse launcher can't start Harmony VM using JNI Invocation API.
Date Wed, 26 Sep 2007 14:27:51 GMT

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

Gregory Shimansky commented on HARMONY-4006:
--------------------------------------------

I checked attached patches. Both on Linux and Windows everything seems to be working ok for
me, eclipse launcher started on harmony without any crashes. I used original eclipse launcher
and DLL from eclipse 3.3 package with VM patched for name decorations and used backward slashes
on win32 to avoid crash in the launcher.

I think the only problem that is left to be resolved is CUNIT tests that are linked directly
against harmonyvm.dll. On win32 they import functions like JNI_CreateJavaVM as stdcall, which
means name _JNI_CreateJavaVM@12. So it is necessary to change CUNIT tests to access harmonyvm.dll
using FindLibrary instead of linking against it directly.

> [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
>            Assignee: Gregory Shimansky
>         Attachments: eclipse_1018.dll, JNI_invocation_no_decorate.patch, JNI_invocation_no_decorate.patch,
library.zip
>
>
> 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.


Mime
View raw message