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

[DRLVM] Jitrino.OPT crashes on ClassTest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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>

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: