-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
21
-
x86_64
-
windows
The following test failed in the JDK21 CI:
com/sun/jdi/JdbLastErrorTest.java
Here's a snippet from the log file:
#section:main
----------messages:(7/301)----------
command: main JdbLastErrorTest
reason: User specified action: run main/othervm JdbLastErrorTest
started: Wed Apr 12 11:00:29 UTC 2023
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jdi
finished: Wed Apr 12 11:00:34 UTC 2023
elapsed time (seconds): 5.39
----------configuration:(3/38)----------
Boot Layer
add modules: jdk.jdi
----------System.out:(22/2850)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\windows-x64.jdk\\jdk-21\\bin\\java.exe -cp C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\tmp -ea -esa --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError ]
[debuggee]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\windows-x64.jdk\\jdk-21\\bin\\java.exe -cp C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\tmp -ea -esa --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError
[debuggee] Listening for transport dt_socket at address: 64269
[jdb] Set uncaught java.lang.Throwable
[jdb] Set deferred uncaught java.lang.Throwable
[jdb] Initializing jdb ...
[jdb]
[jdb] VM Started: > No frames on the current call stack
[jdb]
[jdb] main[1]
> run
[debuggee] lastError = 0
[jdb] >
[jdb] Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=70 bci=157
[jdb] 70 throw new RuntimeException("failed, lastError = " + lastError);
[jdb]
[jdb] main[1]
=======================================
Exception thrown during test execution: 'lastError = 42' missing from stdout/stderr
=======================================
> quit
[debuggee] Listening for transport dt_socket at address: 64276
----------System.err:(35/2201)----------
[debuggee] WARNING: A restricted method in java.lang.foreign.Linker has been called
[debuggee] WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
[debuggee] WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
[debuggee] iteration 0 got lastError = 0 (expected 42)
stdout: [Listening for transport dt_socket at address: 64269
WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
lastError = 0
iteration 0 got lastError = 0 (expected 42)];
stderr: [Listening for transport dt_socket at address: 64269
WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
lastError = 0
iteration 0 got lastError = 0 (expected 42)]
exitValue = -1
[debuggee] Exception in thread "main" java.lang.RuntimeException: failed, lastError = 0
[debuggee] at TestNativeLastError.testWindows(JdbLastErrorTest.java:70)
[debuggee] at TestNativeLastError.main(JdbLastErrorTest.java:49)
java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
at JdbLastErrorTest.runCases(JdbLastErrorTest.java:98)
at lib.jdb.JdbTest.run(JdbTest.java:96)
at JdbLastErrorTest.main(JdbLastErrorTest.java:81)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1592)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
----------rerun:(44/5718)*----------
com/sun/jdi/JdbLastErrorTest.java
Here's a snippet from the log file:
#section:main
----------messages:(7/301)----------
command: main JdbLastErrorTest
reason: User specified action: run main/othervm JdbLastErrorTest
started: Wed Apr 12 11:00:29 UTC 2023
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jdi
finished: Wed Apr 12 11:00:34 UTC 2023
elapsed time (seconds): 5.39
----------configuration:(3/38)----------
Boot Layer
add modules: jdk.jdi
----------System.out:(22/2850)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\windows-x64.jdk\\jdk-21\\bin\\java.exe -cp C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\tmp -ea -esa --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError ]
[debuggee]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\windows-x64.jdk\\jdk-21\\bin\\java.exe -cp C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+18-1481\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.1.1\\1\\bundles\\jtreg-7.1.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\19\\36\\bundles\\windows-x64\\jdk-19_windows-x64_bin.zip\\jdk-19 -Djava.io.tmpdir=c:\\sb\\prod\\1681297018\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\tmp -ea -esa --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError
[debuggee] Listening for transport dt_socket at address: 64269
[jdb] Set uncaught java.lang.Throwable
[jdb] Set deferred uncaught java.lang.Throwable
[jdb] Initializing jdb ...
[jdb]
[jdb] VM Started: > No frames on the current call stack
[jdb]
[jdb] main[1]
> run
[debuggee] lastError = 0
[jdb] >
[jdb] Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=70 bci=157
[jdb] 70 throw new RuntimeException("failed, lastError = " + lastError);
[jdb]
[jdb] main[1]
=======================================
Exception thrown during test execution: 'lastError = 42' missing from stdout/stderr
=======================================
> quit
[debuggee] Listening for transport dt_socket at address: 64276
----------System.err:(35/2201)----------
[debuggee] WARNING: A restricted method in java.lang.foreign.Linker has been called
[debuggee] WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
[debuggee] WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
[debuggee] iteration 0 got lastError = 0 (expected 42)
stdout: [Listening for transport dt_socket at address: 64269
WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
lastError = 0
iteration 0 got lastError = 0 (expected 42)];
stderr: [Listening for transport dt_socket at address: 64269
WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
lastError = 0
iteration 0 got lastError = 0 (expected 42)]
exitValue = -1
[debuggee] Exception in thread "main" java.lang.RuntimeException: failed, lastError = 0
[debuggee] at TestNativeLastError.testWindows(JdbLastErrorTest.java:70)
[debuggee] at TestNativeLastError.main(JdbLastErrorTest.java:49)
java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
at JdbLastErrorTest.runCases(JdbLastErrorTest.java:98)
at lib.jdb.JdbTest.run(JdbTest.java:96)
at JdbLastErrorTest.main(JdbLastErrorTest.java:81)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1592)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'lastError = 42' missing from stdout/stderr
----------rerun:(44/5718)*----------
- duplicates
-
JDK-8307362 Remove test com/sun/jdi/JdbLastErrorTest.java
- Resolved
- relates to
-
JDK-8292302 Windows GetLastError value overwritten by ThreadLocalStorage::thread
- Resolved
-
JDK-8296646 com/sun/jdi/JdbLastErrorTest.java test failure
- Resolved
- links to
-
Review openjdk/jdk/13481