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

SA tests timeout when throwing "SkippedException: SA Attach not expected to work. JDK is hardened."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: External
    • Icon: P4 P4
    • None
    • 19
    • hotspot
    • x86_64
    • os_x

      The following tests timed out in the JDK19 CI:

      sun/tools/jhsdb/JStackStressTest.java
      sun/tools/jhsdb/JShellHeapDumpTest.java
      sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java
      sun/tools/jhsdb/HeapDumpTest.java
      sun/tools/jhsdb/BasicLauncherTest.java
      sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java

      Here's a log file snippet from JStackStressTest.java:

      #section:main
      ----------messages:(7/320)----------
      command: main JStackStressTest
      reason: User specified action: run main/timeout=240 JStackStressTest
      Mode: othervm [test requires non-default system module]
      Additional options from @modules: --add-modules jdk.hotspot.agent,java.management
      Timeout information:
      --- Timeout information end.
      elapsed time (seconds): 969.48
      ----------configuration:(3/61)----------
      Boot Layer
        add modules: jdk.hotspot.agent java.management

      ----------System.out:(7/417)----------
      STDOUT: Executable=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+8-403/macosx-x64-open.jdk/jdk-19.jdk/Contents/Home/bin/java
      STDOUT: Identifier=net.java.openjdk-ea.java
      STDOUT: Format=Mach-O thin (x86_64)
      STDOUT: CodeDirectory v=20500 size=644 flags=0x10000(runtime) hashes=9+7 location=embedded
      Target JDK is hardened. Some tests may be skipped.
      STDOUT: Signature size=8977
      Timeout refired 960 times
      ----------System.err:(12/751)----------
      jtreg.SkippedException: SA Attach not expected to work. JDK is hardened.
      at jdk.test.lib.SA.SATestUtils.skipIfCannotAttach(SATestUtils.java:67)
      at JStackStressTest.main(JStackStressTest.java:104)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: jtreg.SkippedException: SA Attach not expected to work. JDK is hardened.
      JavaTest Message: shutting down test

      STATUS:Passed.Skipped: jtreg.SkippedException: SA Attach not expected to work. JDK is hardened.
      ----------rerun:(37/6960)*----------

      <snip>

      result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+8-403/macosx-x64-open.jdk/jdk-19.jdk/Contents/Home/bin/java' timed out (timeout set to 960000ms, elapsed time including timeout handling was 969476ms).


      Please note that there's no complaint from codesign, e.g.:

      Timed out waiting for the codesign process to complete. Assuming not signed.

      so it seems we have yet another SA test failure mode.

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

              Created:
              Updated:
              Resolved: