-
Notifications
You must be signed in to change notification settings - Fork 733
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
Java next build failure: segmentation error vmState=0x00000000 at getStringUTF8Length #20870
Comments
Changes since last build doesn't show any obvious cause, I assume it's intermittent. |
https://openj9-jenkins.osuosl.org/job/Build_JDKnext_s390x_linux_OpenJDK/824
|
@tajila fyi |
@JasonFengJ9 Can you please take a look at this |
As per internal workitem 152065, pass to JIT for further investigation. |
@hzongaro fyi |
@a7ehuo, may I ask you to look into this problem? |
Updating the milestone to Java 24 (0.50), as this problem was reported in a test run with that release as well. |
I'm able to reproduce this seg fault by building JDK24 sanity.functional tests in x86 Linux.
|
The two things I mentioned in #20870 (comment) are not an issue here. (1) The JNI argument String object should be a wrapped object from stack slots which will be unwapped in getStringUTFCharsImpl. (2) The register used is the address of the stack slot in LEA instruction which is not loading any object. |
I'm able to reproduce this crash with the interpreter ( openj9/jcl/src/java.base/share/classes/java/lang/ClassLoader.java Lines 2108 to 2109 in 006ef73
|
Taking a look ... |
j9gc_createJavaLangString can release VM access, which allows the GC to move or collect objects. To prevent this, entryName is pushed to a special frame before the call to j9gc_createJavaLangString. This ensures that entryName is protected from being moved or collected by the GC. Related: eclipse-openj9#20870 Signed-off-by: Babneet Singh <[email protected]>
Opened #20940. Testing to see if it resolves this issue. |
j9gc_createJavaLangString can release VM access, which allows the GC to move or collect objects. To prevent this, entryName is pushed to a special frame before the call to j9gc_createJavaLangString. This ensures that entryName is protected from being moved or collected by the GC. Related: eclipse-openj9#20870 Signed-off-by: Babneet Singh <[email protected]>
j9gc_createJavaLangString can release VM access, which allows the GC to move or collect objects. To prevent this, entryName is pushed to a special frame before the call to j9gc_createJavaLangString. This ensures that entryName is protected from being moved or collected by the GC. Related: eclipse-openj9#20870 Signed-off-by: Babneet Singh <[email protected]>
The error wasn't seen in the latest JDK24 runs. |
Failure link
https://openj9-jenkins.osuosl.org/job/Build_JDKnext_aarch64_linux_OpenJDK/702/consoleFull
Optional info
Failure output (captured from console output)
This also affects JDKnext_x86-64_linux_valhalla
The text was updated successfully, but these errors were encountered: