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

JDK8 OSX reattachAfterExit test fails #3794

Closed
babsingh opened this issue Nov 21, 2018 · 2 comments · Fixed by #3835
Closed

JDK8 OSX reattachAfterExit test fails #3794

babsingh opened this issue Nov 21, 2018 · 2 comments · Fixed by #3835

Comments

@babsingh
Copy link
Contributor

23:47:37 ===============================================
23:47:37 Running test reattachAfterExit_0 ...
23:47:37 ===============================================
23:47:37 reattachAfterExit_0 Start Time: Tue Nov 20 23:47:38 2018 Epoch Time (ms): 1542775658359
23:47:37 variation: NoOptions
23:47:37 JVM_OPTIONS: -Xcompressedrefs 
23:47:37 { mkdir -p "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427729963309/reattachAfterExit_0"; \
23:47:37 	cd "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427729963309/reattachAfterExit_0"; \
23:47:37 	export LD_LIBRARY_PATH=""/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/../../../native-test-libs/:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/../lib//compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/../lib//j9vm":"; "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/java" -Xcompressedrefs  \
23:47:37 	-cp "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/TestConfig/resources:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/TestConfig/lib/testng.jar:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/TestConfig/lib/jcommander.jar:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/Java8andUp/GeneralTest.jar" \
23:47:37 	org.testng.TestNG -d "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427729963309/reattachAfterExit_0" "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/Java8andUp/testng.xml" \
23:47:37 	-testnames reattachAfterExit \
23:47:37 	-groups level.sanity \
23:47:37 	-excludegroups d.*.osx_x86-64_cmprssptrs,d.*.arch.x86,d.*.os.osx,d.*.bits.64,d.*.generic-all; \
23:47:37 	if [ $? -eq 0 ] ; then echo ""; echo "reattachAfterExit_0""_PASSED"; echo ""; cd /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../..;  else echo ""; echo "reattachAfterExit_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427729963309/TestTargetResult";
23:47:37 [IncludeExcludeTestAnnotationTransformer] [INFO] exclude file is /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/TestConfig/resources/excludes/latest_exclude_8.txt
23:47:37 ...
23:47:37 ... TestNG 6.14.2 by Cédric Beust ([email protected])
23:47:37 ...
23:47:37 
23:47:38 FAILED: testChildThread
23:47:38 java.lang.AssertionError: thread failed to create TLS key destructor
23:47:38 	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
23:47:38 	at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24)
23:47:38 	at org.openj9.test.osthread.ReattachAfterExit.testChildThread(ReattachAfterExit.java:45)
23:47:38 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:47:38 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:47:38 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:47:38 	at java.lang.reflect.Method.invoke(Method.java:498)
23:47:38 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
23:47:38 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
23:47:38 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
23:47:38 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
23:47:38 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
23:47:38 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
23:47:38 	at org.testng.TestRunner.privateRun(TestRunner.java:648)
23:47:38 	at org.testng.TestRunner.run(TestRunner.java:505)
23:47:38 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
23:47:38 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
23:47:38 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
23:47:38 	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
23:47:38 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
23:47:38 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
23:47:38 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
23:47:38 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
23:47:38 	at org.testng.TestNG.runSuites(TestNG.java:1049)
23:47:38 	at org.testng.TestNG.run(TestNG.java:1017)
23:47:38 	at org.testng.TestNG.privateMain(TestNG.java:1354)
23:47:38 	at org.testng.TestNG.main(TestNG.java:1323)
23:47:38 

Note: Not verified but the above errors may also be seen with JDK11 OSX. Currently, the test sanity/extended jobs can't run the above tests on OSX because of hangs and test infra failures documented in #3787, #3789 and #3685. Disabling the following tests will allow the test sanity jobs to run the above failing tests: https://github.com/eclipse/openj9/pull/3751/files.

@babsingh
Copy link
Contributor Author

fyi - @DanHeidinga

@llxia
Copy link
Contributor

llxia commented Nov 23, 2018

Same error java.lang.AssertionError: thread failed to create TLS key destructor in osx JDK11

00:15:03.770 "/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/java" -version
00:15:05.143 openjdk version "11.0.1-internal" 2018-10-16
00:15:05.144 OpenJDK Runtime Environment (build 11.0.1-internal+0-adhoc.jenkins.Build-JDK11-osxx86-64cmprssptrs)
00:15:05.144 Eclipse OpenJ9 VM (build master-d8b22d802, JRE 11 Mac OS X amd64-64-Bit Compressed References 20181120_9 (JIT enabled, AOT enabled)
00:15:05.144 OpenJ9   - d8b22d802
00:15:05.144 OMR      - 1b8bfbae
00:15:05.144 JCL      - 2fbed1f42df based on jdk-11.0.1+13)

babsingh added a commit to babsingh/openj9 that referenced this issue Nov 26, 2018
reattachAfterExit test depends on the definition of
ReattachAfterExit.createTLSKeyDestructor.

Currently, a stub is used for createTLSKeyDestructor on OSX. Enabling
the LINUX equivalent definition of createTLSKeyDestructor on OSX to fix
reattachAfterExit test.

Fixes: eclipse-openj9#3794

Signed-off-by: Babneet Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants