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

com/sun/jdi/DataDumpTest.java failed with Not a debuggee, or not listening for debugger to attach

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • core-svc
    • b12

      The following new test fails in the JDK24 CI:

      com/sun/jdi/DataDumpTest.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(7/226)----------
      command: driver DataDumpTest
      reason: User specified action: run driver DataDumpTest
      started: Thu Aug 15 17:23:21 UTC 2024
      Mode: agentvm
      Agent id: 24
      finished: Thu Aug 15 17:24:11 UTC 2024
      elapsed time (seconds): 49.48
      ----------configuration:(14/1320)*----------

      <snip>

      ----------System.out:(4/1744)*----------
      Test 1: Debuggee start with datadump=y
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-24+11-1192\\windows-x64-debug.jdk\\jdk-24\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1723741864\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\com\\sun\\jdi\\DataDumpTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-24+11-1192\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1723741864\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.4\\1\\bundles\\jtreg-7.4+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.4\\1\\bundles\\jtreg-7.4+1.zip\\jtreg\\lib\\junit-platform-console-standalone-1.10.2.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.4\\1\\bundles\\jtreg-7.4+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.4\\1\\bundles\\jtreg-7.4+1.zip\\jtreg\\lib\\jcommander-1.82.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.4\\1\\bundles\\jtreg-7.4+1.zip\\jtreg\\lib\\guice-5.1.0.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\22\\36\\bundles\\windows-x64\\jdk-22_windows-x64_bin.zip\\jdk-22 -Djava.io.tmpdir=c:\\sb\\prod\\1723741864\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\tmp -XX:+CreateCoredumpOnCrash -ea -esa -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,datadump=y -XX:+StartAttachListener DataDumpTestTarg ]
      [2024-08-15T17:23:23.220210500Z] Gathering output for process 9552
      Debugger is attaching to: 9552 ...
      ----------System.err:(13/754)----------
      java.io.IOException: Not a debuggee, or not listening for debugger to attach
      at jdk.jdi/com.sun.tools.jdi.ProcessAttachingConnector.attach(ProcessAttachingConnector.java:114)
      at DataDumpTest.attachAndDump(DataDumpTest.java:128)
      at DataDumpTest.runTest(DataDumpTest.java:91)
      at DataDumpTest.main(DataDumpTest.java:66)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:588)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.io.IOException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.io.IOException: Not a debuggee, or not listening for debugger to attach

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

              Created:
              Updated:
              Resolved: