JFR TestCodeCacheFull crashes JVM on Mac
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
https://trss.adoptium.net/output/test?id=616f9197c6182d02178a6903
[2021-10-20T00:38:28.705Z] rerun:
[2021-10-20T00:38:28.705Z] cd /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/scratch/1 && \
[2021-10-20T00:38:28.705Z] HOME=/Users/jenkins \
[2021-10-20T00:38:28.705Z] PATH=/bin:/usr/bin:/usr/sbin \
[2021-10-20T00:38:28.705Z] /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/openjdkbinary/j2sdk-image/Contents/Home/bin/../bin/javac \
[2021-10-20T00:38:28.705Z] -J-ea \
[2021-10-20T00:38:28.705Z] -J-esa \
[2021-10-20T00:38:28.705Z] -J-Xmx512m \
[2021-10-20T00:38:28.705Z] -J-XX:+UseCompressedOops \
[2021-10-20T00:38:28.705Z] -J-Djava.awt.headless=true \
[2021-10-20T00:38:28.705Z] -J-Dtest.vm.opts='-ea -esa -Xmx512m -XX:+UseCompressedOops -Djava.awt.headless=true' \
[2021-10-20T00:38:28.705Z] -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-XX:+UseCompressedOops -J-Djava.awt.headless=true' \
[2021-10-20T00:38:28.705Z] -J-Dtest.compiler.opts= \
[2021-10-20T00:38:28.705Z] -J-Dtest.java.opts= \
[2021-10-20T00:38:28.705Z] -J-Dtest.jdk=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/openjdkbinary/j2sdk-image/Contents/Home/bin/.. \
[2021-10-20T00:38:28.705Z] -J-Dcompile.jdk=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/openjdkbinary/j2sdk-image/Contents/Home/bin/.. \
[2021-10-20T00:38:28.705Z] -J-Dtest.timeout.factor=8.0 \
[2021-10-20T00:38:28.705Z] -J-Dtest.root=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test \
[2021-10-20T00:38:28.705Z] -J-Dtest.name=jdk/jfr/event/compiler/TestCodeCacheFull.java \
[2021-10-20T00:38:28.705Z] -J-Dtest.file=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler/TestCodeCacheFull.java \
[2021-10-20T00:38:28.705Z] -J-Dtest.src=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler \
[2021-10-20T00:38:28.705Z] -J-Dtest.src.path=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/lib \
[2021-10-20T00:38:28.705Z] -J-Dtest.classes=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/jdk/jfr/event/compiler \
[2021-10-20T00:38:28.705Z] -J-Dtest.class.path=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/lib \
[2021-10-20T00:38:28.705Z] -J-Dtest.class.path.prefix=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/lib \
[2021-10-20T00:38:28.705Z] -d /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/jdk/jfr/event/compiler \
[2021-10-20T00:38:28.705Z] -sourcepath /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/lib \
[2021-10-20T00:38:28.706Z] -classpath /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/jdk/jfr/event/compiler:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/classes/1/lib:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/openjdkbinary/j2sdk-image/Contents/Home/bin/../lib/tools.jar \
[2021-10-20T00:38:28.706Z] -XDignore.symbol.file=true /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/openjdk/openjdk-jdk/jdk/test/jdk/jfr/event/compiler/TestCodeCacheFull.java
[2021-10-20T00:38:28.706Z]
[2021-10-20T00:38:28.706Z] ACTION: main -- Failed. Unexpected exit from test [exit code: 134]
[2021-10-20T00:38:28.706Z] REASON: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
[2021-10-20T00:38:28.706Z] TIME: 1.262 seconds
[2021-10-20T00:38:28.706Z] messages:
[2021-10-20T00:38:28.706Z] command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
[2021-10-20T00:38:28.706Z] reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
[2021-10-20T00:38:28.706Z] Mode: othervm [/othervm specified]
[2021-10-20T00:38:28.706Z] elapsed time (seconds): 1.262
[2021-10-20T00:38:28.706Z] configuration:
[2021-10-20T00:38:28.706Z] STDOUT:
[2021-10-20T00:38:28.706Z] Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::NMTNewArena(J)J
[2021-10-20T00:38:28.706Z] Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::NMTFreeArena(J)V
[2021-10-20T00:38:28.706Z] Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::NMTArenaMalloc(JJ)V
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] # A fatal error has been detected by the Java Runtime Environment:
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] # SIGSEGV (0xb) at pc=0x000000010cd3b2af, pid=24873, tid=0x0000000000005803
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] # JRE version: OpenJDK Runtime Environment (8.0_312-b07) (build 1.8.0_312-b07)
[2021-10-20T00:38:28.706Z] # Java VM: OpenJDK 64-Bit Server VM (25.312-b07 mixed mode bsd-amd64 compressed oops)
[2021-10-20T00:38:28.706Z] # Problematic frame:
[2021-10-20T00:38:28.706Z] # V [libjvm.dylib+0x1862af]
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] Unsupported internal testing APIs have been used.
[2021-10-20T00:38:28.706Z]
[2021-10-20T00:38:28.706Z] # An error report file with more information is saved as:
[2021-10-20T00:38:28.706Z] # /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16346876972532/jdk_jfr_0/work/scratch/1/hs_err_pid24873.log
[2021-10-20T00:38:28.706Z] #
[2021-10-20T00:38:28.706Z] # If you would like to submit a bug report, please visit:
[2021-10-20T00:38:28.706Z] # https://github.com/adoptium/adoptium-support/issues
Contributor guide
Research direction
Start with jdk/test/jdk/jfr/event/compiler/TestCodeCacheFull.java and reproduce the Mac failure using the reported othervm command and JDK 8 test configuration. Inspect the generated hs_err_pid24873.log and the test output to determine the cause; done means the test no longer crashes the JVM and completes successfully on Mac.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, macos
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100