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

regression tests error with openj9 java8 #830

Closed
sophia-guo opened this issue Jan 24, 2019 · 12 comments
Closed

regression tests error with openj9 java8 #830

sophia-guo opened this issue Jan 24, 2019 · 12 comments
Labels
bug type:openjdk Refers to openjdk regression test suite

Comments

@sophia-guo
Copy link
Contributor

sophia-guo commented Jan 24, 2019

On Mac:
Following tests got timeout error with error message " RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL". No JBS reports.

java/io/Serializable/serialver/classpath/run.sh.run
java/io/Serializable/serialver/nested/run.sh.run
java/util/logging/TestLoggingWithMainAppContext.java.TestLoggingWithMainAppContext
java/util/logging/TestMainAppContext.java.TestMainAppContext

Stacktrace

Program `/Users/jenkins/workspace/openjdk8_j9_openjdktest_x86-64_macos/openjdkbinary/j2sdk-image/jre/bin/../../bin/java' timed out (timeout set to 960000ms, elapsed time including timeout handling was 960045ms).    

Standard Output

Creating loggers.
bar1.getParent() is the same as foo1
Now running with security manager
Timeout refired 960 times
    

Standard Error

_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
    

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_macos/lastCompletedBuild/testReport/

java/rmi/activation/Activatable/checkAnnotations/CheckAnnotations.java
java/rmi/activation/Activatable/nestedActivate/NestedActivate.java same failure with ' nested exception is: java.lang.NullPointerException', no JBS report

Both triggered by code:
ActivationGroupID groupID = ActivationGroup.getSystem(). registerGroup(groupDesc);

Test failed with: null
java.lang.NullPointerException
	at CheckAnnotations.main(CheckAnnotations.java:95)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:813)
rmid shut down
ACTIVATION_LIBRARY: Activation System available after 0 milliseconds
RMID: getting a reference to the activation system
RMID: obtained a reference to the activation system
RMID: testlibrary finished shutting down rmid
RMID: rmid exited on shutdown request
ACTIVATION_LIBRARY: finished destroying rmid
RMID: removing rmid's old log file...
TestFailedException: TEST FAILED: ; nested exception is: 
	java.lang.NullPointerException
java.lang.NullPointerException
	at CheckAnnotations.main(CheckAnnotations.java:95)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_macos/83/testReport/junit/java_rmi_activation_Activatable_checkAnnotations_CheckAnnotations/java/CheckAnnotations/

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_macos/86/testReport/junit/java_rmi_activation_Activatable_nestedActivate_NestedActivate/java/NestedActivate/

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jan 24, 2019

On PPCLE:

java/util/SplittableRandom/SplittableRandomTest.java.testBoundedDoubles() intermittent failure. No JBS reports

java.lang.AssertionError: expected [0] but found [1]
14:39:49 test SplittableRandomTest.testBoundedDoubles(): failure
14:39:49 java.lang.AssertionError: expected [0] but found [1]
14:39:49 	at org.testng.Assert.fail(Assert.java:94)
14:39:49 	at org.testng.Assert.failNotEquals(Assert.java:496)
14:39:49 	at org.testng.Assert.assertEquals(Assert.java:125)
14:39:49 	at org.testng.Assert.assertEquals(Assert.java:372)
14:39:49 	at org.testng.Assert.assertEquals(Assert.java:382)
14:39:49 	at SplittableRandomTest.testBoundedDoubles(SplittableRandomTest.java:491)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_ppc64le_linux/294/consoleFull

java/io/File/DeleteOnExitNPE.java.DeleteOnExitNPE

Stacktrace

Execution failed: `main' threw exception: java.lang.RuntimeException: Failed: No output should have been received from the process    

Standard Output

    

Standard Error

libcrypto.so: cannot open shared object file: No such file or directoryFAILED TO LOAD OPENSSL CRYPTO LIBRARY
java.lang.RuntimeException: Failed: No output should have been received from the process
	at DeleteOnExitNPE.runTest(DeleteOnExitNPE.java:68)
	at DeleteOnExitNPE.main(DeleteOnExitNPE.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_ppc64le_linux/291/testReport/junit/java_io_File_DeleteOnExitNPE/java/DeleteOnExitNPE/

java/util/concurrent/ThreadLocalRandom/ThreadLocalRandomTest.java with * @run testng/othervm -Djava.util.secureRandomSeed=true ThreadLocalRandomTest got 'AssertionError: expected [0] but found [1]'

06:39:33 [TestNG] Running:
06:39:33   java/util/concurrent/ThreadLocalRandom/ThreadLocalRandomTest.java
06:39:33 
06:39:33 test ThreadLocalRandomTest.testBadStreamBounds(): success
06:39:33 test ThreadLocalRandomTest.testBadStreamSize(): success
06:39:33 test ThreadLocalRandomTest.testBoundedDoubles(): failure
06:39:33 java.lang.AssertionError: expected [0] but found [1]
06:39:33 	at org.testng.Assert.fail(Assert.java:94)
06:39:33 	at org.testng.Assert.failNotEquals(Assert.java:496)
06:39:33 	at org.testng.Assert.assertEquals(Assert.java:125)
06:39:33 	at org.testng.Assert.assertEquals(Assert.java:372)
06:39:33 	at org.testng.Assert.assertEquals(Assert.java:382)
06:39:33 	at ThreadLocalRandomTest.testBoundedDoubles(ThreadLocalRandomTest.java:480)
06:39:33 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06:39:33 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
06:39:33 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
06:39:33 	at java.lang.reflect.Method.invoke(Method.java:498)
06:39:33 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
06:39:33 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
06:39:33 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
06:39:33 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
06:39:33 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_ppc64le_linux/303/consoleFull

java/util/Arrays/ParallelPrefix.java 'testParallelPrefixForDouble([D@80f607dc, 1365, 2730, ParallelPrefix$$Lambda$51/0000000014148180@ef9dac54): failure'

16:21:38 test ParallelPrefix.testParallelPrefixForDouble([D@80f607dc, 1365, 2730, ParallelPrefix$$Lambda$51/0000000014148180@ef9dac54): failure
16:21:38 java.lang.AssertionError:  e
xpected [[D@542275d0] but found [[D@b241592a]
16:21:38 	at org.testng.Assert.fail(Assert.java:94)
16:21:38 	at org.testng.Assert.failNotEquals(Assert.java:496)
16:21:38 	at org.testng.Assert.assertArrayEquals(Assert.java:146)
16:21:38 	at org.testng.Assert.assertEquals(Assert.java:119)
16:21:38 	at org.testng.Assert.assertEquals(Assert.java:167)
16:21:38 	at ParallelPrefix.testParallelPrefixForDouble(ParallelPrefix.java:156)
16:21:38 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
16:21:38 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:21:38 	at java.lang.reflect.Method.invoke(Method.java:498)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_ppc64le_linux/302/consoleFull

@sophia-guo sophia-guo changed the title regression tests error on mac with openj9 java8 regression tests error with openj9 java8 Jan 24, 2019
@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jan 25, 2019

On Win32
sun/util/logging/PlatformLoggerTest.java failed with 'Logger test.logger.bar does not exist '
JBS report https://bugs.openjdk.java.net/browse/JDK-8142464

java.lang.RuntimeException: Logger test.logger.bar does not exist
	at PlatformLoggerTest.checkLogger(PlatformLoggerTest.java:121)
	at PlatformLoggerTest.main(PlatformLoggerTest.java:73)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-32_windows/118/testReport/junit/sun_util_logging_PlatformLoggerTest/java/PlatformLoggerTest/

also on largeHeap:
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux_linuxXL/95/testReport/junit/sun_util_logging_PlatformLoggerTest/java/PlatformLoggerTest/

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jan 25, 2019

LargeHeap:
java/util/Arrays/TimSortStackSize2.java 'java.lang.OutOfMemoryError: Java heap space '

java.lang.OutOfMemoryError: Java heap space
	at TimSortStackSize2.createArray(TimSortStackSize2.java:164)
	at TimSortStackSize2.doTest(TimSortStackSize2.java:59)
	at TimSortStackSize2.main(TimSortStackSize2.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux_linuxXL/92/testReport/junit/java_util_Arrays_TimSortStackSize2/java/TimSortStackSize2/

JBS: https://bugs.openjdk.java.net/browse/JDK-8199265

java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java times out
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux_linuxXL/92/testReport/junit/java_util_stream_test_org_openjdk_tests_java_util_stream_SliceOpTest/java/SliceOpTest/
JBS: https://bugs.openjdk.java.net/browse/JDK-8074388

java/util/logging/CheckZombieLockTest.java intermittent failure on Linux and Mac

Stacktrace

Execution failed: `main' threw exception: java.lang.RuntimeException: Unexpected lock files found: [] /tmp/writable-lockfile-dir/log.log.lck should not have been reused    

Standard Output

Writable dir is: /tmp/writable-lockfile-dir
Found file: log.log.lck
before: 1 locks found
handler created: java.util.logging.FileHandler@f849351b
Found file: log.log
Found file: log.log.lck
after creating handler: 1 locks found
handler closed: java.util.logging.FileHandler@f849351b
Found file: log.log
after closing handler: 0 locks found
After cleanup: 0 locks found
    

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux_linuxXL/96/testReport/junit/java_util_logging_CheckZombieLockTest/java/CheckZombieLockTest/
JBS: https://bugs.openjdk.java.net/browse/JDK-8148972

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_linux_linuxXL/98/testReport/junit/java_net_MulticastSocket_SetGetNetworkInterfaceTest/java/SetGetNetworkInterfaceTest/
JBS: https://bugs.openjdk.java.net/browse/JDK-8027903

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jan 25, 2019

Reported in ibmruntimes/openj9-openjdk-jdk8#143

s390x:
java/net/MulticastSocket/SetLoopbackMode.java

java.lang.RuntimeException: Test failed
	at SetLoopbackMode.main(SetLoopbackMode.java:121)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_s390x_linux/192/testReport/junit/java_net_MulticastSocket_SetLoopbackMode/java/SetLoopbackMode/

JBS: https://bugs.openjdk.java.net/browse/JDK-8129316

java/net/MulticastSocket/Test.java JBS: https://bugs.openjdk.java.net/browse/JDK-7094552

Standard Error

java.lang.Exception: Test failed - see log file for details
	at Test.main(Test.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:813)

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_s390x_linux/192/testReport/junit/java_net_MulticastSocket_Test/java/Test/

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Jan 31, 2019

Note:
java/net/Inet6Address/B6206527.java.B6206527
java/net/MulticastSocket/SetGetNetworkInterfaceTest.java.SetGetNetworkInterfaceTest
java/net/MulticastSocket/SetOutgoingIf.java.SetOutgoingIf
java/net/ipv6tests/B6521014.java.B6521014
java/net/ipv6tests/UdpTest.java.UdpTest

also intermittent failed with hotspot java8 on linux-x86
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/313/#showFailuresLink

Move to the HS issue #827. Delete from this issue.

@lumpfish
Copy link
Contributor

lumpfish commented Feb 6, 2019

jdk/test/java/util/Arrays/TimSortStackSize2.java is referenced above as failing on linuxXL and the test is currently excluded for linux. Test also fails with MacXL openjdk8-openj9 (tests being run for the first time).

15:34:03 ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.OutOfMemoryError: Java heap space
15:34:03 REASON: User specified action: run main/othervm -Xms385m TimSortStackSize2 67108864 
15:34:03 TIME:   15.218 seconds

15:34:03 java.lang.OutOfMemoryError: Java heap space
15:34:03 	at TimSortStackSize2.createArray(TimSortStackSize2.java:164)
15:34:03 	at TimSortStackSize2.doTest(TimSortStackSize2.java:59)
15:34:03 	at TimSortStackSize2.main(TimSortStackSize2.java:43)
15:34:03 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:34:03 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:34:03 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:34:03 	at java.lang.reflect.Method.invoke(Method.java:498)
15:34:03 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
15:34:03 	at java.lang.Thread.run(Thread.java:813)

@lumpfish
Copy link
Contributor

lumpfish commented Feb 6, 2019

Also on MacXL, PlatformLoggerTest.java is failing as described above for Windows and linuxXL. Test is currently excluded for Windows and Linux, but not Mac.

15:57:50 java.lang.RuntimeException: Logger test.logger.bar does not exist
15:57:50 	at PlatformLoggerTest.checkLogger(PlatformLoggerTest.java:121)
15:57:50 	at PlatformLoggerTest.main(PlatformLoggerTest.java:73)
15:57:50 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:57:50 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:57:50 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:57:50 	at java.lang.reflect.Method.invoke(Method.java:498)
15:57:50 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
15:57:50 	at java.lang.Thread.run(Thread.java:813)
15:57:50 
15:57:50 JavaTest Message: Test threw exception: java.lang.RuntimeException: Logger test.logger.bar does not exist

@sophia-guo
Copy link
Contributor Author

Thanks @lumpfish will exclude those tests on Mac XL.

Unfortunately currently there is no way to exclude the LargeHeap specifically as openjdk use uname to get out machine or OS information.

@sophia-guo
Copy link
Contributor Author

sun/net/www/http/ChunkedOutputStream/checkError.java.checkError Issue opened in JBS as resolved: https://bugs.openjdk.java.net/browse/JDK-8041924
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_windows/199/testReport/junit/sun_net_www_http_ChunkedOutputStream_checkError/java/checkError/

Standard Error

java.lang.RuntimeException: Test Failed: haven't received the expected IOException
	at checkError.testExit(checkError.java:121)
	at checkError.main(checkError.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:813)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test Failed: haven't received the expected IOException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test Failed: haven't received the expected IOException
    

@sophia-guo
Copy link
Contributor Author

Remove sun/rmi/runtime/Log/6409194/NoConsoleOutput.java as same issue happened to HS and reported to JBS as closed https://bugs.openjdk.java.net/browse/JDK-8156798. Need to reopen it.
#913

@smlambert
Copy link
Contributor

This issue is pretty stale. Are there more current or specific issues that cover the failures? What actions need to be taken to address and close this one?

@sophia-guo
Copy link
Contributor Author

This is openj9 specific. Tests are either excluded by openj9 problemlist or no longer failed. Close here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug type:openjdk Refers to openjdk regression test suite
Projects
None yet
Development

No branches or pull requests

4 participants