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

JDI MonitorWaitedRequest/MonitorWaitedRequest001 test failed with ERROR: Unexpected event MonitorWaited

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 17.0.18-oracle
    • core-svc
    • aarch64
    • linux

      The following test failed in the JDK17u-cpu CI:

      vmTestbase/nsk/jdi/MonitorWaitedRequest/MonitorWaitedRequest001/TestDescription.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/1358)----------
      command: main nsk.share.jdi.StressTestTemplate -verbose -arch=linux-aarch64 -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="-XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/f7f8bd65-a387-4a2b-b519-702f2fefaf87-S315066/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/dacb1919-6a95-46c1-9c13-9399d6270588/runs/7ebcad78-1df9-4988-a505-eef3f0712b5a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/tmp -server" -eventTypes MONITOR_WAITED -debuggeeClassName nsk.share.jdi.MonitorEventsDebuggee -eventsNumber 100
      reason: User specified action: run main/othervm nsk.share.jdi.StressTestTemplate -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="${test.vm.opts} ${test.java.opts}" -eventTypes MONITOR_WAITED -debuggeeClassName nsk.share.jdi.MonitorEventsDebuggee -eventsNumber 100
      started: Wed Aug 20 17:54:08 UTC 2025
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi,java.base --add-exports jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED --add-opens jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
      finished: Wed Aug 20 17:54:23 UTC 2025
      elapsed time (seconds): 14.555
      ----------configuration:(7/276)----------

      <snip>

      [17:54:22.667] expected event: com.sun.jdi.event.MonitorWaitedEvent monitor: instance of nsk.share.jdi.MonitorWaitExecutor_2Subclass(id=853) thread: instance of nsk.share.jdi.JDIEventsDebuggee$EventActionsThread(name='Thread-15', id=848) timedout: false
      [17:54:22.667] expected event: com.sun.jdi.event.MonitorWaitedEvent monitor: instance of nsk.share.jdi.MonitorWaitExecutor_2Subclass(id=853) thread: instance of nsk.share.jdi.JDIEventsDebuggee$EventActionsThread(name='Thread-15', id=848) timedout: false
      [17:54:22.750] # ERROR: Unexpected event MonitorWaited@java.lang.Object.wait(long)+-1 in thread Thread-15. Details(MonitorWaitedEvent): Monitor: instance of nsk.share.jdi.MonitorWaitExecutor_2Subclass(id=853) Thread: instance of nsk.share.jdi.JDIEventsDebuggee$EventActionsThread(name='Thread-15', id=848) Timedout: false
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: Unexpected event MonitorWaited@java.lang.Object.wait(long)+-1 in thread Thread-15. Details(MonitorWaitedEvent): Monitor: instance of nsk.share.jdi.MonitorWaitExecutor_2Subclass(id=853) Thread: instance of nsk.share.jdi.JDIEventsDebuggee$EventActionsThread(name='Thread-15', id=848) Timedout: false
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:360)
      at nsk.share.Log.complain(Log.java:331)
      at nsk.share.jdi.JDIEventsDebugger.checkEvents(JDIEventsDebugger.java:347)
      at nsk.share.jdi.JDIEventsDebugger$EventListener.eventReceived(JDIEventsDebugger.java:222)
      at nsk.share.jdi.EventHandler.run(EventHandler.java:172)
      at java.base/java.lang.Thread.run(Thread.java:842)
      [17:54:22.799] # ERROR: Expected event was not generated: com.sun.jdi.event.MonitorWaitedEvent monitor: instance of nsk.share.jdi.MonitorWaitExecutor_2Subclass(id=853) thread: instance of nsk.share.jdi.JDIEventsDebuggee$EventActionsThread(name='Thread-15', id=848) timedout: true
      [17:54:22.801] debugee.stderr> [17:54:22.800] Debuggee: received the command: waitExecutionCompletion
      [17:54:22.802] debugee.stderr> [17:54:22.802] In breakpoint method: 'AbstractDebuggeeTest.breakpointMethod()'
      [17:54:22.803] debugee.stderr> [17:54:22.802] Debuggee nsk.share.jdi.MonitorEventsDebuggee : sending the command: ready
      [17:54:22.803] EventHandler> Received event set with policy = SUSPEND_NONE
      [17:54:22.803] EventHandler> Event: MonitorWaitedEventImpl req monitor waited request (enabled)
      [17:54:22.805] EventHandler> finished
      [17:54:22.807] debugee.stderr> [17:54:22.806] Debuggee: received the command: quit
      [17:54:22.807] debugee.stderr> [17:54:22.806] Debuggee: exiting
      [17:54:23.185] Debuggee's process finished with status: 95
      [17:54:23.185] TEST FAILED

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: