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

[drlvm][jit][opt] SIGSEGV during stack dump on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • SUSE9

    Description

      There is some issue in StackInfo, manifesting itself as a segmentation fault during stack dump.
      For example, see HARMONY-1911, HARMONY-1908, HARMONY-1908, HARMONY-1905.
      Typical backtrace is as follows:

      SIGSEGV in VM code.
      Stack trace:
      41: Jitrino::Ia32::StackInfo::readByteSize(unsigned char const*) const (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/codegenerator/ia32/Ia32StackInfo.cpp:107)
      42: Jitrino::Ia32::RuntimeInterface::getBcLocationForNative(Jitrino::MethodDesc*, unsigned long long, unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/codegenerator/ia32/Ia32RuntimeInterface.cpp:78)
      43: Jitrino::Jitrino::GetBcLocationForNative(Jitrino::MethodDesc*, unsigned long long, unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/main/Jitrino.cpp:358)
      44: get_bc_location_for_native (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:590)
      45: Dll_JIT::get_bc_location_for_native(Method*, void*, unsigned short*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/include/dll_jit_intf.h:240)
      46: get_file_and_line (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_trace.cpp:60)
      47: st_get_java_method_info (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_dump.cpp:196)
      48: st_print_stack(Registers*) (/export/users2/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/stack/stack_dump.cpp:242)

      Attachments

        1. 1912_workarround.patch
          0.5 kB
          Vitaly Chaiko
        2. crash_handler.diff
          39 kB
          Ilya Berezhniuk
        3. crash_handler.diff
          33 kB
          Ilya Berezhniuk
        4. crash_handler.diff
          33 kB
          Ilya Berezhniuk
        5. crash_handler.diff
          18 kB
          Ilya Berezhniuk
        6. log_lnx_ia32_after.txt
          22 kB
          Ilya Berezhniuk
        7. log_lnx_ia32_before.txt
          14 kB
          Ilya Berezhniuk
        8. log_win_ia32_after.txt
          1 kB
          Ilya Berezhniuk
        9. stack_test.zip
          2 kB
          Ilya Berezhniuk

        Issue Links

          Activity

            People

              varlax Alexey Varlamov
              varlax Alexey Varlamov
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: