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

JVM crash Type=Segmentation error vmState=0x00000000 #18853

Closed
AkkermanD opened this issue Jan 30, 2024 · 8 comments
Closed

JVM crash Type=Segmentation error vmState=0x00000000 #18853

AkkermanD opened this issue Jan 30, 2024 · 8 comments

Comments

@AkkermanD
Copy link

Java -version output

java -version
openjdk version "17.0.9" 2023-10-17
IBM Semeru Runtime Open Edition 17.0.9.0 (build 17.0.9+9)
Eclipse OpenJ9 VM 17.0.9.0 (build openj9-0.41.0, JRE 17 Linux amd64-64-Bit Compressed References 20231017_614 (JIT enabled, AOT enabled)
OpenJ9   - 461bf3c70
OMR      - 5eee6ad9d
JCL      - 3699725139c based on jdk-17.0.9+9)

Summary of problem

Hi. I have a problem building out project with IBM Semeru JDK. Looks like the problem always appears during unit tests run in the same module, but it is hard to reproduce as it happens once in ~5-7 builds. Logs to help find this issue with search:

Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=00007F2A5C643680 Handler2=00007F2A5C998B50 InaccessibleAddress=0000000000000058
RDI=0000000004F3E200 RSI=00000000032E3E00 RAX=00007F2A5805B480 RBX=00000000032E3E00
RCX=00007F2A580B39A0 RDX=0000000000000000 R8=0000000000000020 R9=0000000000000000
R10=0000000000000040 R11=0000000000000001 R12=00007F290DC15370 R13=00000000032E4108
R14=00000000032E3E00 R15=0000000000000000
RIP=00007F2A5C649873 GS=0000 FS=0000 RSP=00007F290DC14810
EFlags=0000000000010246 CS=0033 RBP=0000000000000000 ERR=0000000000000004
TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=0000000000000058
xmm0 000000060a540000 (f: 173277184.000000, d: 1.281759e-313)
xmm1 0000000672850000 (f: 1921318912.000000, d: 1.368123e-313)
xmm2 00007f2a570cbf50 (f: 1460453248.000000, d: 6.908017e-310)
xmm3 00007f2a570cbf88 (f: 1460453248.000000, d: 6.908017e-310)
xmm4 00007f2a570cbfc0 (f: 1460453376.000000, d: 6.908017e-310)
xmm5 00007f2a570cae38 (f: 1460448768.000000, d: 6.908017e-310)
xmm6 0000000000000001 (f: 1.000000, d: 4.940656e-324)
xmm7 0000000000000120 (f: 288.000000, d: 1.422909e-321)
xmm8 1600ff0341000726 (f: 1090520832.000000, d: 1.084185e-202)
xmm9 3ff0000000000000 (f: 0.000000, d: 1.000000e+00)
xmm10 4036aaaaaaaaaaab (f: 2863311616.000000, d: 2.266667e+01)
xmm11 6e6f69737265763b (f: 1919251968.000000, d: 9.083668e+223)
xmm12 2020202020202020 (f: 538976256.000000, d: 6.013470e-154)
xmm13 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm14 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm15 0000000000000000 (f: 0.000000, d: 0.000000e+00)
Module=/opt/ibm-semeru-open-jdk-17/lib/default/libj9vm29.so
Module_base_address=00007F2A5C600000
Target=2_90_20231017_614 (Linux 6.1.0-11-cloud-amd64)
CPU=amd64 (8 logical CPUs) (0x7d6b18000 RAM)
----------- Stack Backtrace -----------
ensureJNIIDTable+0x13 (0x00007F2A5C649873 [libj9vm29.so+0x49873])
getJNIMethodID+0x6f (0x00007F2A5C649C6F [libj9vm29.so+0x49c6f])
prepareToFixMemberNamesObjectIteratorCallback+0x166 (0x00007F2A5C078306 [libj9jvmti29.so+0x32306])
_ZL20iterateRegionObjectsP8J9JavaVMP28J9MM_IterateRegionDescriptormPF21jvmtiIterationControlS0_P28J9MM_IterateObjectDescriptorPvES6_+0xd1 (0x00007F2A56E47AB1 [libj9gc29.so+0x47ab1])
j9mm_iterate_regions+0x117 (0x00007F2A56E46CF7 [libj9gc29.so+0x46cf7])
j9mm_iterate_spaces+0x7f (0x00007F2A56E46B1F [libj9gc29.so+0x46b1f])
j9mm_iterate_heaps+0x20 (0x00007F2A56E46A90 [libj9gc29.so+0x46a90])
j9mm_iterate_all_objects+0x2f (0x00007F2A56E47C7F [libj9gc29.so+0x47c7f])
prepareToFixMemberNames+0x42 (0x00007F2A5C07AA22 [libj9jvmti29.so+0x34a22])
redefineClassesCommon.constprop.0+0x378 (0x00007F2A5C04F328 [libj9jvmti29.so+0x9328])
jvmtiRetransformClasses+0x3f3 (0x00007F2A5C052213 [libj9jvmti29.so+0xc213])
retransformClasses+0x1c6 (0x00007F2A5C887D26 [libinstrument.so+0x5d26])
 (0x00007F2A34C7A168 [<unknown>+0x0])
---------------------------------------

I have the dump files, see link bellow.

Diagnostic files

Archive with files: https://drive.google.com/file/d/1bwvrDcPai7pnr9MCpfdjMt1CbFqGxpEr/view?usp=sharing

core.20240130.115956.2548763.0001.dmp
javacore.20240130.115956.2548763.0002.txt
jitdump.20240130.115956.2548763.0004.dmp
Snap.20240130.115956.2548763.0003.trc
@pshipton
Copy link
Member

@dmitripivkine @TobiAjila fyi

@pshipton
Copy link
Member

@babsingh
Copy link
Contributor

babsingh commented Jan 30, 2024

This is a duplicate of #18076. It is fixed by

The top three commits in https://github.com/eclipse-openj9/openj9/commits/master/runtime/jvmti/jvmtiClass.c are also relevant because they fix issues which were introduced by #18236.

@AkkermanD
Copy link
Author

Thanks for the quick response!
Issue happens on out CI system, so it'll take some time to deploy the new JDK there and do the tests. I'll report here the results 🤝

@AkkermanD
Copy link
Author

I can not reproduce the issue with pre-release version. Thanks!
It it planned to be released in Apr?

@pshipton
Copy link
Member

pshipton commented Feb 1, 2024

The release will occur hopefully within the next few weeks.

@pshipton
Copy link
Member

pshipton commented Feb 1, 2024

Unless there is a big surprise, the pre-release build I provided has all the final code for the release, but is an OpenJ9 build rather than a Semeru build. Semeru has a difference in the certificates provided in the cacerts. Semeru for jdk17 may contain a FIPS alpha, but this is still TBD and causing extra delays. We may see versions other than 17 released first.

@pshipton
Copy link
Member

pshipton commented Feb 7, 2024

Semeru 17.0.10 is available now.
https://developer.ibm.com/languages/java/semeru-runtimes/downloads/
https://github.com/ibmruntimes/semeru17-binaries/releases/tag/jdk-17.0.10%2B7_openj9-0.43.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