-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
22
-
x86_64
-
linux
SBR JDK22 b27
two tests
com/sun/jdi/JdwpNetProps.java
com/sun/jdi/RedefineStep.java
are impacting each other
[debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/linux-x64.jdk/jdk-22/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/5/com/sun/jdi/JdwpNetProps.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/5/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=0.78125 -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-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp -ea -esa -agentlib:jdwp=transport=dt_socket,address=localhost:0,server=y,suspend=y -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true HelloWorld
[debuggee] Listening for transport dt_socket at address: 36635
Debuggee is listening on localhost:36635
Connecting from 127.0.0.1, expected: Failure
----------System.err:(12/692)----------
java.lang.RuntimeException: ERROR: attached successfully
at JdwpNetProps$ListenTest.run(JdwpNetProps.java:196)
at JdwpNetProps.main(JdwpNetProps.java:114)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: ERROR: attached successfully
at the same time the test com/sun/jdi/RedefineStep.java also fails
[debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/linux-x64.jdk/jdk-22/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/24/com/sun/jdi/RedefineStep.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/24/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=0.78125 -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-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp -ea -esa -agentlib:jdwp=transport=dt_socket,server=y,suspend=y RedefineStepTarg
[debuggee] Listening for transport dt_socket at address: 36635
[debuggee] Listening for transport dt_socket at address: 34827
[debuggee] jj0
[debuggee] a2
[debuggee] jj3
[debuggee] done
[jdb] java.net.ConnectException: Connection refused
[jdb] at java.base/sun.nio.ch.Net.connect0(Native Method)
[jdb] at java.base/sun.nio.ch.Net.connect(Net.java:589)
[jdb] at java.base/sun.nio.ch.Net.connect(Net.java:578)
[jdb] at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
[jdb] at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
[jdb] at java.base/java.net.Socket.connect(Socket.java:752)
[jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:263)
[jdb] at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
[jdb] at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:565)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:369)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.Env.init(Env.java:63)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.TTY.main(TTY.java:1176)
[jdb]
[jdb] Fatal error:
[jdb] Unable to attach to target VM.
[jdb]
=======================================
Exception thrown during test execution: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
=======================================
----------System.err:(15/1058)*----------
java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
at lib.jdb.Jdb.waitForPrompt(Jdb.java:212)
at lib.jdb.Jdb.waitForPrompt(Jdb.java:162)
at lib.jdb.JdbTest.setup(JdbTest.java:129)
at lib.jdb.JdbTest.run(JdbTest.java:95)
at RedefineStep.main(RedefineStep.java:60)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
This looks like a re-incarnation of https://bugs.openjdk.org/browse/JDK-8231915
further analysis details in comments
two tests
com/sun/jdi/JdwpNetProps.java
com/sun/jdi/RedefineStep.java
are impacting each other
[debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/linux-x64.jdk/jdk-22/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/5/com/sun/jdi/JdwpNetProps.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/5/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=0.78125 -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-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp -ea -esa -agentlib:jdwp=transport=dt_socket,address=localhost:0,server=y,suspend=y -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true HelloWorld
[debuggee] Listening for transport dt_socket at address: 36635
Debuggee is listening on localhost:36635
Connecting from 127.0.0.1, expected: Failure
----------System.err:(12/692)----------
java.lang.RuntimeException: ERROR: attached successfully
at JdwpNetProps$ListenTest.run(JdwpNetProps.java:196)
at JdwpNetProps.main(JdwpNetProps.java:114)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: ERROR: attached successfully
at the same time the test com/sun/jdi/RedefineStep.java also fails
[debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/linux-x64.jdk/jdk-22/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/24/com/sun/jdi/RedefineStep.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/24/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+27-2262/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=0.78125 -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-S23541/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07b5685c-b463-49b7-9a7e-2589cb40b488/runs/e5f6317a-d3e1-4047-8f4b-c6bb15723c8a/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp -ea -esa -agentlib:jdwp=transport=dt_socket,server=y,suspend=y RedefineStepTarg
[debuggee] Listening for transport dt_socket at address: 36635
[debuggee] Listening for transport dt_socket at address: 34827
[debuggee] jj0
[debuggee] a2
[debuggee] jj3
[debuggee] done
[jdb] java.net.ConnectException: Connection refused
[jdb] at java.base/sun.nio.ch.Net.connect0(Native Method)
[jdb] at java.base/sun.nio.ch.Net.connect(Net.java:589)
[jdb] at java.base/sun.nio.ch.Net.connect(Net.java:578)
[jdb] at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
[jdb] at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
[jdb] at java.base/java.net.Socket.connect(Socket.java:752)
[jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:263)
[jdb] at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
[jdb] at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:565)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:369)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.Env.init(Env.java:63)
[jdb] at jdk.jdi/com.sun.tools.example.debug.tty.TTY.main(TTY.java:1176)
[jdb]
[jdb] Fatal error:
[jdb] Unable to attach to target VM.
[jdb]
=======================================
Exception thrown during test execution: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
=======================================
----------System.err:(15/1058)*----------
java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
at lib.jdb.Jdb.waitForPrompt(Jdb.java:212)
at lib.jdb.Jdb.waitForPrompt(Jdb.java:162)
at lib.jdb.JdbTest.setup(JdbTest.java:129)
at lib.jdb.JdbTest.run(JdbTest.java:95)
at RedefineStep.main(RedefineStep.java:60)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: waitForPrompt timed out after 240 seconds, looking for '<?[a-zA-Z0-9_-]*>?\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
This looks like a re-incarnation of https://bugs.openjdk.org/browse/JDK-8231915
further analysis details in comments
- duplicates
-
JDK-8311990 Two JDI tests may interfere with each other
- Resolved