eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 722 forks source link

JdwpAttachTest_FAILED com/sun/jdi/JdwpAttachTest.java RuntimeException: ERROR: attach failed but was expected to succeed #19429

Open JasonFengJ9 opened 6 months ago

JasonFengJ9 commented 6 months ago

Failure link

From an internal build(cent9x86-rtp-rt5-1):

openjdk version "22.0.1-beta" 2024-04-16
IBM Semeru Runtime Open Edition 22.0.1+8-202404300016 (build 22.0.1-beta+8-202404300016)
Eclipse OpenJ9 VM 22.0.1+8-202404300016 (build master-4d2287797, JRE 22 Linux amd64-64-Bit Compressed References 20240430_147 (JIT enabled, AOT enabled)
OpenJ9   - 4d2287797
OMR      - 33a1542b9
JCL      - ac61bd904 based on jdk-22.0.1+8)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-04-30T02:56:51.855Z] variation: Mode650
[2024-04-30T02:56:51.855Z] JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

[2024-04-30T02:59:57.057Z] TEST: com/sun/jdi/JdwpAttachTest.java

[2024-04-30T02:59:57.058Z] Command line: ['/home/jenkins/workspace/Test_openjdk22_j9_extended.openjdk_x86-64_linux_testList_0/jdkbinary/j2sdk-image/bin/java' '-ea' '-esa' '-Xmx512m' '-XX:-UseCompressedOops' '-Xverbosegclog' '-agentlib:jdwp=transport=dt_socket,address=fe80:0:0:0:51dc:2972:9493:7ddb%3:50493,server=n,suspend=n' '-cp' '/home/jenkins/workspace/Test_openjdk22_j9_extended.openjdk_x86-64_linux_testList_0/aqa-tests/TKG/output_17144391595350/JdwpAttachTest_1/work/classes/0/com/sun/jdi/JdwpAttachTest.d:/home/jenkins/workspace/Test_openjdk22_j9_extended.openjdk_x86-64_linux_testList_0/aqa-tests/TKG/output_17144391595350/JdwpAttachTest_1/work/classes/0/test/lib' 'jdk.test.lib.apps.LingeredApp' '482c5cb2-72df-4eba-a002-6dfe8699bae0.lck']
[2024-04-30T02:59:57.058Z] LingeredApp failed to start or failed to crash. isAlive=false: java.io.IOException: App exited unexpectedly with 2
[2024-04-30T02:59:57.058Z]  LingeredApp stdout: [];
[2024-04-30T02:59:57.058Z]  LingeredApp stderr: [ERROR: transport error 202: connect failed: Connection timed out
[2024-04-30T02:59:57.058Z] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
[2024-04-30T02:59:57.058Z] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:700]
[2024-04-30T02:59:57.058Z] ]
[2024-04-30T02:59:57.058Z]  LingeredApp exitValue = 2
[2024-04-30T02:59:57.058Z] LingeredApp startup took 130146ms
[2024-04-30T02:59:57.058Z] Check for hs_err_pid/core/mdmp files:
[2024-04-30T02:59:57.058Z] None.
[2024-04-30T02:59:57.058Z] STDERR:
[2024-04-30T02:59:57.058Z] java.lang.RuntimeException: ERROR: attach failed but was expected to succeed
[2024-04-30T02:59:57.058Z]  at JdwpAttachTest.attachTest(JdwpAttachTest.java:143)
[2024-04-30T02:59:57.058Z]  at JdwpAttachTest.main(JdwpAttachTest.java:71)
[2024-04-30T02:59:57.058Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2024-04-30T02:59:57.058Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2024-04-30T02:59:57.058Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
[2024-04-30T02:59:57.058Z]  at java.base/java.lang.Thread.run(Thread.java:1582)
[2024-04-30T02:59:57.058Z] 
[2024-04-30T02:59:57.058Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: ERROR: attach failed but was expected to succeed

[2024-04-30T03:00:11.486Z] JdwpAttachTest_1_FAILED

50x internal grinder - passed

JDK21 x86-64(cent9x86-rtp-rt3-1)

[2024-04-30T01:38:06.165Z] Command line: ['/home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_testList_1/jdkbinary/j2sdk-image/bin/java' '-ea' '-esa' '-Xmx512m' '-XX:+UseCompressedOops' '-Xverbosegclog' '-agentlib:jdwp=transport=dt_socket,address=fe80:0:0:0:4668:e785:c2ca:6873%3:55565,server=n,suspend=n' '-cp' '/home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_testList_1/aqa-tests/TKG/output_1714438287364/JdwpAttachTest_0/work/classes/0/com/sun/jdi/JdwpAttachTest.d:/home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_testList_1/aqa-tests/TKG/output_1714438287364/JdwpAttachTest_0/work/classes/0/test/lib' 'jdk.test.lib.apps.LingeredApp' '3b337fe6-539f-40fd-9720-db75af4bb94b.lck']
[2024-04-30T01:38:06.165Z] LingeredApp failed to start or failed to crash. isAlive=false: java.io.IOException: App exited unexpectedly with 2
[2024-04-30T01:38:06.165Z]  LingeredApp stdout: [];
[2024-04-30T01:38:06.165Z]  LingeredApp stderr: [ERROR: transport error 202: connect failed: Connection timed out
[2024-04-30T01:38:06.165Z] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
[2024-04-30T01:38:06.165Z] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:700]
[2024-04-30T01:38:06.165Z] ]
[2024-04-30T01:38:06.165Z]  LingeredApp exitValue = 2
[2024-04-30T01:38:06.165Z] LingeredApp startup took 132084ms
[2024-04-30T01:38:06.165Z] Check for hs_err_pid/core/mdmp files:
[2024-04-30T01:38:06.165Z] None.
[2024-04-30T01:38:06.165Z] STDERR:
[2024-04-30T01:38:06.165Z] java.lang.RuntimeException: ERROR: attach failed but was expected to succeed

This is a new test

JasonFengJ9 commented 4 weeks ago

openjdk21_j9_extended.openjdk_x86-64_linux(cent9x86-svl-rt7-1)

[2024-10-08T19:27:24.416Z] variation: Mode150
[2024-10-08T19:27:24.416Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-10-08T19:30:21.210Z] TEST: com/sun/jdi/JdwpAttachTest.java

[2024-10-08T19:30:21.216Z] STDERR:
[2024-10-08T19:30:21.216Z] java.lang.RuntimeException: ERROR: attach failed but was expected to succeed
[2024-10-08T19:30:21.216Z]  at JdwpAttachTest.attachTest(JdwpAttachTest.java:143)
[2024-10-08T19:30:21.216Z]  at JdwpAttachTest.main(JdwpAttachTest.java:71)

[2024-10-08T19:30:33.337Z] JdwpAttachTest_0_FAILED

50x grinder - passed