JDK-8296646 : com/sun/jdi/JdbLastErrorTest.java test failure
Type:Bug
Component:core-svc
Sub-Component:debugger
Affected Version:20,21
Priority:P4
Status:Open
Resolution:Unresolved
Submitted:2022-11-09
Updated:2023-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
One failure has been spotted since this test for JDK-8292302 was added (ignoring the failures when -Xcomp was in use).
The failure seen was not with -Xint or -Xcomp.
Comments
Here's a log file snippet from the jdk-21+4-138-tier3 sighting:
com/sun/jdi/JdbLastErrorTest.java
----------System.out:(22/2958)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\windows-x64-debug.jdk\\jdk-21\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\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\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError ]
[debuggee]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\windows-x64-debug.jdk\\jdk-21\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-21+4-138\\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\\1671804745\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError
[debuggee] Listening for transport dt_socket at address: 50503
[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] 0
[jdb] >
[jdb] Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=137
[jdb] 68 throw new RuntimeException("failed, lastError = " + lastError);
[jdb]
[jdb] main[1]
=======================================
Exception thrown during test execution: 'The application exited' missing from stdout/stderr
=======================================
> quit
[debuggee] Listening for transport dt_socket at address: 50509
----------System.err:(46/2235)----------
[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
stdout: [Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
VM Started: > No frames on the current call stack
main[1]
>
Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=137
68 throw new RuntimeException("failed, lastError = " + lastError);
main[1] ];
stderr: [Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
VM Started: > No frames on the current call stack
main[1]
>
Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=137
68 throw new RuntimeException("failed, lastError = " + lastError);
main[1] ]
exitValue = -1
[debuggee] Exception in thread "main" java.lang.RuntimeException: failed, lastError = 0
[debuggee] at TestNativeLastError.testWindows(JdbLastErrorTest.java:68)
[debuggee] at TestNativeLastError.main(JdbLastErrorTest.java:49)
java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
at JdbLastErrorTest.runCases(JdbLastErrorTest.java:95)
at lib.jdb.JdbTest.run(JdbTest.java:96)
at JdbLastErrorTest.main(JdbLastErrorTest.java:79)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
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:1623)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
----------rerun:(47/5793)*----------