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

jdi/EventSet/suspendPolicy/suspendpolicy009 failed with "debugger: ERROR: eventSet.suspendPolicy() != policyExpected"

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the JDK22 CI:

      vmTestbase/nsk/jdi/EventSet/suspendPolicy/suspendpolicy009/TestDescription.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/1376)----------
      command: main nsk.jdi.EventSet.suspendPolicy.suspendpolicy009 -verbose -arch=linux-x64 -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-x64/jdk-21_linux-x64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/tmp -Dcom.oracle.usagetracker.config.file=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/usage-tracker.cfg "
      reason: User specified action: run main/othervm nsk.jdi.EventSet.suspendPolicy.suspendpolicy009 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
      started: Thu Nov 16 10:07:38 UTC 2023
      Mode: othervm [/othervm specified]
      finished: Thu Nov 16 10:07:40 UTC 2023
      elapsed time (seconds): 1.784
      ----------configuration:(0/0)----------
      ----------System.out:(108/7572)*----------
      --> debugger: launching a debuggee :
      --> debugger: nsk.jdi.EventSet.suspendPolicy.suspendpolicy009a
      binder> VirtualMachineManager: version 22.0
      binder> Finding connector: default
      binder> LaunchingConnector:
      binder> name: com.sun.jdi.CommandLineLaunch
      binder> description: Launches target using Sun Java VM command line and attaches to it
      binder> transport: com.sun.tools.jdi.SunCommandLineLauncher$2@469e55e2
      binder> Connector arguments:
      binder> main=nsk.jdi.EventSet.suspendPolicy.suspendpolicy009a -vbs \u0000-verbose\u0000 \u0000-arch=linux-x64\u0000 \u0000-waittime=5\u0000 \u0000-debugee.vmkind=java\u0000 \u0000-transport.address=dynamic\u0000 \u0000-debugee.vmkeys="-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-x64/jdk-21_linux-x64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/tmp -Dcom.oracle.usagetracker.config.file=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/usage-tracker.cfg "\u0000 \u0000-pipe.port=53585\u0000
      binder> includevirtualthreads=y
      binder> quote=\u0000
      binder> home=/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+24-1907/linux-x64-debug.jdk/jdk-22/fastdebug
      binder> vmexec=java
      binder> suspend=true
      binder> options=-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-x64/jdk-21_linux-x64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/tmp -Dcom.oracle.usagetracker.config.file=/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9638/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0f48902-7edd-46c3-8003-57457e03da4a/runs/43aa0c4f-c12a-47d4-9da5-dfcbe5cb8beb/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdi/usage-tracker.cfg
      binder> Launching debugee
      binder> Waiting for VM initialized
      Initial VMStartEvent received: VMStartEvent in thread main
      --> debugger: debuggee launched
      --> debugger: invocation of the method runTest()
      --> debugger: ......getting ClassPrepareEvent for debuggee's class
      --> debugger: received: ClassPrepareEvent for debuggeeClass
      --> debugger: ......setting up ClassPrepareEvent for breakpointForCommunication
      --> debugger: ......setting up a breakpoint:
      --> debugger: thread: instance of java.lang.Thread(name='main', id=1); class: class nsk.jdi.EventSet.suspendPolicy.suspendpolicy009a (loaded by instance of jdk.internal.loader.ClassLoaders$AppClassLoader(id=211)); method: methodForCommunication; line: lineForComm
      --> debugger: a breakpoint has been set up

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 TESTING BEGINS
      --> debugger: breakpointForCommunication
      debugee.stderr> **> debuggee: debuggee started!

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 0
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread0
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread0
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 1
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread1
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread1
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 2
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread2
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread2
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 3
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread3
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread3
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 4
      --> debugger: ......got : instanceof ThreadDeathEvent
      # ERROR: ##> debugger: ERROR: eventSet.suspendPolicy() != policyExpected
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: ##> debugger: ERROR: eventSet.suspendPolicy() != policyExpected
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:431)
      at nsk.share.Log.complain(Log.java:402)
      at nsk.share.jdi.JDIBase.log3(JDIBase.java:69)
      at nsk.jdi.EventSet.suspendPolicy.suspendpolicy009.testRun(suspendpolicy009.java:383)
      at nsk.jdi.EventSet.suspendPolicy.suspendpolicy009.runTest(suspendpolicy009.java:208)
      at nsk.jdi.EventSet.suspendPolicy.suspendpolicy009.runThis(suspendpolicy009.java:151)
      at nsk.jdi.EventSet.suspendPolicy.suspendpolicy009.run(suspendpolicy009.java:94)
      at nsk.jdi.EventSet.suspendPolicy.suspendpolicy009.main(suspendpolicy009.java:87)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread4
      # ERROR: ##> debugger: eventSet.suspendPolicy() == 0
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread4
      # ERROR: ##> debugger: policyExpected == 2
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 5
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread5
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread5
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 :::::: case: # 6
      debugee.stderr> **> debuggee: 'run': enter :: threadName == thread6
      debugee.stderr> **> debuggee: 'run': exit :: threadName == thread6
      --> debugger: ......got : instanceof ThreadDeathEvent
      --> debugger: breakpointForCommunication

      => nsk/jdi/EventSet/suspendPolicy/suspendpolicy009 TESTING ENDS
      --> debugger: waiting for VMDeathEvent
      --> debugger: waiting for VMDisconnectEvent
      --> debugger: test phase has finished normally
      --> debugger: waiting for the debuggee to finish ...
      --> debugger: ......getting the debuggee's exit status
      --> debugger: ......debuggee returned expected exit status: 95 == PASS_BASE
      TEST FAILED


      #>
      #> SUMMARY: Following errors occured
      #> during test execution:
      #>
      # ERROR: ##> debugger: ERROR: eventSet.suspendPolicy() != policyExpected
      # ERROR: ##> debugger: eventSet.suspendPolicy() == 0
      # ERROR: ##> debugger: policyExpected == 2
      ----------System.err:(0/0)----------
      ----------rerun:(36/9910)*----------

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

              Created:
              Updated: