Open Mesbah-Alam opened 3 years ago
FYI @zl-wang @IBMJimmyk
@knn-k
Reproduced in a grinder 2/5 times: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/7449/tapResults/
Investigated coredump from https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder_SM/42/artifact/system_test_output.tar.gz
The crash occurred at OMR::CodeCache::replaceTrampoline
. It looks like entry
was NULL, which means _resolvedMethodHT->findResolvedMethod(method)
returned NULL.
https://github.com/eclipse/omr/blob/4665e2f7227fb3df401c233fa90e0e36c6b9d55b/compiler/runtime/OMRCodeCache.cpp#L614-L623
The first argument method
is 0x43f7a0.
(gdb) x/8x 0x43f7a0 0x43f7a0: 0x888906fc 0x0000ffff 0x0043ebd0 0x00000000 0x43f7b0: 0x00000018 0x00000000 0x74fde22c 0x0000ffff
The method is:
start=0xffff74fde22c end=0xffff74fde310 java/util/concurrent/ThreadPoolExecutor::decrementWorkerCount()V
replaceTrampoline
is called from PicBuilder to patch the branch instruction to that method.
https://github.com/eclipse/openj9/blob/b227feba29b0b191867789756a14b1f1ab061b71/runtime/compiler/aarch64/runtime/PicBuilder.spp#L874
The caller method is:
start=0xffff6b7c8964 end=0xffff6b7c90c4 java/util/concurrent/ThreadPoolExecutor::getTask()Ljava/lang/Runnable;
I believe this is the same issue as https://github.com/eclipse/openj9/issues/12120 because both crash in replaceTrampoline.
Test
MixedLoadTest -test-args="timeLimit=30m" JVM_OPTIONS:
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED -Xcompressedrefs -Xjit:count=0,optlevel=hot,gcOnResolve,rtResolve
Corefile download link: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder_SM/42/artifact/system_test_output.tar.gz
Java Version
Error details copied from console output