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

libpathTestRtf and libpathTestRtfChild hang on OSX [JDK8/JDK11] #3787

Open
babsingh opened this issue Nov 21, 2018 · 7 comments
Open

libpathTestRtf and libpathTestRtfChild hang on OSX [JDK8/JDK11] #3787

babsingh opened this issue Nov 21, 2018 · 7 comments

Comments

@babsingh
Copy link
Contributor

babsingh commented Nov 21, 2018

Tests, libpathTestRtf and libpathTestRtfChild, hang on OSX. The tests are terminated via a timeout of 6000 seconds. Details about running these tests: test/functional/cmdLineTests/libpathTest/playlist.xml.

16:56:54 ===============================================
16:56:54 Running test cmdLineTester_libpathTestRtf_0 ...
16:56:54 ===============================================
16:56:54 cmdLineTester_libpathTestRtf_0 Start Time: Tue Nov 20 16:56:54 2018 Epoch Time (ms): 1542751014149
16:56:54 variation: NoOptions
16:56:54 JVM_OPTIONS: -Xcompressedrefs 
16:56:54 { mkdir -p "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0"; \
16:56:54 	cd "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0"; \
16:56:54 	"/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/java" -Xcompressedrefs  -DJAVA_EXE="/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/java" -DJAVA_HOME="/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/.." -DJAVATEST_ROOT= -DJVM_TEST_ROOT=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest \
16:56:54 	-DTESTSJARPATH="/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar" \
16:56:54 	-DRESJAR="/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_testresources/cmdlinetestresources.jar" -jar "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_tester/cmdlinetester.jar" \
16:56:54 	-config "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathRtf.xml" \
16:56:54 	-xids all,osx_x86-64_cr -xlist "/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/exclude.xml" \
16:56:54 	-nonZeroExitWhenError; \
16:56:54 	if [ $? -eq 0 ] ; then echo ""; echo "cmdLineTester_libpathTestRtf_0""_PASSED"; echo ""; cd /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../..;  else echo ""; echo "cmdLineTester_libpathTestRtf_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_15427493171587/TestTargetResult";
16:56:54 Parsing exclude list...
16:56:54   add excludes for [all]
16:56:54   add excludes for [osx_x86-64_cr]
16:56:54 DONE in 0 ms.
16:56:54 *** Starting test suite: LIBPATH Rtf test intended for PMR56610 (CMVC 201272) ***
16:56:54 Testing: PMR testcase with Rtf/RtfChild involved
16:56:54 Test start time: 2018/11/20 16:56:54 Eastern Standard Time
16:56:54 Running command: /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/java -Xcompressedrefs -Dcom.sun.management.jmxremote -cp /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar org.openj9.test.libpath.Rtf /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/bin/java /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar
16:56:55 Time spent starting: 25 milliseconds
16:56:55 	Match (success): com.ibm.oti.vm.bootstrap.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib
16:56:55 	Match (required): sun.boot.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib
16:56:55 	Match (required): java.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib:/usr/lib
18:44:49 ***[TEST INFO 2018/11/20 18:44:40] ProcessKiller detected a timeout after 6000000 milliseconds!***
18:44:49 INFO: The current OS is 'Mac OS X'. 'Debug on timeout' is currently only supported on Linux.
18:44:49 ***[TEST INFO 2018/11/20 18:44:40] executing kill -ABRT 18719***
18:44:49 ***[TEST INFO 2018/11/20 18:44:40] kill -ABRT signal sent***
18:44:49 Time spent executing: 6471900 milliseconds
18:44:49 Test result: FAILED
18:44:49 Output from test:
18:44:49  [OUT] com.ibm.oti.vm.bootstrap.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib
18:44:49  [OUT] sun.boot.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib
18:44:49  [OUT] java.library.path=/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib/compressedrefs:/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/jre/lib:/usr/lib
18:44:49  [OUT] fontmanger LIB: libfontmanager.dylib
18:44:49  [ERR] _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
18:44:49  [ERR] 2018-11-20 16:56:55.292 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.293 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.293 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.295 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] JVMDUMP039I Processing dump event "abort", detail "" at 2018/11/20 18:44:40 - please wait.
18:44:49  [ERR] JVMDUMP032I JVM requested System dump using '/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/core.20181120.184440.18719.0001.dmp' in response to an event
18:44:49  [ERR] JVMDUMP012E Error in System dump: The core file created by child process with pid = 22817 was not found. Expected to find core file with name "/cores/core.22817"
18:44:49  [ERR] JVMDUMP032I JVM requested Java dump using '/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/javacore.20181120.184440.18719.0002.txt' in response to an event
18:44:49  [ERR] JVMDUMP010I Java dump written to /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/javacore.20181120.184440.18719.0002.txt
18:44:49  [ERR] JVMDUMP032I JVM requested Snap dump using '/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/Snap.20181120.184440.18719.0003.trc' in response to an event
18:44:49  [ERR] JVMDUMP010I Snap dump written to /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/Snap.20181120.184440.18719.0003.trc
18:44:49  [ERR] JVMDUMP007I JVM Requesting JIT dump using '/Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/jitdump.20181120.184440.18719.0004.dmp'
18:44:49  [ERR] JVMDUMP010I JIT dump written to /Users/jenkins/workspace/Test-sanity.functional-JDK8-osx_x86-64_cmprssptrs/openjdk-tests/TestConfig/test_output_15427493171587/cmdLineTester_libpathTestRtf_0/jitdump.20181120.184440.18719.0004.dmp
18:44:49  [ERR] JVMDUMP013I Processed dump event "abort", detail "".
@babsingh
Copy link
Contributor Author

fyi - @DanHeidinga @llxia

@babsingh
Copy link
Contributor Author

babsingh commented Nov 21, 2018

On Linux, the same tests take a few seconds to run: https://ci.eclipse.org/openj9/view/Test/job/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/203/consoleFull. The hang looks like a JVM issue specific to OSX.

Correct Test Output on Linux:

01:47:15 ===============================================
01:47:15 Running test cmdLineTester_libpathTestRtf_0 ...
01:47:15 ===============================================
01:47:15 cmdLineTester_libpathTestRtf_0 Start Time: Wed Nov 21 06:47:16 2018 Epoch Time (ms): 1542782836565
01:47:15 variation: NoOptions
01:47:15 JVM_OPTIONS: -Xcompressedrefs 
01:47:15 { mkdir -p "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/cmdLineTester_libpathTestRtf_0"; \
01:47:15 cd "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/cmdLineTester_libpathTestRtf_0"; \
01:47:15 "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java" -Xcompressedrefs  -DJAVA_EXE="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java" -DJAVA_HOME="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/.." -DJAVATEST_ROOT= -DJVM_TEST_ROOT=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest \
01:47:15 -DTESTSJARPATH="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar" \
01:47:15 -DRESJAR="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_testresources/cmdlinetestresources.jar" -jar "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_tester/cmdlinetester.jar" \
01:47:15 -config "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathRtf.xml" \
01:47:15 -xids all,linux_x86-64_cr -xlist "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/exclude.xml" \
01:47:15 -nonZeroExitWhenError; \
01:47:15 if [ $? -eq 0 ] ; then echo ""; echo "cmdLineTester_libpathTestRtf_0""_PASSED"; echo ""; cd /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../..;  else echo ""; echo "cmdLineTester_libpathTestRtf_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/TestTargetResult";
01:47:15 Parsing exclude list...
01:47:15   add excludes for [all]
01:47:15   add excludes for [linux_x86-64_cr]
01:47:15 DONE in 0 ms.
01:47:15 *** Starting test suite: LIBPATH Rtf test intended for PMR56610 (CMVC 201272) ***
01:47:15 Testing: PMR testcase with Rtf/RtfChild involved
01:47:15 Test start time: 2018/11/21 06:47:16 Coordinated Universal Time
01:47:15 Running command: /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java -Xcompressedrefs -Dcom.sun.management.jmxremote -cp /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar org.openj9.test.libpath.Rtf /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar
01:47:15 Time spent starting: 39 milliseconds
01:47:15 	Match (success): com.ibm.oti.vm.bootstrap.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib
01:47:15 	Match (required): sun.boot.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib
01:47:15 	Match (required): java.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib:/usr/lib64:/usr/lib
01:47:16 	Match (required): I am the child
01:47:16 Time spent executing: 1817 milliseconds
01:47:16 Test result: PASSED
01:47:16 
01:47:16 
01:47:16 ---TEST RESULTS---
01:47:16 Number of PASSED tests: 1 out of 1
01:47:16 Number of FAILED tests: 0 out of 1
01:47:16 
01:47:16 cmdLineTester_libpathTestRtf_0_PASSED
01:47:16 
01:47:16 cmdLineTester_libpathTestRtf_0 Finish Time: Wed Nov 21 06:47:18 2018 Epoch Time (ms): 1542782838830
01:47:16 
01:47:16 ===============================================
01:47:16 Running test cmdLineTester_libpathTestRtfChild_0 ...
01:47:16 ===============================================
01:47:16 cmdLineTester_libpathTestRtfChild_0 Start Time: Wed Nov 21 06:47:18 2018 Epoch Time (ms): 1542782838849
01:47:16 variation: NoOptions
01:47:16 JVM_OPTIONS: -Xcompressedrefs 
01:47:16 { mkdir -p "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/cmdLineTester_libpathTestRtfChild_0"; \
01:47:16 cd "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/cmdLineTester_libpathTestRtfChild_0"; \
01:47:16 "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java" -Xcompressedrefs  -DJAVA_EXE="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java" -DEXTRA_OPTIONS="-Xcompressedrefs " -DJAVATEST_ROOT= -DJVM_TEST_ROOT=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest \
01:47:16 -DTESTSJARPATH="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar" \
01:47:16 -DRESJAR="/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_testresources/cmdlinetestresources.jar" -jar "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdline_options_tester/cmdlinetester.jar" \
01:47:16 -config "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathRtfChild.xml" \
01:47:16 -xids all,linux_x86-64_cr -xlist "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/exclude_rtfchild.xml" \
01:47:16 -nonZeroExitWhenError; \
01:47:16 if [ $? -eq 0 ] ; then echo ""; echo "cmdLineTester_libpathTestRtfChild_0""_PASSED"; echo ""; cd /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../..;  else echo ""; echo "cmdLineTester_libpathTestRtfChild_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../TestConfig/test_output_1542779893947/TestTargetResult";
01:47:16 Parsing exclude list...
01:47:16   add excludes for [all]
01:47:16   add excludes for [linux_x86-64_cr]
01:47:16 DONE in 0 ms.
01:47:16 *** Starting test suite: LIBPATH RtfChild test intended for PMR56610 (CMVC 201272) ***
01:47:16 Testing: RtfChild testcase
01:47:16 Test start time: 2018/11/21 06:47:19 Coordinated Universal Time
01:47:16 Running command: /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/bin/java -Xcompressedrefs  -Dcom.sun.management.jmxremote -cp /home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/functional/cmdLineTests/libpathTest/libpathTest.jar org.openj9.test.libpath.RtfChild
01:47:16 Time spent starting: 34 milliseconds
01:47:16 	Match (success): I am the child
01:47:16 	Match (required): com.ibm.oti.vm.bootstrap.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib
01:47:16 	Match (required): sun.boot.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib
01:47:16 	Match (required): java.library.path=/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib/compressedrefs:/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdkbinary/j2sdk-image/lib:/usr/lib64:/usr/lib
01:47:16 Time spent executing: 572 milliseconds
01:47:16 Test result: PASSED
01:47:16 
01:47:16 
01:47:16 ---TEST RESULTS---
01:47:16 Number of PASSED tests: 1 out of 1
01:47:16 Number of FAILED tests: 0 out of 1
01:47:16 
01:47:16 cmdLineTester_libpathTestRtfChild_0_PASSED
01:47:16 
01:47:16 cmdLineTester_libpathTestRtfChild_0 Finish Time: Wed Nov 21 06:47:19 2018 Epoch Time (ms): 1542782839765
01:47:16 make[3]: Leaving directory '/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/functional/cmdLineTests/libpathTest'
01:47:16 make[2]: Leaving directory '/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/functional/cmdLineTests'
01:47:16 make[2]: Entering directory '/home/jenkins/workspace/Test-sanity.functional-JDK11-linux_x86-64_cmprssptrs/openjdk-tests/functional/Jsr335'
01:47:16 

@babsingh
Copy link
Contributor Author

I tried running libpathTestRtf and libpathTestRtfChild locally on the same machine where the sanity build fails. The tests passed. I ran the tests as follows:

export JAVA_HOME=<PATH_TO>/j2sdk-image
export JAVA_BIN=$JAVA_HOME/jre/bin
export JDK_VERSION=8
export SPEC=osx_x86-64_cmprssptrs

cd <PATH_TO>/openj9/test/TestConfig
make -f run_configure.mk
make compile

make _cmdLineTester_libpathTestRtf_0
make _cmdLineTester_libpathTestRtfChild_0

On my local computer (OSX High Sierra), running the above tests led to a pop-up window: Do you want the application "java" to accept incoming network connections? https://techblog.willshouse.com/2012/10/17/how-to-allow-java-in-the-firewall-on-os-x-mountain-lion/. The tests passed. I didn't have to take any action for the pop-up window.

In the sanity builds, the following errors are seen:

18:44:49  [ERR] _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
18:44:49  [ERR] 2018-11-20 16:56:55.292 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.293 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.293 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
18:44:49  [ERR] 2018-11-20 16:56:55.295 java[18719:4668681] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data

I think the above errors are related to pop-ups and display WindowServer:

The pop-ups require user-action. Without user-action, the test hangs. The hung test is eventually killed by a timeout. This issue is only seen in sanity builds. The issue is related to how the test is run and setup of machines. Requesting @jdekonin and @llxia to look at this issue.

babsingh added a commit to babsingh/openj9 that referenced this issue Dec 6, 2018
libpathTestRtf and libpathTestRtfChild tests pass locally on OSX. But,
they hang in Jenkins builds due to a pop-up requiring user-action. This
causes a Jenkins build to halt for 4 hrs. Temporarily excluding
libpathTestRtf and libpathTestRtfChild tests on OSX to avoid the halt
for 4 hrs. The tests will be added back once the issue is resolved.

Issue: eclipse-openj9#3787

Signed-off-by: Babneet Singh <[email protected]>
@babsingh
Copy link
Contributor Author

The same issue is noticed in #4091 for the MauveMultiThreadLoadTest.

#4091 (comment) appears a machine issue due to incorrect locale settings, or a failure in the test to set the expected locale before querying the result. i.e. the machine is configured one way but the tests expect something else.

fyi @AdamBrousseau / @jdekonin / @Mesbah-Alam how should the locale be corrected?

@babsingh
Copy link
Contributor Author

babsingh commented Apr 3, 2019

fyi @jdekonin / @Mesbah-Alam it's been 3 months. any update on how the locale should be corrected? is this issue fixed? can we re-enable the test and close this issue?

@pshipton
Copy link
Member

pshipton commented Apr 3, 2019

@babsingh somehow this issue morphed from a question about dialog boxes to a question about the locale. Note for Mauve we have excluded the locale dependent sub-tests, and mauve is running and passing.
https://ci.eclipse.org/openj9/job/Test-sanity.system-JDK8-osx_x86-64_cmprssptrs/116/tapTestReport/
MauveSingleInvocationLoadTest_OpenJ9_0
MauveMultiThreadLoadTest_OpenJ9_0

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

3 participants