Harmony
  1. Harmony
  2. HARMONY-1688

[DRLVM] Jitrino.OPT crashes on ClassTest

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Environment:
      debug gcc 3.3.3 DRLVM r452709
      SLES 9 32-bit SP2; CPU 2xXeon x64 (Clovertown B, 4cores)

      Description

      The Jitrino.OPT fails with segmentation fault on org.apache.harmony.luni.tests.java.lang.ClassTest.
      To reproduce:

      > java -cp junit.jar:$classlib/modules/luni/bin/test:$classlib/deploy/build/test/support.jar junit.textui.TestRunner org.apache.harmony.luni.tests.java.lang.ClassTest

      SIGSEGV in VM code.
      Stack trace:
      1: Jitrino::TypeManager::toInternalType(Jitrino::Type*) (??:-1)
      2: Jitrino::JavaLabelPrepass::JavaLabelPrepass(Jitrino::MemoryManager&, Jitrino::TypeManager&, Jitrino::MemoryManager&, Jitrino::MethodDesc&, Jitrino::CompilationInterface&, Jitrino::Opnd**) (??:-1)
      3: Jitrino::alloc_arena(Jitrino::Arena*, unsigned int) (??:-1)
      4: Jitrino::alloc_arena(Jitrino::Arena*, unsigned int) (??:-1)
      5: ?? (??:-1)
      6: Jitrino::MemoryManager::alloc(unsigned int) (??:-1)
      7: Jitrino::Tree::computeNodeOrder(Jitrino::TreeNode*, unsigned int&, unsigned int&) (??:-1)
      8: ?? (??:-1)
      9: ?? (??:-1)
      10: Jitrino::JavaByteCodeTranslator::JavaByteCodeTranslator(Jitrino::CompilationInterface&, Jitrino::MemoryManager&, Jitrino::IRBuilder&, Jitrino::ByteCodeParser&, Jitrino::MethodDesc&, Jitrino::TypeManager&, Jitrino::JavaFlowGraphBuilder&) (??:-1)
      11: ?? (0015d890:15)
      12: Jitrino::MemoryManager::alloc(unsigned int) (??:-1)
      13: ?? (??:-1)
      14: Jitrino::JavaFlowGraphBuilder::JavaFlowGraphBuilder(Jitrino::MemoryManager&, Jitrino::IRBuilder&) (??:-1)
      15: method_get_byte_code_addr (/nfs/ins/proj/drl/coreapi/avarlamo/harmony/linux.ia32/svn-repo/drlvm/vm/vmcore/src/class_support/C_Interface.cpp:365)
      16: ?? (??:-1)
      17: ?? (??:-1)
      18: Jitrino::JavaTranslator::translateMethod(Jitrino::CompilationInterface&, Jitrino::MethodDesc&, Jitrino::IRBuilder&) (??:-1)
      <end of stack trace>

      1. H-1688.ClassTest.patch
        3 kB
        Alexey Varlamov
      2. H-1688_VM-initiating-loaders-support.patch
        7 kB
        Eugene S. Ostrovsky

        Issue Links

          Activity

          Alexey Varlamov created issue -
          Alexey Varlamov made changes -
          Field Original Value New Value
          Link This issue incorporates HARMONY-1802 [ HARMONY-1802 ]
          Alexey Varlamov made changes -
          Attachment H-1688.ClassTest.patch [ 12342647 ]
          Eugene S. Ostrovsky made changes -
          Alexey Varlamov made changes -
          Link This issue incorporates HARMONY-1895 [ HARMONY-1895 ]
          Geir Magnusson Jr made changes -
          Assignee Geir Magnusson Jr [ geir ]
          Geir Magnusson Jr made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Geir Magnusson Jr made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Geir Magnusson Jr
              Reporter:
              Alexey Varlamov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development