The following test failed in the JDK19 CI:
serviceability/tmtools/jstack/DaemonThreadTest.java
Here's a snippet from the log file:
#section:main
----------messages:(5/308)----------
command: main -XX:+UsePerfData DaemonThreadTest
reason: User specified action: run main/othervm -XX:+UsePerfData DaemonThreadTest
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 1.319
----------configuration:(4/111)----------
Boot Layer
add modules: java.base
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(5/410)----------
[2022-06-17T11:36:14.304291Z] started process 81340 [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2083/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/jstack, 81339] with out/err redirected to './out.7325291932084698397.txt' and './err.7325291932084698397.txt'
[2022-06-17T11:36:14.935847Z] process 81340 finished with exit code = 1
Process output: Exit code: 1
stdout:stderr:81339: File exists
----------System.err:(13/902)----------
java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
at DaemonThreadTest.testThread(DaemonThreadTest.java:88)
at DaemonThreadTest.testNoDaemon(DaemonThreadTest.java:69)
at DaemonThreadTest.main(DaemonThreadTest.java:64)
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:127)
at java.base/java.lang.Thread.run(Thread.java:1596)
JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
----------rerun:(38/8712)*----------
serviceability/tmtools/jstack/DaemonThreadTest.java
Here's a snippet from the log file:
#section:main
----------messages:(5/308)----------
command: main -XX:+UsePerfData DaemonThreadTest
reason: User specified action: run main/othervm -XX:+UsePerfData DaemonThreadTest
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 1.319
----------configuration:(4/111)----------
Boot Layer
add modules: java.base
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(5/410)----------
[2022-06-17T11:36:14.304291Z] started process 81340 [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2083/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/jstack, 81339] with out/err redirected to './out.7325291932084698397.txt' and './err.7325291932084698397.txt'
[2022-06-17T11:36:14.935847Z] process 81340 finished with exit code = 1
Process output: Exit code: 1
stdout:stderr:81339: File exists
----------System.err:(13/902)----------
java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
at DaemonThreadTest.testThread(DaemonThreadTest.java:88)
at DaemonThreadTest.testNoDaemon(DaemonThreadTest.java:69)
at DaemonThreadTest.main(DaemonThreadTest.java:64)
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:127)
at java.base/java.lang.Thread.run(Thread.java:1596)
JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "utils.ThreadStack.getType()" because "<local5>" is null
----------rerun:(38/8712)*----------