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

com/sun/jdi/PrivateTransportTest.java: FATAL ERROR in native method: JDWP No transports initialized

XMLWordPrintable

      The test com/sun/jdi/PrivateTransportTest.java fails on macOS 12 with the following diagnostic:

      -----------------------------8<-----------------------------
      #section:main
      ----------messages:(5/226)----------
      command: main PrivateTransportTest
      reason: User specified action: run main/othervm PrivateTransportTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi
      elapsed time (seconds): 0.323
      ----------configuration:(3/35)----------
      Boot Layer
        add modules: jdk.jdi

      ----------System.out:(7/1762)----------
      Command line: [/opt/teamcity-agent/work/efb45cc305c2e813/jbrsdk/Contents/Home/bin/java -cp /opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/com/sun/jdi/PrivateTransportTest.d:/opt/teamcity-agent/work/efb45cc305c2e813/test/jdk/com/sun/jdi:/opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/test/lib:/opt/teamcity-agent/work/efb45cc305c2e813/test/lib:/opt/teamcity-agent/work/efb45cc305c2e813/jtreg/lib/javatest.jar:/opt/teamcity-agent/work/efb45cc305c2e813/jtreg/lib/jtreg.jar -Djava.awt.headless=false -agentlib:jdwp=transport=private_dt_socket,server=y,suspend=n -classpath /opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/com/sun/jdi/PrivateTransportTest.d HelloWorld ]
      Command line: [/opt/teamcity-agent/work/efb45cc305c2e813/jbrsdk/Contents/Home/bin/java -cp /opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/com/sun/jdi/PrivateTransportTest.d:/opt/teamcity-agent/work/efb45cc305c2e813/test/jdk/com/sun/jdi:/opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/test/lib:/opt/teamcity-agent/work/efb45cc305c2e813/test/lib:/opt/teamcity-agent/work/efb45cc305c2e813/jtreg/lib/javatest.jar:/opt/teamcity-agent/work/efb45cc305c2e813/jtreg/lib/jtreg.jar -Djava.awt.headless=false -agentlib:jdwp=transport=private_dt_socket,server=y,suspend=n -classpath /opt/teamcity-agent/work/efb45cc305c2e813/JTwork/classes/com/sun/jdi/PrivateTransportTest.d HelloWorld]
      FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
      ERROR: transport library not found: private_dt_socket
      ERROR: JDWP Transport private_dt_socket failed to initialize, TRANSPORT_LOAD(509)
      JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:735]

      ----------System.err:(25/1420)----------
       stdout: [FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
      ];
       stderr: [ERROR: transport library not found: private_dt_socket
      ERROR: JDWP Transport private_dt_socket failed to initialize, TRANSPORT_LOAD(509)
      JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:735]
      ]
       exitValue = 134

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:410)
      at PrivateTransportTest.test(PrivateTransportTest.java:106)
      at PrivateTransportTest.main(PrivateTransportTest.java:51)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:829)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
      -----------------------------8<-----------------------------

      The failure was observed on macOS 12.1, macOS 12.2 Beta with both x64 and aarch64. It was observed on JDK11 only. The test passes successfully on 17, 18.

        There are no Sub-Tasks for this issue.

            aharadigopal Adithya Haradi Gopal (Inactive)
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: