GTest os_linux.addr_to_function_valid cannot run without VM

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot

      The GTest `os_linux.addr_to_function_valid` test trying to lookup a function symbol name from an address via `dll_address_to_function_name`. The test seems to be purposely written to not use a VM test. However `dll_address_to_function_name` requires a Mutex if called from a not `VMError` context.

      If the no VM property was not important we can change this to a VM test. Alternatively we create a way to mock a `VMError` if we want to make sure that `dll_address_to_function_name` works even if we were to crash very early on in the VM startup.

      A naive approach would be to just set `VMError::_first_error_tid` during this test, but this would wreck havoc if we were to actually crash inside.

            Assignee:
            Unassigned
            Reporter:
            Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: