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

six SA tests leave core files behind on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b11
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following six SA tests leave core files in /cores on macOS:

      serviceability/sa/ClhsdbFindPC.java#id1
      serviceability/sa/ClhsdbFindPC.java#id3
      serviceability/sa/ClhsdbPmap.java#id1
      serviceability/sa/ClhsdbPstack.java#id1
      serviceability/sa/TestJmapCore.java
      serviceability/sa/TestJmapCoreMetaspace.java

      There is another SA test (serviceability/sa/ClhsdbCDSCore.java)
      that generates core files, but it cleans up the core files after the
      test is done:

      $ grep coreFileName open/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java
          private static String coreFileName;
                      coreFileName = CoreUtils.getCoreFileLocation(crashOutput.getStdout());
                  String useSharedSpacesOutput = test.runOnCore(coreFileName, cmds, null, null);
                  test.runOnCore(coreFileName, cmds, expStrMap, unExpStrMap);
              if (coreFileName != null) remove(coreFileName);

      The other SA tests should be updated to cleanup the core files.
      Please note that this is only necessary on systems that put
      the core files in a different directory than the test's execution
      directory (macOS and some Linux configs).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cjplummer Chris Plummer
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: