eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

OpenJDK jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.java segfault vmState=0x0002000f #14715

Closed knn-k closed 2 years ago

knn-k commented 2 years ago

Opening a new issue from https://github.com/eclipse-openj9/openj9/issues/12556#issuecomment-1066882748

Failure link

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/121/ - cent8-aarch64-1 jdk_lang_0 -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:+UseCompressedOops jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.java

Failure output (captured from console output)

02:01:39  rerun:
02:01:39  cd /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/scratch/2 && \
02:01:39  DISPLAY=:0 \
02:01:39  HOME=/home/jenkins \
02:01:39  LANG=en_US.UTF-8 \
02:01:39  PATH=/bin:/usr/bin:/usr/sbin \
02:01:39      /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/openjdkbinary/j2sdk-image/bin/java \
02:01:39          -Dtest.vm.opts='-ea -esa -Xmx512m -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:+UseCompressedOops' \
02:01:39          -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-Xdump:system:none -J-Xdump:heap:none -J-Xdump:system:events=gpf+abort+traceassert+corruptcache -J-XX:-JITServerTechPreviewMessage -J-XX:+UseCompressedOops' \
02:01:39          -Dtest.compiler.opts= \
02:01:39          -Dtest.java.opts= \
02:01:39          -Dtest.jdk=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/openjdkbinary/j2sdk-image \
02:01:39          -Dcompile.jdk=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/openjdkbinary/j2sdk-image \
02:01:39          -Dtest.timeout.factor=8.0 \
02:01:39          -Dtest.nativepath=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/openjdkbinary/openjdk-test-image/jdk/jtreg/native \
02:01:39          -Dtest.root=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk \
02:01:39          -Dtest.name=jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.java \
02:01:39          -Dtest.file=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.java \
02:01:39          -Dtest.src=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/loader/ClassLoaderValue \
02:01:39          -Dtest.src.path=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/loader/ClassLoaderValue \
02:01:39          -Dtest.classes=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/classes/2/jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.d \
02:01:39          -Dtest.class.path=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/classes/2/jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.d \
02:01:39          -Dtest.class.path.prefix=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/classes/2/jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.d:/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/loader/ClassLoaderValue \
02:01:39          -Dtest.modules=java.base/jdk.internal.loader \
02:01:39          -classpath /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/classes/2/jdk/internal/loader/ClassLoaderValue/ClassLoaderValueTest.d:/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/loader/ClassLoaderValue:/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/jvmtest/openjdk/jtreg/lib/javatest.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/jvmtest/openjdk/jtreg/lib/jtreg.jar \
02:01:39          ClassLoaderValueTest
02:01:39  stderr:
02:01:39  JVMDUMP010I System dump written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/scratch/2/core.20220312.004030.13835.0001.dmp
02:01:39  JVMDUMP032I JVM requested Java dump using '/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/scratch/2/javacore.20220312.004030.13835.0002.txt' in response to an event
02:01:39  JVMDUMP010I Java dump written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/aqa-tests/TKG/output_16470632993070/jdk_lang_0/work/scratch/2/javacore.20220312.004030.13835.0002.txt
02:01:39  Unhandled exception
02:01:39  Type=Segmentation error vmState=0x0002000f
02:01:39  J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
02:01:39  Handler1=0000FFFFAD9E55E0 Handler2=0000FFFFAD959B38 InaccessibleAddress=000003FDA9A97C05
02:01:39  R0=000000000019F800 R1=910003FDA9A97BFD R2=0000000000010000 R3=0000000000100000
02:01:39  R4=000000000000001F R5=000000000000000F R6=0000000000000001 R7=0000FFFFA7E18000
02:01:39  R8=0000FFFFA7E18000 R9=0000FFFFA7E18000 R10=0000FFFFA7E18000 R11=0000FFFFA7E18000
02:01:39  R12=0000FFFFA7E18000 R13=0000FFFFA7E18000 R14=0000FFFFA7E18000 R15=0000FFFFA7E18000
02:01:39  R16=0000FFFFA7E18000 R17=0000FFFFA7E18000 R18=0000FFFFA7E18000 R19=0000FFFF54F5E030
02:01:39  R20=0000000000000000 R21=0000000000010000 R22=0000000000000000 R23=0000FFFFAD8F4E88
02:01:39  R24=0000000000000000 R25=0000000000000000 R26=0000000000000000 R27=0000FFFF54F5F1E0
02:01:39  R28=0000FFFF54F5F1E0 R29=0000FFFF54F5DEF0 R30=0000FFFFA7D83790 R31=0000FFFF54F5DEF0
02:01:39  PC=0000FFFFA7D837B4 SP=0000FFFF54F5DEF0 PSTATE=0000000080001000
02:01:39  V0 0000ffff54e1e348 (f: 1424089984.000000, d: 1.390657e-309)
02:01:39  V1 0000ffff54e1e338 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V2 0000ffff54e1e328 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V3 0000ffff54e1e318 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V4 0000ffff54e1e308 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V5 0000ffff54e1e2f8 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V6 0000ffff54e1e2e8 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V7 0000ffff54e1e2d8 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V8 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V9 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V10 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V11 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V12 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V13 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V14 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V15 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V16 0000ffff54e1e2c8 (f: 1424089856.000000, d: 1.390657e-309)
02:01:39  V17 0000ffff54e1e2b8 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V18 0000ffff54e1e2a8 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V19 0000ffff54e1e298 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V20 0000ffff54e1e288 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V21 0000ffff54e1e278 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V22 0000ffff54e1e268 (f: 1424089728.000000, d: 1.390657e-309)
02:01:39  V23 00000000000000f0 (f: 240.000000, d: 1.185758e-321)
02:01:39  V24 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V25 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V26 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V27 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V28 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V29 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V30 0000000000000000 (f: 0.000000, d: 0.000000e+00)
02:01:39  V31 000000003f400000 (f: 1061158912.000000, d: 5.242822e-315)
02:01:39  Module=/home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_Nightly/openjdkbinary/j2sdk-image/lib/default/libj9jit29.so
02:01:39  Module_base_address=0000FFFFA7630000
02:01:39  Target=2_90_20220312_122 (Linux 4.18.0-348.7.1.el8_5.aarch64)
02:01:39  CPU=aarch64 (8 logical CPUs) (0x1dc280000 RAM)
02:01:39  ----------- Stack Backtrace -----------
02:01:39  protectedBacktrace+0x18 (0x0000FFFFAD956398 [libj9prt29.so+0x26398])
02:01:39  ---------------------------------------
knn-k commented 2 years ago

The crash occurred in the following line in jswalk.c when trying to access romClass:

https://github.com/eclipse-openj9/openj9/blob/ec37a756277c9279dba536989c2b8384418d1377/runtime/codert_vm/jswalk.c#L1154

Either constantPool (in x23) or J9_CLASS_FROM_CP(constantPool) (in x1) is broken.

knn-k commented 2 years ago

10x Grinder job did not fail. https://openj9-jenkins.osuosl.org/job/Grinder/706/

knn-k commented 2 years ago

No failure in another 20x Grinder job: https://openj9-jenkins.osuosl.org/job/Grinder/708/

knn-k commented 2 years ago

No failure in yet another 20x Grinder job: https://openj9-jenkins.osuosl.org/job/Grinder/724/

knn-k commented 2 years ago

Another failure was reported in https://github.com/eclipse-openj9/openj9/issues/12556#issuecomment-1135991070

knn-k commented 2 years ago

We haven't seen this failure for a while. I ran this test 40 times on AArch64 Linux with JDK 11, and got no failures. https://openj9-jenkins.osuosl.org/job/Grinder/1294/