Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8219650

[TESTBUG] Fix crashes in new test hotspot gtest "test_print_hex_dump"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b11

      Backports

        Description

        The new test "test_print_hex_dump", introduced with JDK-8217994 has the issue, that it could cause access to an unaligned address. We've observed crashes on Solaris. Furthermore, the test should run as TEST_VM, because it uses VM features such as ResourceMark. This won't be a problem if the complete test suite is run but for standalone usage, it'll cause problems.

        ---

        After discussing this, we thing that
        - test should use TEST_VM
        - the alignment problems are real issues and should be fixed in os::print_hex_dump();

        ---

        Update: for the record, we had the following issues:

        - Test did not use TEST_VM so signal handlers could be missing depending on test order
        - os::print_hex_dump() had alignment problems.
        - On Windows, the gtest will not work since SEH frame is missing. This is a general problem for gtests and I opened a separate issue for this (JDK-8220220)
        - On AIX, we can read from zero page (address 0) and therefore the test must use a different unreadable address

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stuefe Thomas Stuefe
                Reporter:
                clanger Christoph Langer
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: