Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-4006

[drlvm][init] Eclipse launcher can't start Harmony VM using JNI Invocation API.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • Windows
    • Patch Available

    Description

      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

      Attachments

        1. eclipse_1018.dll
          68 kB
          Andrew Niefer
        2. JNI_invocation_no_decorate.patch
          3 kB
          Pavel Pervov
        3. library.zip
          183 kB
          Andrew Niefer
        4. JNI_invocation_no_decorate.patch
          3 kB
          Pavel Pervov
        5. HARMONY-4006.patch
          3 kB
          Gregory Shimansky

        Activity

          People

            gshimansky Gregory Shimansky
            aniefer Andrew Niefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: