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

vmTestbase/nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java fails with "TestFailure: InterruptedException.getMessage() returns unexpected value (expected is 'attach002a: redefined version'), probably class wasn't redefined"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 18
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      The following test failed in the JDK18 CI:

      vmTestbase/nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java

      Here's a snippet from the log file:

      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): InterruptedException.getMessage(): 'Test InterruptedException'
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): # ERROR: InterruptedException.getMessage() returns unexpected value (expected is 'attach002a: redefined version'), probably class wasn't redefined
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/String;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: [B)

      <snip>

      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): The following stacktrace is for failure analysis.
      TargetApp (stdout): nsk.share.TestFailure: InterruptedException.getMessage() returns unexpected value (expected is 'attach002a: redefined version'), probably class wasn't redefined
      TargetApp (stdout): at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:432)
      TargetApp (stdout): at nsk.share.Log.complain(Log.java:403)
      TargetApp (stdout): at nsk.share.aod.TargetApplicationWaitingAgents.setStatusFailed(TargetApplicationWaitingAgents.java:275)
      TargetApp (stdout): at nsk.jvmti.AttachOnDemand.attach002a.attach002aTarget.targetApplicationActions(attach002aTarget.java:44)
      TargetApp (stdout): at nsk.share.aod.TargetApplicationWaitingAgents.runTargetApplication(TargetApplicationWaitingAgents.java:354)
      TargetApp (stdout): at nsk.jvmti.AttachOnDemand.attach002a.attach002aTarget.main(attach002aTarget.java:51)
      TargetApp (stdout): Waiting for agents finishing
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)

      <snip>

      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/lang/invoke/MemberName;)
      TargetApp (stdout): # ERROR: Agents didn't finish in 300000ms, stop execution (attached agents number: 1, finished agents number: 0)
      TargetApp (stdout): The following stacktrace is for failure analysis.
      TargetApp (stdout): nsk.share.TestFailure: Agents didn't finish in 300000ms, stop execution (attached agents number: 1, finished agents number: 0)
      TargetApp (stdout): at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:432)
      TargetApp (stdout): at nsk.share.Log.complain(Log.java:403)
      TargetApp (stdout): at nsk.share.aod.TargetApplicationWaitingAgents.exitAsFailed(TargetApplicationWaitingAgents.java:289)
      TargetApp (stdout): at nsk.share.aod.TargetApplicationWaitingAgents.waitAgentsFinishing(TargetApplicationWaitingAgents.java:264)
      TargetApp (stdout): at nsk.share.aod.TargetApplicationWaitingAgents.runTargetApplication(TargetApplicationWaitingAgents.java:368)
      TargetApp (stdout): at nsk.jvmti.AttachOnDemand.attach002a.attach002aTarget.main(attach002aTarget.java:51)
      TargetApp (stdout): # ERROR: Stop execution
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: Ljava/util/regex/Pattern$$Lambda$18.0x800000028;)
      TargetApp (stdout): - attach002aAgent00.cpp, 63: NativeAgent-0: ObjectAlloc event received (object class: [Ljava/lang/StackTraceElement;)
      TargetApp (stdout):
      TargetApp (stdout):
      TargetApp (stdout): #>
      TargetApp (stdout): #> SUMMARY: Following errors occured
      TargetApp (stdout): #> during test execution:
      TargetApp (stdout): #>
      TargetApp (stdout): # ERROR: InterruptedException.getMessage() returns unexpected value (expected is 'attach002a: redefined version'), probably class wasn't redefined
      TargetApp (stdout): # ERROR: Agents didn't finish in 300000ms, stop execution (attached agents number: 1, finished agents number: 0)
      TargetApp (stdout): # ERROR: Stop execution
      ----------System.err:(12/754)----------
      nsk.share.Failure: Target application finished with non-zero code 97
      at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:153)
      at nsk.share.aod.AODTestRunner.main(AODTestRunner.java:184)
      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: nsk.share.Failure: Target application finished with non-zero code 97
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: nsk.share.Failure: Target application finished with non-zero code 97
      ----------rerun:(43/9600)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lmesnik Leonid Mesnik
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: