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/05/30 21:29:15 UTC

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

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
         Environment: Windows
            Reporter: Andrew Niefer


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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508766 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

BTW, should (1) from https://bugs.eclipse.org/bugs/show_bug.cgi?id=189690 be raised against Harmony, rather than fixing Eclipse launcher?

To me it looks like the question of correct .def file.

> [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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-4006:
---------------------------------------

    Attachment: HARMONY-4006.patch

Attached is the patch to fix CUNIT tests. Will be applied after code freeze.

> [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, HARMONY-4006.patch, 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508765 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

Andrew,

could you, please, attach debugging symbols and source code for eclipse_1018.dll?

With the patch from HARMONY-4038 applied I now observe failure (access violation writing address 0x0) in eclipse_1018.dll with the following stack:

>	eclipse_1018.dll!10003a3e()

nearest disassembly is

10003A2B  mov         eax,dword ptr [ebp-20h] 
10003A2E  push        eax  
10003A2F  call        dword ptr ds:[1000C16Ch] 
10003A35  add         esp,8 
10003A38  mov         dword ptr [ebp-8],eax 
10003A3B  mov         ecx,dword ptr [ebp-8] 
10003A3E  mov         word ptr [ecx],0                        <-- point of failure

Thank you.

> [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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509061 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

Should eclipse.exe account for forward slashes on Windows?

The problem is here:

c = _tcsrchr(buffer, dirSeparator);

where dirSeparator is '\' on Windows and I specify the path in the form of "c:/mydir/hdk/jre/bin/default/harmonyvm.dll". If eclipse.exe do not find backward slashes - it crashes on Windows.


> [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, 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509066 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

With eclipse-way-valid :) path specified and patches from HARMONY-4038 and from this JIRA applied eclipse starts, but do not find Harmony JRE.

But I think this is different issue which is not related to starting with standard launcher in any way.

Mission accomplished. :) I believe these patches will be applied as soon as code unfrozen.

> [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, 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509062 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

AFAIK, the paths with forward slashes are valid on Windows.

> [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, 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.


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

Posted by "Andrew Niefer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Niefer updated HARMONY-4006:
-----------------------------------

    Attachment: library.zip

Zip contains source for windows and linux gtk.  Debug versions of eclipse.exe and eclipse_1019d.dll are under library/win32.

Source is also available under CVS: dev.eclipse.org:/cvsroot/eclipse/org.eclipse.equinox.executable/library.

The attach zip differs from CVS only in eclipseJNI.c/startJavaJNI where there is an extra check for _JNI_CreateJavaVM@12 (which should no longer be necessary with the change to the export decorations).

> [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, 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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530459 ] 

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

BTW I found a funny bug, I think it is in Eclipse. When I run eclipse with Sun or Harmony VM on Linux like this:

./eclipse -vm /opt/sun-jdk-1.5.0.12/jre/lib/i386/client/libjvm.so

Eclipse starts up just fine, but its startup page if I get no workspace and clean configuration is different from the normal launch. It shows Welcome window, but inside of it instead of pictures I see URL links pointing to "URLs" like "org.eclipse.ui.intro/showPage?id=overview". These "links" obviously don't work in mozilla.

> [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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Pervov updated HARMONY-4006:
----------------------------------

    Attachment: JNI_invocation_no_decorate.patch

This patch fixes DRLVM to export JNI invocation API without "stdcall" decoration.

Eclipse still fails the same way as described above.

> [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, JNI_invocation_no_decorate.patch
>
>
> 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Pervov updated HARMONY-4006:
----------------------------------

    Attachment: JNI_invocation_no_decorate.patch

Here is the corrected patch to compile on Windows x86-64 correctly too.

> [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, 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.


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

Posted by "Andrew Niefer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Niefer updated HARMONY-4006:
-----------------------------------

    Attachment: eclipse_1018.dll

With a recent eclipse (3.3RC2), copy attached eclipse_1018.dll to eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.0.*
(this dll looks for the _JNI_CreateJavaVM@12 symbol in addition to the normal JNI_CreateJavaVM)

Set PATH & JAVA_HOME for harmony, start eclipse with the command
eclipse -vm /harmony/jre/bin/default/harmonyvm.dll

> 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
>         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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-4006.
--------------------------------------


No response, assuming ok.

> [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, HARMONY-4006.patch, 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512022 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

The problem on Linux is in different TLS models used in eclipse launcher and harmony VM. Will investigate further to find out the way to fix this.

> [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, 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.


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508788 ] 

Pavel Pervov commented on HARMONY-4006:
---------------------------------------

As no debugging symbols available, I can't continue to evaluate this for now. Waiting for an update. Thanks.

> [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, JNI_invocation_no_decorate.patch
>
>
> 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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-4006:
---------------------------------------

    Patch Info: [Patch Available]

> [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, HARMONY-4006.patch, 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.


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

Posted by "Andrew Niefer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511477 ] 

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

The problem with forward slashes on windows will be tracked by https://bugs.eclipse.org/bugs/show_bug.cgi?id=195384.  

Finding the harmony JRE without having to specify it explicitly will be tracked by https://bugs.eclipse.org/bugs/show_bug.cgi?id=196006 (which is a trivial fix once we know it isn't going to crash :) )

Does the simple launcher from HARMONY-4038 work on linux?  I have not yet compiled harmony on windows, but I still had problems on linux after compiling with that patch.

> [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, 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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky reassigned HARMONY-4006:
------------------------------------------

    Assignee: Gregory Shimansky

> [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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-4006.
----------------------------------------

    Resolution: Fixed

Patches are applied at 582306. Now eclipse launcher should work with harmonyvm.dll.

> [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, HARMONY-4006.patch, 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.


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

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov updated HARMONY-4006:
-------------------------------------

    Component/s: DRLVM
        Summary: [drlvm][init] Eclipse launcher can't start Harmony VM using JNI Invocation API.  (was: Eclipse launcher can't start Harmony VM using JNI Invocation API.)

> [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.


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

Posted by "Andrew Niefer (JIRA)" <ji...@apache.org>.
    [ 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.