Skip to content

NPE running DefaultStaticInvokeTest #13472

Closed

Description

@0xdaryl

Latest occurrence at https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/8/consoleFull

21:27:44  openjdk version "17-internal" 2021-09-14
21:27:44  OpenJDK Runtime Environment (build 17-internal+0-adhoc.****.buildjdk17x86-64windowsnightly)
21:27:44  Eclipse OpenJ9 VM (build v0.28.0-release-18bebe9f4e3, JRE 17 Windows Server 2012 R2 amd64-64-Bit Compressed References 20210829_8 (JIT enabled, AOT enabled)
21:27:44  OpenJ9   - 18bebe9f4e3
21:27:44  OMR      - 1d0a329
21:27:44  JCL      - 712145ee3f5 based on jdk-17+35)

21:51:08  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
21:51:08  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
21:51:08  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
21:51:08  	at java.lang.invoke.LambdaForm$MH/0x0000000095dfc060.invoke(LambdaForm$MH)
21:51:08  	at java.lang.invoke.LambdaForm$MH/0x0000000095ddf6f0.invoke_MT(LambdaForm$MH)
21:51:08  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21:51:08  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:51:08  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21:51:08  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
21:51:08  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
21:51:08  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
21:51:08  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
21:51:08  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
21:51:08  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
21:51:08  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
21:51:08  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
21:51:08  	at org.testng.TestRunner$$Lambda$129/0x0000000096210428.accept(Unknown Source)
21:51:08  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
21:51:08  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
21:51:08  	at org.testng.TestRunner.run(TestRunner.java:585)
21:51:08  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
21:51:08  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
21:51:08  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
21:51:08  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
21:51:08  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
21:51:08  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
21:51:08  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
21:51:08  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
21:51:08  	at org.testng.TestNG.runSuites(TestNG.java:1069)
21:51:08  	at org.testng.TestNG.run(TestNG.java:1037)
21:51:08  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21:51:08  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:51:08  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21:51:08  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
21:51:08  	at java.base/java.lang.Thread.run(Thread.java:884)

21:51:08  ===============================================
21:51:08  java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
21:51:08  Total tests run: 276, Passes: 274, Failures: 2, Skips: 0
21:51:08  ===============================================
21:51:08  
21:51:08  STDERR:
21:51:08  java.lang.Exception: failures: 2
21:51:08  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:51:08  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
21:51:08  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:51:08  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
21:51:08  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
21:51:08  	at java.base/java.lang.Thread.run(Thread.java:884)
21:51:08  
21:51:08  JavaTest Message: Test threw exception: java.lang.Exception
21:51:08  JavaTest Message: shutting down test
21:51:08  
21:51:08  
21:51:08  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2
21:51:08  --------------------------------------------------
21:54:09  Test results: passed: 766; failed: 1
21:54:10  Report written to F:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly\jvmtest\openjdk\report\html\report.html
21:54:10  Results written to F:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly\aqa-tests\TKG\output_16302870106882\jdk_lang_1\work
21:54:10  Error: Some tests failed or other problems occurred.
21:54:10  
21:54:10  jdk_lang_1_FAILED

Activity

  1. 0xdaryl commented on Sep 8, 2021

    @0xdaryl
    ContributorAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/12/consoleFull

    21:49:09  openjdk version "17-internal" 2021-09-14
    21:49:09  OpenJDK Runtime Environment (build 17-internal+0-adhoc.****.buildjdk17x86-64windowsnightly)
    21:49:09  Eclipse OpenJ9 VM (build v0.28.0-release-54267846712, JRE 17 Windows Server 2012 R2 amd64-64-Bit Compressed References 20210902_12 (JIT enabled, AOT enabled)
    21:49:09  OpenJ9   - 54267846712
    21:49:09  OMR      - 0bf455f
    21:49:09  JCL      - 712145ee3f5 based on jdk-17+35)
    
    22:05:37  ===============================================
    22:05:37  Running test jdk_lang_1 ...
    22:05:37  ===============================================
    22:05:37  jdk_lang_1 Start Time: Thu Sep  2 21:05:35 2021 Epoch Time (ms): 1630634735480
    22:05:37  "F:/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/openjdkbinary/j2sdk-image\\bin\\java" -Xshareclasses:destroyAll; "F:/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/openjdkbinary/j2sdk-image\\bin\\java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
    22:05:37  JVMSHRC005I No shared class caches available
    22:05:38  JVMSHRC005I No shared class caches available
    22:05:38  cache cleanup done
    22:05:38  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage Mode650
    22:05:38  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:-UseCompressedOops 
    
    22:15:54  --------------------------------------------------
    22:15:54  TEST: java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
    
    22:15:54  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    22:15:54  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    22:15:54  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    22:15:54  	at java.lang.invoke.LambdaForm$MH/0x00000000738cc420.invoke(LambdaForm$MH)
    22:15:54  	at java.lang.invoke.LambdaForm$MH/0x0000000075fd9ec0.invoke_MT(LambdaForm$MH)
    22:15:54  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    22:15:54  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    22:15:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    22:15:54  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
    22:15:54  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
    22:15:54  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
    22:15:54  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    22:15:54  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
    22:15:54  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
    22:15:54  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    22:15:54  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    22:15:54  	at org.testng.TestRunner$$Lambda$133/0x0000000075f32580.accept(Unknown Source)
    22:15:54  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    22:15:54  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
    22:15:54  	at org.testng.TestRunner.run(TestRunner.java:585)
    22:15:54  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    22:15:54  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    22:15:54  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    22:15:54  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    22:15:54  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    22:15:54  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    22:15:54  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
    22:15:54  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    22:15:54  	at org.testng.TestNG.runSuites(TestNG.java:1069)
    22:15:54  	at org.testng.TestNG.run(TestNG.java:1037)
    22:15:54  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    22:15:54  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    22:15:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    22:15:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    22:15:54  	at java.base/java.lang.Thread.run(Thread.java:884)
    22:15:54  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass8", "TestIF8.TestClass8"): failure
    22:15:54  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    22:15:54  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    22:15:54  	at java.lang.invoke.LambdaForm$MH/0x00000000738cc420.invoke(LambdaForm$MH)
    22:15:54  	at java.lang.invoke.LambdaForm$MH/0x0000000075fd9ec0.invoke_MT(LambdaForm$MH)
    22:15:54  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    22:15:54  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    22:15:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    22:15:54  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
    22:15:54  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
    22:15:54  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
    22:15:54  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    22:15:54  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
    22:15:54  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
    22:15:54  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    22:15:54  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    22:15:54  	at org.testng.TestRunner$$Lambda$133/0x0000000075f32580.accept(Unknown Source)
    22:15:54  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    22:15:54  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
    22:15:54  	at org.testng.TestRunner.run(TestRunner.java:585)
    22:15:54  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    22:15:54  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    22:15:54  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    22:15:54  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    22:15:54  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    22:15:54  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    22:15:54  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
    22:15:54  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    22:15:54  	at org.testng.TestNG.runSuites(TestNG.java:1069)
    22:15:54  	at org.testng.TestNG.run(TestNG.java:1037)
    22:15:54  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    22:15:54  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    22:15:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    22:15:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    22:15:54  	at java.base/java.lang.Thread.run(Thread.java:884)
    
    22:15:54  ===============================================
    22:15:54  java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
    22:15:54  Total tests run: 276, Passes: 274, Failures: 2, Skips: 0
    22:15:54  ===============================================
    22:15:54  
    22:15:54  STDERR:
    22:15:54  java.lang.Exception: failures: 2
    22:15:54  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    22:15:54  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    22:15:54  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    22:15:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    22:15:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    22:15:54  	at java.base/java.lang.Thread.run(Thread.java:884)
    22:15:54  
    22:15:54  JavaTest Message: Test threw exception: java.lang.Exception
    22:15:54  JavaTest Message: shutting down test
    22:15:54  
    22:15:54  
    22:15:54  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2
    22:15:54  --------------------------------------------------
    22:18:55  Test results: passed: 802; failed: 1
    22:18:57  Report written to F:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly\jvmtest\openjdk\report\html\report.html
    22:18:57  Results written to F:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly\aqa-tests\TKG\output_16306339009122\jdk_lang_1\work
    22:18:57  Error: Some tests failed or other problems occurred.
    22:18:57  
    22:18:57  jdk_lang_1_FAILED
    

    Similar NPEs at https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/12/consoleFull

  2. added this to the Release 0.28 (Java 17) milestone on Sep 8, 2021
  3. pshipton commented on Sep 8, 2021

    @pshipton
    Member
  4. JasonFengJ9 commented on Sep 9, 2021

    @JasonFengJ9
    Member

    Similar NPE observed at an internal build w/ JDK17 M1 Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Personal/29/consoleFull

    23:00:18  openjdk version "17-internal" 2021-09-14
    23:00:18  OpenJDK Runtime Environment (build 17-internal+0-adhoc.jenkins.BuildJDK17x86-64macPersonal)
    23:00:18  Eclipse OpenJ9 VM (build v0.28.0-release-139535d5a37, JRE 17 Mac OS X amd64-64-Bit Compressed References 20210908_32 (JIT enabled, AOT enabled)
    23:00:18  OpenJ9   - 139535d5a37
    23:00:18  OMR      - 407eef0153b
    23:00:18  JCL      - b6c1a570c77 based on jdk-17+35)
    
    23:17:50  ===============================================
    23:17:50  Running test jdk_lang_1 ...
    23:17:50  ===============================================
    23:17:50  jdk_lang_1 Start Time: Wed Sep  8 23:17:47 2021 Epoch Time (ms): 1631157467631
    23:17:50  "/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Personal/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Personal/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
    23:17:50  JVMSHRC005I No shared class caches available
    23:17:50  JVMSHRC005I No shared class caches available
    23:17:50  cache cleanup done
    23:17:50  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage Mode650
    23:17:50  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:-UseCompressedOops 
    
    23:29:35  --------------------------------------------------
    23:29:35  TEST: java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
    
    23:29:35  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    23:29:35  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    23:29:35  	at java.lang.invoke.LambdaForm$MH/0x0000000068245420.invoke(LambdaForm$MH)
    23:29:35  	at java.lang.invoke.LambdaForm$MH/0x000000006d040e20.invoke_MT(LambdaForm$MH)
    23:29:35  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    
    23:29:35  ===============================================
    23:29:35  java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
    23:29:35  Total tests run: 276, Passes: 274, Failures: 2, Skips: 0
    23:29:35  ===============================================
    23:29:35  
    23:29:35  STDERR:
    23:29:35  java.lang.Exception: failures: 2
    23:29:35  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
    23:29:35  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    23:29:35  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    23:29:35  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    23:29:35  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    23:29:35  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    23:29:35  	at java.base/java.lang.Thread.run(Thread.java:884)
    23:29:35  
    23:29:35  JavaTest Message: Test threw exception: java.lang.Exception
    23:29:35  JavaTest Message: shutting down test
    23:29:35  
    23:29:35  
    23:29:35  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2
    23:29:35  --------------------------------------------------
    23:31:41  Test results: passed: 798; failed: 1
    23:31:52  Report written to /Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Personal/jvmtest/openjdk/report/html/report.html
    23:31:52  Results written to /Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Personal/aqa-tests/TKG/output_16311566886193/jdk_lang_1/work
    23:31:52  Error: Some tests failed or other problems occurred.
    23:31:52  
    23:31:52  jdk_lang_1_FAILED
    

    The test in question passed w/ JDK17 head stream build though.
    Edit failed at grinder below, so the problem is also in head stream.

    Launched grinders to confirm the difference between the head stream and M1 release.
    JDK17 M1 release - Test_grinder/job/Grinder/18015/ - Edit: passed, launched another one Grinder/18017/

    08:09:10  openjdk version "17-internal" 2021-09-14
    08:09:10  OpenJDK Runtime Environment (build 17-internal+0-adhoc.jenkins.BuildJDK17x86-64macPersonal)
    08:09:10  Eclipse OpenJ9 VM (build v0.28.0-release-139535d5a37, JRE 17 Mac OS X amd64-64-Bit Compressed References 20210908_32 (JIT enabled, AOT enabled)
    08:09:10  OpenJ9   - 139535d5a37
    08:09:10  OMR      - 407eef0153b
    08:09:10  JCL      - b6c1a570c77 based on jdk-17+35)
    

    JDK17 head stream - Test_grinder/job/Grinder/18016/ - Edit: passed, also launched another one Grinder/18020 - 19/50 failed.

    08:11:13  openjdk version "17-internal" 2021-09-14
    08:11:13  OpenJDK Runtime Environment (build 17-internal+0-adhoc.jenkins.BuildJDK17x86-64macPersonal)
    08:11:13  Eclipse OpenJ9 VM (build master-ec3bd5f0b20, JRE 17 Mac OS X amd64-64-Bit Compressed References 20210908_33 (JIT enabled, AOT enabled)
    08:11:13  OpenJ9   - ec3bd5f0b20
    08:11:13  OMR      - 680b68120d9
    08:11:13  JCL      - b457a33a599 based on jdk-17+35)
    
  5. added
    segfaultIssues that describe segfaults / JVM crashes
    on Sep 10, 2021
  6. pshipton commented on Sep 10, 2021

    @pshipton
    Member

    Crash instead of NPE. I'll put it here since it's the DefaultStaticInvokeTest test, but can open another Issues if necessary.
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/19/
    jdk_lang_0
    -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:+UseCompressedOops
    java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java

    21:51:16  test DefaultStaticInvokeTest.testGetMetstderr:
    21:51:16  Unhandled exception
    21:51:16  Type=Segmentation error vmState=0x00000000
    21:51:16  J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=2bfc4a70 Signal_Code=00000001
    21:51:16  Handler1=000003FFBCAC7E80 Handler2=000003FFBC9B2268 InaccessibleAddress=80000000007D2000
    21:51:16  gpr0=7FFFFFFFFFFFFE88 gpr1=000000003605E828 gpr2=0000000016972F30 gpr3=80000000007D2F78
    21:51:16  gpr4=000003FF307E03C0 gpr5=00000000004A1DC8 gpr6=000000000017D700 gpr7=000000000017DC00
    21:51:16  gpr8=0000000035F8C590 gpr9=0000000035F8C548 gpr10=0000000000226800 gpr11=00000000000003E7
    21:51:16  gpr12=000003FF9DF5A4F0 gpr13=00000000007AFA00 gpr14=000003FFB7CE8D60 gpr15=000003FFB7FFD5D8
    21:51:16  psw=000003FF9DF85026 mask=0705100180000000 fpc=0008fe00 bea=000003FF9DF84FAE
    21:51:16  fpr0 3de54ce200000000 (f: 0.000000, d: 1.549803e-10)
    21:51:16  fpr1 493035c000000000 (f: 0.000000, d: 3.614942e+44)
    21:51:16  fpr2 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    21:51:16  fpr3 3a80a83100000000 (f: 0.000000, d: 6.727708e-27)
    21:51:16  fpr4 493035c080000000 (f: 2147483648.000000, d: 3.614944e+44)
    21:51:16  fpr5 3e92492b00000000 (f: 0.000000, d: 2.724798e-07)
    21:51:16  fpr6 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    21:51:16  fpr7 3e3a332f00000000 (f: 0.000000, d: 6.100148e-09)
    21:51:16  fpr8 0000000016432840 (f: 373499968.000000, d: 1.845335e-315)
    21:51:16  fpr9 0000000000508690 (f: 5277328.000000, d: 2.607346e-317)
    21:51:16  fpr10 0000000016432b40 (f: 373500736.000000, d: 1.845339e-315)
    21:51:16  fpr11 00000000005086a0 (f: 5277344.000000, d: 2.607354e-317)
    21:51:16  fpr12 000003ffb838baa8 (f: 3090725632.000000, d: 2.172329e-311)
    21:51:16  fpr13 0000000000508680 (f: 5277312.000000, d: 2.607339e-317)
    21:51:16  fpr14 000003fffe77ac60 (f: 4269255680.000000, d: 2.172911e-311)
    21:51:16  fpr15 000003ff7c7f33d0 (f: 2088711168.000000, d: 2.171834e-311)
    21:51:16  
    21:51:16  Compiled_method=java/lang/invoke/LambdaForm$DMH/0x0000000000000000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    21:51:16  Target=2_90_20210909_19 (Linux 3.10.0-1160.25.1.el7.s390x)
    21:51:16  CPU=s390x (4 logical CPUs) (0x1ec1b5000 RAM)
    21:51:16  ----------- Stack Backtrace -----------
    21:51:16  (0x000003FF9DF85026 [<unknown>+0x0])
    21:51:16  ---------------------------------------
    
  7. pshipton commented on Sep 10, 2021

    @pshipton
    Member

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/19
    jdk_lang_0

    21:59:05  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    21:59:05  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    21:59:05  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    21:59:05  	at java.lang.invoke.LambdaForm$MH/0x0000000033969220.invoke(LambdaForm$MH)
    21:59:05  	at java.lang.invoke.LambdaForm$MH/0x0000000033928a20.invoke_MT(LambdaForm$MH)
    21:59:05  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    

    jdk_lang_1

    22:27:29  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    22:27:29  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    22:27:29  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    22:27:29  	at java.lang.invoke.LambdaForm$MH/0x000000009a871c20.invoke(LambdaForm$MH)
    22:27:29  	at java.lang.invoke.LambdaForm$MH/0x000000009a87f820.invoke_MT(LambdaForm$MH)
    22:27:29  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    
  8. JasonFengJ9 commented on Sep 13, 2021

    @JasonFengJ9
    Member

    Observed w/ latest JDK17 0.28 release build at job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac/56/

    openjdk version "17-beta" 2021-09-14
    IBM Semeru Runtime Open Edition 17.0.0.0-m1 (build 17-beta+35-202109122202)
    Eclipse OpenJ9 VM 17.0.0.0-m1 (build openj9-0.28.0-m1, JRE 17 Mac OS X amd64-64-Bit Compressed References 20210912_27 (JIT enabled, AOT enabled)
    OpenJ9   - 5eef84fb1
    OMR      - 0bf455f83
    JCL      - b6c1a570c77 based on jdk-17+35)
    
    [2021-09-12T22:35:20.850Z] Running test jdk_lang_0 ...
    [2021-09-12T22:35:20.850Z] ===============================================
    [2021-09-12T22:35:20.850Z] jdk_lang_0 Start Time: Sun Sep 12 18:35:19 2021 Epoch Time (ms): 1631486119896
    [2021-09-12T22:35:20.850Z] "/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java" -Xshareclasses:destroyAll; "/Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
    [2021-09-12T22:35:20.850Z] 
    [2021-09-12T22:35:20.851Z] Attempting to destroy all caches in cacheDir /Users/jenkins/javasharedresources/
    [2021-09-12T22:35:20.851Z] 
    [2021-09-12T22:35:20.851Z] JVMSHRC806I Compressed references persistent shared cache "sharedcc_jenkins" has been destroyed. Use option -Xnocompressedrefs if you want to destroy a non-compressed references cache.
    [2021-09-12T22:35:20.851Z] JVMSHRC005I No shared class caches available
    [2021-09-12T22:35:20.851Z] cache cleanup done
    [2021-09-12T22:35:20.851Z] variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage Mode150
    [2021-09-12T22:35:20.851Z] JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:+UseCompressedOops 
    
    [2021-09-12T22:47:18.900Z] test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass8", "TestIF8.TestClass8"): failure
    [2021-09-12T22:47:18.900Z] java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    [2021-09-12T22:47:18.900Z] 	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    [2021-09-12T22:47:18.900Z] 	at java.lang.invoke.LambdaForm$MH/0x0000000069064e20.invoke(LambdaForm$MH)
    [2021-09-12T22:47:18.900Z] 	at java.lang.invoke.LambdaForm$MH/0x0000000067c67420.invoke_MT(LambdaForm$MH)
    [2021-09-12T22:47:18.900Z] 	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [2021-09-12T22:47:18.900Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    [2021-09-12T22:47:18.900Z] 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestRunner$$Lambda$138/0x0000000069e942d8.accept(Unknown Source)
    [2021-09-12T22:47:18.900Z] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestRunner.privateRun(TestRunner.java:764)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestRunner.run(TestRunner.java:585)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    [2021-09-12T22:47:18.900Z] 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestNG.runSuites(TestNG.java:1069)
    [2021-09-12T22:47:18.900Z] 	at org.testng.TestNG.run(TestNG.java:1037)
    [2021-09-12T22:47:18.900Z] 	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    [2021-09-12T22:47:18.900Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [2021-09-12T22:47:18.900Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    [2021-09-12T22:47:18.900Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    [2021-09-12T22:47:18.900Z] 	at java.base/java.lang.Thread.run(Thread.java:884)
    
    [2021-09-12T22:47:18.901Z] ===============================================
    [2021-09-12T22:47:18.901Z] java/lang/reflect/DefaultStaticTest/DefaultStaticInvokeTest.java
    [2021-09-12T22:47:18.901Z] Total tests run: 276, Passes: 274, Failures: 2, Skips: 0
    [2021-09-12T22:47:18.901Z] ===============================================
    [2021-09-12T22:47:18.901Z] 
    [2021-09-12T22:47:18.901Z] STDERR:
    [2021-09-12T22:47:18.901Z] java.lang.Exception: failures: 2
    [2021-09-12T22:47:18.901Z] 	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
    [2021-09-12T22:47:18.901Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2021-09-12T22:47:18.901Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    [2021-09-12T22:47:18.901Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [2021-09-12T22:47:18.901Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    [2021-09-12T22:47:18.901Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
    [2021-09-12T22:47:18.901Z] 	at java.base/java.lang.Thread.run(Thread.java:884)
    [2021-09-12T22:47:18.902Z] 
    [2021-09-12T22:47:18.902Z] JavaTest Message: Test threw exception: java.lang.Exception
    [2021-09-12T22:47:18.902Z] JavaTest Message: shutting down test
    [2021-09-12T22:47:18.902Z] 
    [2021-09-12T22:47:18.902Z] 
    [2021-09-12T22:47:18.902Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2
    [2021-09-12T22:47:18.902Z] --------------------------------------------------
    [2021-09-12T22:49:59.059Z] Test results: passed: 798; failed: 1
    [2021-09-12T22:50:04.215Z] Report written to /Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac/jvmtest/openjdk/report/html/report.html
    [2021-09-12T22:50:04.215Z] Results written to /Users/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_x86-64_mac/aqa-tests/TKG/output_16314861199819/jdk_lang_0/work
    [2021-09-12T22:50:04.215Z] Error: Some tests failed or other problems occurred.
    [2021-09-12T22:50:04.215Z] 
    [2021-09-12T22:50:04.215Z] jdk_lang_0_FAILED
    
  9. pshipton commented on Sep 13, 2021

    @pshipton
    Member

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/21
    jdk_lang_1
    -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:-UseCompressedOops

    https://openj9-artifactory.osuosl.org/artifactory/ci-openj9/Test/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/21/openjdk_test_output.tar.gz

    22:24:27  test DefaultStaticInvokeTest.testGetMetstderr:
    22:24:27  Unhandled exception
    22:24:27  Type=Segmentation error vmState=0x00000000
    22:24:27  J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=0224ae70 Signal_Code=00000001
    22:24:27  Handler1=000003FFB12C7E80 Handler2=000003FFB11B2268 InaccessibleAddress=800000000C971000
    22:24:27  gpr0=7FFFFFFFFFFFFE88 gpr1=0000000035A70F10 gpr2=000000001909CD30 gpr3=800000000C971378
    22:24:27  gpr4=000003FF14063550 gpr5=000000000C90E5E8 gpr6=0000000035A784B0 gpr7=0000000035A784B0
    22:24:27  gpr8=000003FF00000009 gpr9=0000000035A74DE0 gpr10=000000000C5AA000 gpr11=0000000035A74BD8
    22:24:27  gpr12=0000000018D0FAE8 gpr13=000000000C9BE500 gpr14=000003FFA5768D60 gpr15=000003FFB0C7D5D8
    22:24:27  psw=000003FF8BDF8A26 mask=0705100180000000 fpc=0008fe00 bea=000003FF8BDF89AE
    22:24:27  fpr0 3d3a5345c0000000 (f: 3221225472.000000, d: 9.352619e-14)
    22:24:27  fpr1 4aedb88000000000 (f: 0.000000, d: 8.895868e+52)
    22:24:27  fpr2 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    22:24:27  fpr3 394323d600000000 (f: 0.000000, d: 7.372454e-33)
    22:24:27  fpr4 4aedb88000000000 (f: 0.000000, d: 8.895868e+52)
    22:24:27  fpr5 3e92492500000000 (f: 0.000000, d: 2.724785e-07)
    22:24:27  fpr6 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    22:24:27  fpr7 3e3a332500000000 (f: 0.000000, d: 6.100112e-09)
    22:24:27  fpr8 000000000c496840 (f: 206137408.000000, d: 1.018454e-315)
    22:24:27  fpr9 0000000000508590 (f: 5277072.000000, d: 2.607220e-317)
    22:24:27  fpr10 000000000c496b40 (f: 206138176.000000, d: 1.018458e-315)
    22:24:27  fpr11 00000000005085a0 (f: 5277088.000000, d: 2.607228e-317)
    22:24:27  fpr12 000003ffac2fc708 (f: 2888812288.000000, d: 2.172229e-311)
    22:24:27  fpr13 0000000000508580 (f: 5277056.000000, d: 2.607212e-317)
    22:24:27  fpr14 000003fff737a510 (f: 4147619072.000000, d: 2.172851e-311)
    22:24:27  fpr15 000003ff85afe3d0 (f: 2242896896.000000, d: 2.171910e-311)
    22:24:27  
    22:24:27  Compiled_method=java/lang/invoke/LambdaForm$DMH/0x0000000000000000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    22:24:27  Target=2_90_20210911_21 (Linux 3.10.0-1160.25.1.el7.s390x)
    22:24:27  CPU=s390x (4 logical CPUs) (0x1ec1b5000 RAM)
    22:24:27  ----------- Stack Backtrace -----------
    22:24:27  (0x000003FF8BDF8A26 [<unknown>+0x0])
    22:24:27  ---------------------------------------
    
  10. pshipton commented on Sep 13, 2021

    @pshipton
    Member

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/22
    jdk_lang_0

    https://openj9-artifactory.osuosl.org/artifactory/ci-openj9/Test/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/22/openjdk_test_output.tar.gz

    23:30:56  test DefaultStaticInvokeTest.testGetMetstderr:
    23:30:56  Unhandled exception
    23:30:56  Type=Segmentation error vmState=0x00000000
    23:30:56  J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=b88c5270 Signal_Code=00000001
    23:30:56  Handler1=000003FF928C7E80 Handler2=000003FF927B2268 InaccessibleAddress=80000000004FF000
    23:30:56  gpr0=7FFFFFFFFFFFFE88 gpr1=00000000342795F0 gpr2=0000000014D89BA0 gpr3=80000000004FF078
    23:30:56  gpr4=000003FF080654A0 gpr5=00000000005345F8 gpr6=0000000034280B28 gpr7=0000000034280B28
    23:30:56  gpr8=000003FF00000009 gpr9=000000003427D4A0 gpr10=000000000015BF00 gpr11=000000003427D298
    23:30:56  gpr12=0000000014D89378 gpr13=00000000004E1500 gpr14=000003FF91FE8D60 gpr15=000003FF900755D8
    23:30:56  psw=000003FF73882726 mask=0705100180000000 fpc=0008fe00 bea=000003FF738826AE
    23:30:56  fpr0 40433b1300000000 (f: 0.000000, d: 3.846152e+01)
    23:30:56  fpr1 467bf40000000000 (f: 0.000000, d: 3.543480e+31)
    23:30:56  fpr2 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    23:30:56  fpr3 3b0ec2b100000000 (f: 0.000000, d: 3.180563e-24)
    23:30:56  fpr4 467bf40000000000 (f: 0.000000, d: 3.543480e+31)
    23:30:56  fpr5 3e92494200000000 (f: 0.000000, d: 2.724851e-07)
    23:30:56  fpr6 0000000000000000 (f: 0.000000, d: 0.000000e+00)
    23:30:56  fpr7 3e3a335400000000 (f: 0.000000, d: 6.100279e-09)
    23:30:56  fpr8 00000000149fb840 (f: 346011712.000000, d: 1.709525e-315)
    23:30:56  fpr9 0000000000521890 (f: 5380240.000000, d: 2.658192e-317)
    23:30:56  fpr10 00000000149fbb40 (f: 346012480.000000, d: 1.709529e-315)
    23:30:56  fpr11 00000000005218a0 (f: 5380256.000000, d: 2.658200e-317)
    23:30:56  fpr12 000003ff8c2d6698 (f: 2351785728.000000, d: 2.171964e-311)
    23:30:56  fpr13 0000000000521880 (f: 5380224.000000, d: 2.658184e-317)
    23:30:56  fpr14 000003ffc5e7a640 (f: 3320292864.000000, d: 2.172442e-311)
    23:30:56  fpr15 000003ffabffe3d0 (f: 2885673984.000000, d: 2.172227e-311)
    23:30:56  
    23:30:56  Compiled_method=java/lang/invoke/LambdaForm$DMH/0x0000000000000000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    23:30:56  Target=2_90_20210912_22 (Linux 3.10.0-1160.25.1.el7.s390x)
    23:30:56  CPU=s390x (4 logical CPUs) (0x1ec1b5000 RAM)
    23:30:56  ----------- Stack Backtrace -----------
    23:30:56  (0x000003FF73882726 [<unknown>+0x0])
    23:30:56  ---------------------------------------
    
  11. pshipton commented on Sep 13, 2021

    @pshipton
    Member

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/22

    22:04:28  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    22:04:28  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    22:04:28  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    22:04:28  	at java.lang.invoke.LambdaForm$MH/0x00000000eb89d220.invoke(LambdaForm$MH)
    22:04:28  	at java.lang.invoke.LambdaForm$MH/0x00000000ea04de20.invoke_MT(LambdaForm$MH)
    22:04:28  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/22

    22:02:34  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    22:02:34  java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, java.lang.Object, java.lang.invoke.MemberName)" because "<parameter1>" is null
    22:02:34  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    22:02:34  	at java.lang.invoke.LambdaForm$MH/0x000000002a771500.invoke(LambdaForm$MH)
    22:02:34  	at java.lang.invoke.LambdaForm$MH/0x000000002a735d90.invoke_MT(LambdaForm$MH)
    22:02:34  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    
  12. jdmpapin commented on Sep 13, 2021

    @jdmpapin
    Contributor

    The failure is highly reproducible on Mac. In internal grinders it failed 6/10 and another 2/5 with -Xjit:verbose,vlog=vlog. I did get verbose logs but each failed iteration produced three verbose logs, and I haven't been able to tell which is the relevant one

    I tried running this on my machine with all tests excluded other than DefaultStaticInvokeTest, and I was unable to reproduce it that way (passed 150/150 total iterations). However, both @nbhuiyan and I have just now been able to reproduce this (on x86 Mac and x86 Linux, resp.) by allowing jdk_lang_0 to run all of the tests it normally runs

    Next I'll try to determine a failure rate for my local repro, and if it's reasonably high I can debug locally

  13. pshipton commented on Sep 14, 2021

    @pshipton
    Member

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/23 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/23 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/24 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/24 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/26 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/26 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/26 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/28 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/29/ - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/30 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/32 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/35 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/34 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/34 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/36 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/37 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/36 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/36 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/4 - SIGBUS
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/37 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/39 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/6 - SIGBUS
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/41 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/42 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/7 - SIGBUS
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/41 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/43 - crash
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/45 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/44 - NPE
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/47
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/45
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/11
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Nightly/47
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/46
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/13
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/47
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/14
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Nightly/48
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_mac_Release/7
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_Release/8
    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_x86-64_windows_Nightly/52

  14. jdmpapin commented on Sep 16, 2021

    @jdmpapin
    Contributor

    From analysis of the core generated by the first z Linux crash listed in the previous comment...

    LambdaForm$DMH/0x0000000000000000.invokeVirtual is hitting an unexpected segfault (which in some tests appears as an NPE due to our implicit null checks) because the "VFT offset" it finds via the MemberName is 0x8000000000000000

    The high bit there is J9_JNI_MID_INTERFACE:

    /* The high bit of a UDATA */
    #define J9_JNI_MID_INTERFACE ((UDATA)IDATA_MIN)

    which is a flag that indicates that J9JNIMethodID::vTableIndex actually represents an itable index instead:

    openj9/runtime/vm/jnicsup.cpp

    Lines 2261 to 2270 in 6450b81

    if (declaringClass->romClass->modifiers & J9AccInterface) {
    /* Because methodIDs do not store the original lookup class for interface methods,
    * always use the declaring class of the interface method. Pass NULL here to allow
    * for methodIDs to be created on obsolete classes for HCR purposes.
    */
    vTableIndex = getITableIndexForMethod(method, NULL);
    /* Ensure the iTableIndex isn't so large it sets J9_JNI_MID_INTERFACE */
    Assert_VM_false(J9_ARE_ANY_BITS_SET(vTableIndex, J9_JNI_MID_INTERFACE));
    vTableIndex |= J9_JNI_MID_INTERFACE;
    } else {

    So a value of 0x8000000000000000 indicates itable index 0. For a method found by virtual lookup, we can still end up stuck with an itable index rather than a VFT index when the method is a default implementation inherited from an interface

    With this understanding, Repro.java consistently reproduces the issue when run like so:

    $ java -Xjit:'limit={java/lang/invoke/LambdaForm$DMH/0x0000000000000000.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;DFJ)D},count=63,disableAsyncCompilation' Repro
    Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.linkToVirtual(java.lang.Object, double, float, long, java.lang.invoke.MemberName)" because "<parameter1>" is null
            at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
            at java.base/java.lang.invoke.LambdaForm$MH/0x0000000000000000.invokeExact_MT(LambdaForm$MH)
            at Repro.main(Repro.java:21)
    

    And adding -Xrs to the command line shows that this NPE is really an unexpected segfault as well

    To fix this, the trees generated for linkToVirtual() in recognized call transformer will need to detect and handle J9_JNI_MID_INTERFACE. FYI @nbhuiyan, @0xdaryl, @vijaysun-omr

  15. pshipton commented on Sep 23, 2021

    @pshipton
    Member

    First time we've had aarch64 testing in the open nightly.

    https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly/1 - cent8-aarch64-1

    01:23:17  test DefaultStaticInvokeTest.testMethodHandleInvoke("TestClass7", "TestIF7.TestClass7"): failure
    01:23:17  java.lang.InternalError: SIGBUS
    01:23:17  	at java.base/java.lang.invoke.LambdaForm$DMH/0x0000000000000000.invokeVirtual(LambdaForm$DMH)
    01:23:17  	at java.lang.invoke.LambdaForm$MH/0x0000000018793a20.invoke(LambdaForm$MH)
    01:23:17  	at java.lang.invoke.LambdaForm$MH/0x0000000018793470.invoke_MT(LambdaForm$MH)
    01:23:17  	at DefaultStaticInvokeTest.testMethodHandleInvoke(DefaultStaticInvokeTest.java:169)
    

    Opened #13556 for the SIGBUS

  16. jdmpapin commented on Sep 23, 2021

    @jdmpapin
    Contributor

    I have a fix in the works based on my previous comment, and I should be able to open a PR for it pretty soon

  17. pshipton commented on Oct 15, 2021

    @pshipton
    Member

    Re-opening as the fix was temporarily reverted, see #13578 (comment)

  18. pshipton commented on Oct 15, 2021

    @pshipton
    Member

    Merged the fix again via #13716

  19. pshipton commented on Oct 18, 2021

    @pshipton
    Member

    We can keep this open until the fix is delivered to the 0.29.1 branch.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions