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

ppc64/aarch64 MathLoadTest NullPointerException VMAccess.addPackageToList #8189

Open
pshipton opened this issue Jan 1, 2020 · 17 comments
Open

Comments

@pshipton
Copy link
Member

pshipton commented Jan 1, 2020

https://ci.eclipse.org/openj9/job/Test_openjdk11_j9_special.system_ppc64le_linux_Nightly/385
MathLoadTest_bigdecimal_special_20
variation: Mode610
JVM_OPTIONS: -Xcompressedrefs -Xcompressedrefs -Xjit -Xgcpolicy:gencon

MLT testStarted : testItem_0609(net.adoptopenjdk.test.bigdecimal.TestSuite020)
MLT testFailure: testItem_0609(net.adoptopenjdk.test.bigdecimal.TestSuite020): null
MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1511)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:678)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
MLT 	at junit.framework.TestResult.run(TestResult.java:125)
MLT 	at junit.framework.TestCase.run(TestCase.java:129)
MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
MLT 	at java.base/java.lang.Thread.run(Thread.java:834)
@pshipton
Copy link
Member Author

https://ci.eclipse.org/openj9/job/Test_openjdk11_j9_sanity.system_ppc64le_linux_xl_Nightly/47
MathLoadTest_bigdecimal_0

MLT testFailure: testItem_0965(net.adoptopenjdk.test.bigdecimal.TestSuite025): null
MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1511)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:678)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
MLT 	at junit.framework.TestResult.run(TestResult.java:125)
MLT 	at junit.framework.TestCase.run(TestCase.java:129)
MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
MLT 	at java.base/java.lang.Thread.run(Thread.java:834)

@pshipton
Copy link
Member Author

@DanHeidinga I suspect this is a VM issue.

@DanHeidinga
Copy link
Member

@sharon-wang Can you take a look at this?

@sharon-wang
Copy link
Contributor

looking into this!

@sharon-wang
Copy link
Contributor

sharon-wang commented Jan 20, 2020

Is this an intermittent issue? I have not been able to reproduce the failures so far.

Used the SHAs for the failed nightly above for a regular build and an XL build:

OpenJ9 - 859442d7f
OMR - 947946e7d
JCL - 8b47834a41c based on jdk-11.0.6+10)

I have run the following tests more than 100x each without any failures:

PLATFORM ppc64le_linux
BUILD_LIST system
TARGET MathLoadTest_bigdecimal_special_20
EXTRA_OPTIONS Mode610
JVM_OPTIONS -Xcompressedrefs -Xcompressedrefs -Xjit -Xgcpolicy:gencon

and

PLATFORM ppc64le_linux_xl
BUILD_LIST system
TARGET MathLoadTest_bigdecimal
JVM_OPTIONS -Xnocompressedrefs

@pshipton
Copy link
Member Author

Is this an intermittent issue?

Yes it is. The complete failure history is recorded above, failed twice in the last 19 days.

@sharon-wang
Copy link
Contributor

sharon-wang commented Jan 23, 2020

Have not reproduced this failure after 10000+ runs, but MathLoadTest_bigdecimal_0 did fail once on a different NPE which looks like: #4005

GEN stderr Error: A JNI error has occurred, please check your installation and try again
GEN stderr Exception in thread "main" java.lang.NullPointerException
GEN stderr 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:199)
GEN stderr 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
GEN stderr 	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:160)
GEN stderr 	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:492)
GEN stderr 	at net.adoptopenjdk.stf.runner.StfClassLoader.loadClassBytes(StfClassLoader.java:285)
GEN stderr 	at net.adoptopenjdk.stf.runner.StfClassLoader.findClass(StfClassLoader.java:244)
GEN stderr 	at net.adoptopenjdk.stf.runner.StfClassLoader.loadClass(StfClassLoader.java:143)
GEN stderr 	at java.base/java.lang.Class.forNameImpl(Native Method)
GEN stderr 	at java.base/java.lang.Class.forName(Class.java:412)
GEN stderr 	at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:760)
GEN stderr 	at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:655)

Continuing to run tests to try to reproduce the NPE on VMAccess.addPackageToList...

@sharon-wang
Copy link
Contributor

Still unable to reproduce. Will keep an eye out for relevant failures to try to get a better idea of the root cause.

@gacholio
Copy link
Contributor

gacholio commented Feb 2, 2020

The code in question is this:

	public void addPackageToList(java.lang.Class<?> newClass, ClassLoader loader) {
		java.lang.ClassLoader packageLoader = loader;
		if (Objects.isNull(packageLoader)) {
			packageLoader = ClassLoader.getSystemClassLoader();
		}
		packageLoader.addPackageToList(newClass);
	}

So this seems much more likely to be a JIT issue than a VM one.

@gita-omr
Copy link
Contributor

gita-omr commented Feb 3, 2020

Have we tried -Xint?

@sharon-wang
Copy link
Contributor

Yes, however I haven't been able to reproduce the failure with or without -Xint

@pshipton pshipton removed this from the Release 0.19 (Java 14) milestone Feb 12, 2020
@pshipton
Copy link
Member Author

pshipton commented Mar 30, 2020

https://ci.eclipse.org/openj9/job/Test_openjdk11_j9_special.system_ppc64le_linux_xl_Personal/100
MathLoadTest_bigdecimal_special_4
variation: Mode110
JVM_OPTIONS: -Xnocompressedrefs -Xjit -Xgcpolicy:gencon -Xnocompressedrefs
testFailure: testItem_0967(net.adoptopenjdk.test.bigdecimal.TestSuite020): null

MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1512)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)

@JasonFengJ9
Copy link
Member

This appears in an internal build Test_openjdk11_j9_sanity.system_ppc64_aix_Nightly/412:

MLT testStarted : testItem_0997(net.adoptopenjdk.test.bigdecimal.TestSuite056)
MLT testFailure: testItem_0997(net.adoptopenjdk.test.bigdecimal.TestSuite056): null
MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1512)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:678)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
MLT 	at junit.framework.TestResult.run(TestResult.java:125)
MLT 	at junit.framework.TestCase.run(TestCase.java:129)
MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
MLT 	at java.base/java.lang.Thread.run(Thread.java:836)
MLT testFinished: testItem_0997(net.adoptopenjdk.test.bigdecimal.TestSuite056)

@pshipton
Copy link
Member Author

pshipton commented Feb 19, 2021

https://ci.eclipse.org/openj9/job/Test_openjdk11_j9_special.system_ppc64_aix_mixed_Nightly_testList_3/22
MathLoadTest_all_special_5m_23
variation: Mode688
JVM_OPTIONS: -Xcompressedrefs -Xjit:count=0 -Xgcpolicy:gencon -Xaggressive -Xconcurrentlevel0

MLT testFailure: testItem_0948(net.adoptopenjdk.test.bigdecimal.TestSuite021): null
MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1510)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
MLT 	at junit.framework.TestResult.run(TestResult.java:125)
MLT 	at junit.framework.TestCase.run(TestCase.java:129)
MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
MLT 	at java.base/java.lang.Thread.run(Thread.java:836)
MLT testFinished: testItem_0948(net.adoptopenjdk.test.bigdecimal.TestSuite021)
MLT testStarted : testItem_0949(net.adoptopenjdk.test.bigdecimal.TestSuite021)
MLT testFailure: testItem_0949(net.adoptopenjdk.test.bigdecimal.TestSuite021): null
MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1510)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
MLT 	at junit.framework.TestResult.run(TestResult.java:125)
MLT 	at junit.framework.TestCase.run(TestCase.java:129)
MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
MLT 	at java.base/java.lang.Thread.run(Thread.java:836)
MLT testFinished: testItem_0949(net.adoptopenjdk.test.bigdecimal.TestSuite021)

etc. there are many more

@pshipton pshipton changed the title ppc64le MathLoadTest NullPointerException VMAccess.addPackageToList ppc64 MathLoadTest NullPointerException VMAccess.addPackageToList Feb 19, 2021
@gacholio
Copy link
Contributor

Note this originally occurred on ARM64, so it would seem not to be PPC-specific. The ARM JIT was based of the PPC one, so there may be an error duplicated between the codegens.

@pshipton pshipton added comp:jit and removed comp:vm labels Feb 19, 2021
@pshipton pshipton changed the title ppc64 MathLoadTest NullPointerException VMAccess.addPackageToList ppc64/aarch64 MathLoadTest NullPointerException VMAccess.addPackageToList Feb 19, 2021
@pshipton
Copy link
Member Author

https://ci.eclipse.org/openj9/job/Test_openjdk11_j9_special.system_ppc64_aix_Nightly_testList_3/95
MathLoadTest_all_special_5m_23
variation: Mode688
JVM_OPTIONS: -Xcompressedrefs -Xjit:count=0 -Xgcpolicy:gencon -Xaggressive -Xconcurrentlevel0

MLT java.lang.NullPointerException
MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1510)
MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)

@JasonFengJ9
Copy link
Member

Observed in an internal build Test_openjdk11_j9_sanity.system_ppc64le_linux_testList_0/52/

[2021-05-28T03:15:53.314Z] Running test MathLoadTest_bigdecimal_5m_1 ...
[2021-05-28T03:15:53.314Z] ===============================================
[2021-05-28T03:15:53.314Z] MathLoadTest_bigdecimal_5m_1 Start Time: Thu May 27 20:15:51 2021 Epoch Time (ms): 1622171751211
[2021-05-28T03:15:53.314Z] "/home/jenkins/workspace/Test_openjdk11_j9_sanity.system_ppc64le_linux_testList_0/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/home/jenkins/workspace/Test_openjdk11_j9_sanity.system_ppc64le_linux_testList_0/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
[2021-05-28T03:15:53.314Z] JVMSHRC005I No shared class caches available
[2021-05-28T03:15:53.314Z] JVMSHRC005I No shared class caches available
[2021-05-28T03:15:53.314Z] cache cleanup done
[2021-05-28T03:15:53.314Z] variation: Mode650
[2021-05-28T03:15:53.314Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2021-05-28T03:16:57.106Z] MLT 20:16:54.424 - Test failed. Details recorded in execution log.
[2021-05-28T03:16:57.106Z] MLT 20:16:54.422 - Test failed
[2021-05-28T03:16:57.106Z] MLT   Failure num.  = 1
[2021-05-28T03:16:57.106Z] MLT   Test number   = 32
[2021-05-28T03:16:57.106Z] MLT   Test details  = 'JUnit[net.adoptopenjdk.test.bigdecimal.TestSuite032]'
[2021-05-28T03:16:57.106Z] MLT   Suite number  = 0
[2021-05-28T03:16:57.106Z] MLT   Thread number = 0
[2021-05-28T03:16:57.106Z] MLT >>> Captured test output >>>
[2021-05-28T03:16:57.106Z] MLT testStarted : testItem_0000(net.adoptopenjdk.test.bigdecimal.TestSuite032)
[2021-05-28T03:16:57.106Z] MLT testFailure: testItem_0000(net.adoptopenjdk.test.bigdecimal.TestSuite032): null
[2021-05-28T03:16:57.107Z] MLT java.lang.NullPointerException
[2021-05-28T03:16:57.107Z] MLT 	at java.base/java.lang.VMAccess.addPackageToList(VMAccess.java:183)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1510)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:75)
[2021-05-28T03:16:57.107Z] MLT 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:53)
[2021-05-28T03:16:57.108Z] MLT 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2021-05-28T03:16:57.108Z] MLT 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestCase.runTest(TestCase.java:176)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestCase.runBare(TestCase.java:141)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestResult$1.protect(TestResult.java:122)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestResult.runProtected(TestResult.java:142)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestResult.run(TestResult.java:125)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestCase.run(TestCase.java:129)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
[2021-05-28T03:16:57.108Z] MLT 	at junit.framework.TestSuite.run(TestSuite.java:247)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.Suite.runChild(Suite.java:128)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.Suite.runChild(Suite.java:27)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[2021-05-28T03:16:57.108Z] MLT 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
[2021-05-28T03:16:57.108Z] MLT 	at net.adoptopenjdk.loadTest.adaptors.JUnitAdaptor.executeTest(JUnitAdaptor.java:130)
[2021-05-28T03:16:57.108Z] MLT 	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
[2021-05-28T03:16:57.108Z] MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[2021-05-28T03:16:57.108Z] MLT 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[2021-05-28T03:16:57.109Z] MLT 	at java.base/java.lang.Thread.run(Thread.java:861)

Rerun in Grinder

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

6 participants