Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double128VectorTests NullPointerException Cannot throw exception because the return value of "java.lang.Class.newInternalError(java.lang.Exception)" is null #20389

Open
pshipton opened this issue Oct 21, 2024 · 6 comments

Comments

@pshipton
Copy link
Member

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_aarch64_linux_Nightly_testList_0/88
jdk_vector_double128_j9_0
jdk/incubator/vector/Double128VectorTests.java

23:36:45  test Double128VectorTests.unsliceDouble128VectorTestsMasked(double[-i * 5], double[cornerCaseValue(i)], mask[false]): failure
23:36:45  java.lang.NullPointerException: Cannot throw exception because the return value of "java.lang.Class.newInternalError(java.lang.Exception)" is null
23:36:45  	at java.base/java.lang.Class.copyFields(Class.java:4544)
23:36:45  	at java.base/java.lang.Class.lookupCachedFields(Class.java:4558)
23:36:45  	at java.base/java.lang.Class.getDeclaredFields(Class.java:1029)
23:36:45  	at java.base/jdk.internal.vm.vector.VectorSupport.isNonCapturingLambda(VectorSupport.java:732)
23:36:45  	at java.base/jdk.internal.vm.vector.VectorSupport.shuffleToVector(VectorSupport.java:262)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:810)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:774)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.AbstractShuffle.checkIndexes(AbstractShuffle.java:126)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.rearrangeTemplate(DoubleVector.java:2245)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.rearrange(Double128Vector.java:439)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.rearrange(Double128Vector.java:41)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.sliceTemplate(DoubleVector.java:2131)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.unsliceTemplate(DoubleVector.java:2194)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:424)
23:36:45  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:41)
23:36:45  	at Double128VectorTests.unsliceDouble128VectorTestsMasked(Double128VectorTests.java:3746)
Copy link

Issue Number: 20389
Status: Open
Recommended Components: comp:vm, comp:test, comp:gc
Recommended Assignees: jasonfengj9, pshipton, chengjin01

@pshipton
Copy link
Member Author

pshipton commented Nov 20, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.openjdk_aarch64_linux_Nightly_testList_0/351
jdk/incubator/vector/Double128VectorTests.java

failures: 10, just the first is listed, they are all for the same reason.

20:06:41  test Double128VectorTests.unsliceDouble128VectorTestsMasked(double[-i * 5], double[i + 1], mask[false]): failure
20:06:41  java.lang.NullPointerException: Cannot throw exception because the return value of "java.lang.Class.newInternalError(java.lang.Exception)" is null
20:06:41  	at java.base/java.lang.Class.copyFields(Class.java:4550)
20:06:41  	at java.base/java.lang.Class.lookupCachedFields(Class.java:4564)
20:06:41  	at java.base/java.lang.Class.getDeclaredFields(Class.java:1029)
20:06:41  	at java.base/jdk.internal.vm.vector.VectorSupport.isNonCapturingLambda(VectorSupport.java:732)
20:06:41  	at java.base/jdk.internal.vm.vector.VectorSupport.shuffleToVector(VectorSupport.java:262)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:800)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:764)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.unsliceTemplate(DoubleVector.java:2180)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.unsliceTemplate(DoubleVector.java:2196)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:424)
20:06:41  	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:41)
20:06:41  	at Double128VectorTests.unsliceDouble128VectorTestsMasked(Double128VectorTests.java:3743)

@knn-k
Copy link
Contributor

knn-k commented Nov 21, 2024

40x Grinder, no failure: https://openj9-jenkins.osuosl.org/job/Grinder/3997/

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jan 10, 2025

openjdk21_j9_sanity.openjdk_aarch64_linux(rhel8-aarch64-3)

[2025-01-04T22:48:30.941Z] variation: -Xjit:{*Double128VectorTests*}(count=1,enforceVectorAPIExpansion),disableAsyncCompilation,disableSuffixLogs,verbose={vectorAPI}
[2025-01-04T22:48:30.941Z] JVM_OPTIONS:  -Xjit:{*Double128VectorTests*}(count=1,enforceVectorAPIExpansion),disableAsyncCompilation,disableSuffixLogs,verbose={vectorAPI} -Xverbosegclog 

[2025-01-04T22:54:06.429Z] TEST: jdk/incubator/vector/Double128VectorTests.java

[2025-01-04T22:54:06.438Z] test Double128VectorTests.unsliceDouble128VectorTestsMasked(double[-i * 5], double[0.01 + (i / (i + 1))], mask[true]): failure
[2025-01-04T22:54:06.438Z] java.lang.NullPointerException: Cannot throw exception because the return value of "java.lang.Class.newInternalError(java.lang.Exception)" is null
[2025-01-04T22:54:06.438Z] 	at java.base/java.lang.Class.copyFields(Class.java:4581)
[2025-01-04T22:54:06.438Z] 	at java.base/java.lang.Class.lookupCachedFields(Class.java:4595)
[2025-01-04T22:54:06.438Z] 	at java.base/java.lang.Class.getDeclaredFields(Class.java:1044)
[2025-01-04T22:54:06.438Z] 	at java.base/jdk.internal.vm.vector.VectorSupport.isNonCapturingLambda(VectorSupport.java:732)
[2025-01-04T22:54:06.438Z] 	at java.base/jdk.internal.vm.vector.VectorSupport.shuffleToVector(VectorSupport.java:262)
[2025-01-04T22:54:06.438Z] 	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:800)
[2025-01-04T22:54:06.438Z] 	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector$Double128Shuffle.toVector(Double128Vector.java:764)
[2025-01-04T22:54:06.438Z] 	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.sliceTemplate(DoubleVector.java:2129)
[2025-01-04T22:54:06.438Z] 	at jdk.incubator.vector/jdk.incubator.vector.DoubleVector.unsliceTemplate(DoubleVector.java:2194)
[2025-01-04T22:54:06.439Z] 	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:424)
[2025-01-04T22:54:06.439Z] 	at jdk.incubator.vector/jdk.incubator.vector.Double128Vector.unslice(Double128Vector.java:41)
[2025-01-04T22:54:06.439Z] 	at Double128VectorTests.unsliceDouble128VectorTestsMasked(Double128VectorTests.java:3743)
[2025-01-04T22:54:06.439Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2025-01-04T22:54:06.439Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
[2025-01-04T22:54:06.439Z] 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
[2025-01-04T22:54:06.439Z] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestRunner.privateRun(TestRunner.java:764)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestRunner.run(TestRunner.java:585)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
[2025-01-04T22:54:06.439Z] 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestNG.runSuites(TestNG.java:1069)
[2025-01-04T22:54:06.439Z] 	at org.testng.TestNG.run(TestNG.java:1037)
[2025-01-04T22:54:06.439Z] 	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
[2025-01-04T22:54:06.439Z] 	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
[2025-01-04T22:54:06.439Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2025-01-04T22:54:06.439Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2025-01-04T22:54:06.439Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
[2025-01-04T22:54:06.439Z] 	at java.base/java.lang.Thread.run(Thread.java:1595)

[2025-01-04T22:54:06.453Z] 
[2025-01-04T22:54:06.453Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 14
[2025-01-04T22:54:06.453Z] --------------------------------------------------
[2025-01-04T22:54:06.453Z] Test results: failed: 1
[2025-01-04T22:54:30.978Z] Report written to /home/jenkins/workspace/Test_openjdk21_j9_sanity.openjdk_aarch64_linux_testList_1/aqa-tests/TKG/output_17360264402486/jdk_vector_double128_j9_0/report/html/report.html
[2025-01-04T22:54:30.978Z] Results written to /home/jenkins/workspace/Test_openjdk21_j9_sanity.openjdk_aarch64_linux_testList_1/aqa-tests/TKG/output_17360264402486/jdk_vector_double128_j9_0/work
[2025-01-04T22:54:30.978Z] Error: Some tests failed or other problems occurred.
[2025-01-04T22:54:30.978Z] -----------------------------------
[2025-01-04T22:54:30.978Z] jdk_vector_double128_j9_0_FAILED

50x internal grinder - failed 6/50

@pshipton
Copy link
Member Author

@hzongaro fyi

@hzongaro
Copy link
Member

@BradleyWood, may I ask you to look at this failure? I was able to reproduce the failure in an internal grinder run with the option -Xdump:jit+system:events=throw+systhrow,filter=java/lang/NullPointerException#java/lang/Class.copyFields. Hopefully the core and jitdump files there were produced will help you to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants