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

six SA tests leave core files behind on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • None
    • b11
    • x86_64
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: