ibmruntimes / Semeru-Runtimes

Issue repo for all things IBM Semeru Runtimes
14 stars 4 forks source link

Regression since 0.46. Unhandled exception - Type=Bus error vmState=0x000501ff #94

Closed krismarc closed 1 month ago

krismarc commented 1 month ago

We are getting following error while using OpenJ9 from IBM's Semeru runtime. We have tested the newest minor release (0.46.1) and this yet happens. Basically the problem started to happen after 0.45 OpenJ9 release. 0.45 was yet fine.

$ ./java --version
openjdk 17.0.12 2024-07-16
IBM Semeru Runtime Open Edition 17.0.12.1 (build 17.0.12+7)
Eclipse OpenJ9 VM 17.0.12.1 (build openj9-0.46.1, JRE 17 Linux amd64-64-Bit Compressed References 20240716_840 (JIT enabled, AOT enabled)
OpenJ9   - 4760d5d320
OMR      - 840a9adba
JCL      - e70fd1fd64a based on jdk-17.0.12+7)
ERR #0: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x92fea5) [0x7f2b01445ea5]
ERR #1: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x93c250) [0x7f2b01452250]
ERR #2: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x1633b9) [0x7f2b00c793b9]
ERR #3: /home/vcap/app/.java/lib/default/libj9prt29.so(+0x29978) [0x7f2b019f7978]
ERR #4: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f2b02133520]
ERR #5: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x4a43b9) [0x7f2b00fba3b9]
ERR #6: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x4a4447) [0x7f2b00fba447]
ERR #7: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x4a06bc) [0x7f2b00fb66bc]
ERR #8: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x3bc751) [0x7f2b00ed2751]
ERR #9: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x3bdf61) [0x7f2b00ed3f61]
ERR #10: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x32abfc) [0x7f2b00e40bfc]
ERR #11: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x3a7aaa) [0x7f2b00ebdaaa]
ERR #12: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x3affa7) [0x7f2b00ec5fa7]
ERR #13: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x697c1e) [0x7f2b011adc1e]
ERR #14: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x3a7002) [0x7f2b00ebd002]
ERR #15: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x7adfd5) [0x7f2b012c3fd5]
ERR #16: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x7afcf3) [0x7f2b012c5cf3]
ERR #17: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x59fc45) [0x7f2b010b5c45]
ERR #18: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x1795ff) [0x7f2b00c8f5ff]
ERR #19: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x17a631) [0x7f2b00c90631]
ERR #20: /home/vcap/app/.java/lib/default/libj9prt29.so(+0x2a3c9) [0x7f2b019f83c9]
ERR #21: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x178172) [0x7f2b00c8e172]
ERR #22: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x1784b8) [0x7f2b00c8e4b8]
ERR #23: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x1773db) [0x7f2b00c8d3db]
ERR #24: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x177742) [0x7f2b00c8d742]
ERR #25: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x1777f2) [0x7f2b00c8d7f2]
ERR #26: /home/vcap/app/.java/lib/default/libj9prt29.so(+0x2a3c9) [0x7f2b019f83c9]
ERR #27: /home/vcap/app/.java/lib/default/libj9jit29.so(+0x177bbb) [0x7f2b00c8dbbb]
ERR #28: /home/vcap/app/.java/lib/default/libj9thr29.so(+0xb3a3) [0x7f2b019c03a3]
ERR #29: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f2b02185ac3]
ERR Unhandled exception
ERR Type=Bus error vmState=0x000501ff
ERR J9Generic_Signal_Number=00000028 Signal_Number=00000007 Error_Value=00000000 Signal_Code=00000002
ERR Handler1=00007F2B01AA3620 Handler2=00007F2B019F7740 InaccessibleAddress=00007F2A95F15010
ERR RDI=00007F2AFC1A4C58 RSI=0000000000000000 RAX=00007F2A95F15000 RBX=00007F29569B5A74
ERR RCX=0000000000000000 RDX=0000000000000100 R8=0000000000000001 R9=0000000000000000
ERR R10=00007F29569B5A74 R11=00007F28C480F740 R12=0000000000013E8D R13=00000000000000B8
ERR R14=0000000000000000 R15=0000000000000001
ERR RIP=00007F2B00FBA3B9 GS=0000 FS=0000 RSP=00007F2AEE6C1250
ERR EFlags=0000000000010206 CS=0033 RBP=00007F2AEDEC7010 ERR=0000000000000006
ERR TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=00007F2A95F15010
ERR xmm0=0000000000000000 (f: 0.000000, d: 0.000000e+00)
ERR xmm1=0000000040e00000 (f: 1088421888.000000, d: 5.377519e-315)
ERR xmm2=00000000000000db (f: 219.000000, d: 1.082004e-321)
ERR xmm3=00000000000000d3 (f: 211.000000, d: 1.042479e-321)
ERR xmm4=0000000000000000 (f: 0.000000, d: 0.000000e+00)
ERR xmm5=00007f28c4810970 (f: 3296790784.000000, d: 6.907684e-310)
ERR xmm6=0000000002edf718 (f: 49149720.000000, d: 2.428319e-316)
ERR xmm7=00007f28c47f6af0 (f: 3296684800.000000, d: 6.907684e-310)
ERR xmm8=ffffff00ffffff00 (f: 4294967040.000000, d: -nan)
ERR xmm9=7575757575757575 (f: 1970632064.000000, d: 6.444099e+257)
ERR xmm10=757575767575757d (f: 1970632064.000000, d: 6.444104e+257)
ERR xmm11=0000015200000151 (f: 337.000000, d: 7.172346e-312)
ERR xmm12=0000013d00000140 (f: 320.000000, d: 6.726727e-312)
ERR xmm13=000001380000013f (f: 319.000000, d: 6.620627e-312)
ERR xmm14=0000000008001800 (f: 134223872.000000, d: 6.631540e-316)
ERR xmm15=000001420000013b (f: 315.000000, d: 6.832826e-312)
ERR Module=/home/vcap/app/.java/lib/default/libj9jit29.so
ERR Module_base_address=00007F2B00B16000
ERR Method_being_compiled=com/mongodb/internal/async/function/RetryState.doAdvanceOrThrow(Ljava/lang/Throwable;Ljava/util/function/BiFunction;Ljava/util/function/BiPredicate;Z)V
ERR Target=2_90_20240716_818 (Linux 5.15.0-113-generic)
ERR CPU=amd64 (16 logical CPUs) (0xbc29df000 RAM)
ERR ----------- Stack Backtrace -----------
ERR _ZN12TR_IProfiler17findOrCreateEntryEimb+0x179 (0x00007F2B00FBA3B9 [libj9jit29.so+0x4a43b9])
ERR _ZN12TR_IProfiler15profilingSampleEmmbbj.localalias+0x47 (0x00007F2B00FBA447 [libj9jit29.so+0x4a4447])
ERR _ZN12TR_IProfiler12setCallCountEP20TR_OpaqueMethodBlockiiPN2TR11CompilationE.localalias+0x1c (0x00007F2B00FB66BC [libj9jit29.so+0x4a06bc])
ERR _ZN21TR_J9EstimateCodeSize20realEstimateCodeSizeEP13TR_CallTargetP12TR_CallStackbRN2TR6RegionE+0x1861 (0x00007F2B00ED2751 [libj9jit29.so+0x3bc751])
ERR _ZN21TR_J9EstimateCodeSize16estimateCodeSizeEP13TR_CallTargetP12TR_CallStackb.localalias+0x41 (0x00007F2B00ED3F61 [libj9jit29.so+0x3bdf61])
ERR _ZN19TR_EstimateCodeSize17calculateCodeSizeEP13TR_CallTargetP12TR_CallStackb+0xac (0x00007F2B00E40BFC [libj9jit29.so+0x32abfc])
ERR _ZN28TR_MultipleCallTargetInliner13weighCallSiteEP12TR_CallStackP11TR_CallSitebb+0x1fa (0x00007F2B00EBDAAA [libj9jit29.so+0x3a7aaa])
ERR _ZN28TR_MultipleCallTargetInliner17inlineCallTargetsEPN2TR20ResolvedMethodSymbolEP12TR_CallStackP24TR_InnerPreexistenceInfo+0x1757 (0x00007F2B00EC5FA7 [libj9jit29.so+0x3affa7])
ERR _ZN14TR_InlinerBase15performInliningEPN2TR20ResolvedMethodSymbolE+0xae (0x00007F2B011ADC1E [libj9jit29.so+0x697c1e])
ERR _ZN10TR_Inliner7performEv+0x142 (0x00007F2B00EBD002 [libj9jit29.so+0x3a7002])
ERR _ZN3OMR9Optimizer19performOptimizationEPK20OptimizationStrategyiii.localalias+0x855 (0x00007F2B012C3FD5 [libj9jit29.so+0x7adfd5])
ERR _ZN3OMR9Optimizer8optimizeEv+0x1b3 (0x00007F2B012C5CF3 [libj9jit29.so+0x7afcf3])
ERR _ZN3OMR11Compilation7compileEv+0xa25 (0x00007F2B010B5C45 [libj9jit29.so+0x59fc45])
ERR _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadPNS_11CompilationEP17TR_ResolvedMethodR11TR_J9VMBaseP19TR_OptimizationPlanRKNS_16SegmentAllocatorE+0x4bf (0x00007F2B00C8F5FF [libj9jit29.so+0x1795ff])
ERR _ZN2TR28CompilationInfoPerThreadBase14wrappedCompileEP13J9PortLibraryPv+0x381 (0x00007F2B00C90631 [libj9jit29.so+0x17a631])
ERR omrsig_protect+0x239 (0x00007F2B019F83C9 [libj9prt29.so+0x2a3c9])
ERR _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadP21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x372 (0x00007F2B00C8E172 [libj9jit29.so+0x178172])
ERR _ZN2TR24CompilationInfoPerThread12processEntryER21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x128 (0x00007F2B00C8E4B8 [libj9jit29.so+0x1784b8])
ERR _ZN2TR24CompilationInfoPerThread14processEntriesEv+0x35b (0x00007F2B00C8D3DB [libj9jit29.so+0x1773db])
ERR _ZN2TR24CompilationInfoPerThread3runEv+0x42 (0x00007F2B00C8D742 [libj9jit29.so+0x177742])
ERR _Z30protectedCompilationThreadProcP13J9PortLibraryPN2TR24CompilationInfoPerThreadE+0x82 (0x00007F2B00C8D7F2 [libj9jit29.so+0x1777f2])
ERR omrsig_protect+0x239 (0x00007F2B019F83C9 [libj9prt29.so+0x2a3c9])
ERR _Z21compilationThreadProcPv+0x17b (0x00007F2B00C8DBBB [libj9jit29.so+0x177bbb])
ERR thread_wrapper+0x163 (0x00007F2B019C03A3 [libj9thr29.so+0xb3a3])
ERR (0x00007F2B02185AC3 [libc.so.6+0x94ac3])
ERR clone+0x44 (0x00007F2B02216A04 [libc.so.6+0x125a04])
ERR ---------------------------------------
krismarc commented 1 month ago

I've opened it in both OpenJ9 and Semeru projects as it's not clear to me which one is the proper one. Once clarified we can clone one. https://github.com/eclipse-openj9/openj9/issues/20239 https://github.com/ibmruntimes/Semeru-Runtimes/issues/94

pshipton commented 1 month ago

Close this since we have https://github.com/eclipse-openj9/openj9/issues/20239 for tracking.