openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Crash in Compiled_method=<...> or VM Access Assertion (vmThread)->publicFlags & J9_PUBLIC_FLAGS_VM_ACCESS

Open babsingh opened this issue 6 months ago • 12 comments

The root cause of the below failures is jitMonitorExit() passing in the incorrect currentThread.

The initial diagnosis of the below failures was done in https://github.com/eclipse-openj9/openj9/issues/21717.

Note: The old issues have been closed as a duplicate of this issue. The tests excluded for those issues will need to be re-enabled once this issue is closed. I haven't removed the test excluded label from the old issues since the exclude files haven't been updated. The test excluded label from the old issues should also be removed once the tests are re-enabled before closing this issue.

Tests / Old Issues where the below failures are seen:

  • java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java, 21717
  • java/nio/channels/vthread/BlockingChannelOps.java#poller-modes, 21649
  • sun/security/pkcs12/AttributesMultiThread.java, 21696
  • sun/security/pkcs12/AttributesMultiThread.java, 21757
  • java/nio/channels/vthread/BlockingChannelOps.java#default, 21718
  • java/lang/Thread/virtual/SynchronizedNative.java, 21727
  • serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java, 21646
  • java/lang/Thread/virtual/CancelTimerWithContention.java, 21686
  • java/lang/Thread/virtual/stress/LotsOfContendedMonitorEnter.java
  • java/util/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java, 21918

Output for crash in Compiled_method:

03:26:10  Type=Segmentation error vmState=0x00000000
03:26:10  J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=6e4a3ed5 Signal_Code=00000002
03:26:10  Handler1=000003FFAC346F10 Handler2=000003FFAC230978 InaccessibleAddress=000003FEA0211000
03:26:10  gpr0=0000000000000019 gpr1=000003FF9FE7E400 gpr2=000000000000000E gpr3=000003FEB4B5735C
03:26:10  gpr4=000003FEB4B5735C gpr5=000003FE400AEE78 gpr6=0000000001312D00 gpr7=E0C9168E8EA0AB88
03:26:10  gpr8=000003FEA0211000 gpr9=000003FEA0211000 gpr10=000003FF812C9A58 gpr11=000003FF812C9D18
03:26:10  gpr12=000003FEB4B573B0 gpr13=000003FE5C10C200 gpr14=000003FEB4B5735C gpr15=000003FF9FE7E4A0
03:26:10  psw=000003FEB4B566D8 mask=0705000180000000 fpc=0008fe00 bea=000003FEB4B568C6
03:26:10  fpr0=000003ff9fe7da90 (f: 2682772224.000000, d: 2.172127e-311)
03:26:10  fpr1=3e63a76a00000000 (f: 0.000000, d: 3.660836e-08)
03:26:10  fpr2=000003fe5c10c200 (f: 1544602112.000000, d: 2.169443e-311)
03:26:10  fpr3=3ccd777c00000000 (f: 0.000000, d: 8.178662e-16)
03:26:10  fpr4=000003feb4076040 (f: 3020382208.000000, d: 2.170172e-311)
03:26:10  fpr5=3e92582500000000 (f: 0.000000, d: 2.733516e-07)
03:26:10  fpr6=000003ff812a0c58 (f: 2167016448.000000, d: 2.171872e-311)
03:26:10  fpr7=3e3a4b8c00000000 (f: 0.000000, d: 6.122306e-09)
03:26:10  fpr8=000003ffac3a9f28 (f: 2889522944.000000, d: 2.172229e-311)
03:26:10  fpr9=000000000b9222c8 (f: 194126528.000000, d: 9.591125e-316)
03:26:10  fpr10=000003ffa8012a50 (f: 2818648576.000000, d: 2.172194e-311)
03:26:10  fpr11=000003ff8c1fe3d8 (f: 2350900224.000000, d: 2.171963e-311)
03:26:10  fpr12=0000000000000000 (f: 0.000000, d: 0.000000e+00)
03:26:10  fpr13=000003fef006c478 (f: 4026975232.000000, d: 2.170669e-311)
03:26:10  fpr14=0000000000000000 (f: 0.000000, d: 0.000000e+00)
03:26:10  fpr15=000003fef007d8d8 (f: 4027046144.000000, d: 2.170669e-311)
03:26:10  
03:26:10  Compiled_method=RetryMonitorEnterWhenPinned.lambda$run$0(Ljava/util/concurrent/CountDownLatch;Ljava/lang/Object;)V
03:26:10  Target=2_90_20250423_66 (Linux 3.10.0-1160.118.1.el7.s390x)
03:26:10  CPU=s390x (4 logical CPUs) (0x1ec1b1000 RAM)
03:26:10  ----------- Stack Backtrace -----------
03:26:10   (0x000003FEB4B566D8 [<unknown>+0x0])
03:26:10  ---------------------------------------

Output for the VM Access Assertion failure:

21:34:44  01:34:38.894 0x389100    j9vm.227    *   ** ASSERTION FAILED ** at /home/jenkins/workspace/Build_JDK24_ppc64le_linux_Nightly/openj9/runtime/vm/classsupport.c:1295: ((vmThread)->publicFlags & J9_PUBLIC_FLAGS_VM_ACCESS)

babsingh avatar May 08 '25 14:05 babsingh