bytedance / bytedance/CompoundVM

[Test]CrashReportTest.java使用fastdebug/fastdebug运行报错

Open
#163 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
118
Forks
22
Avg merge
8d 8h
Merged PRs (30d)
4

Description

报错日志:

```
STDOUT:
Launching child process to trigger JVM crash...
Command: /home/yansendao/git/CompoundVM-ysd/output/CompoundVM_8.17.4_linux_x64/jre/bin/java -server17 -Xmx64m -XX:+IgnoreUnrecognizedVMOptions -cp /home/yansendao/git/CompoundVM-ysd/build/jt-work/manual-run/classes/hotspot/runtime/version CrashReportTest$Crasher
[child] #
[child] # A fatal error has been detected by the Java Runtime Environment:
[child] #
[child] # SIGSEGV (0xb) at pc=0x00007ffff6e68262, pid=2293185, tid=2293186
[child] #
[child] # JRE version: OpenJDK Runtime Environment ByteDance CompoundVM (17.0.16) (slowdebug build 17.0.16+0)
[child] # Java VM: OpenJDK 64-Bit Server VM (CompoundVM 8.17.4) ByteDance CompoundVM (slowdebug 17.0.16+0, mixed mode, tiered, compressed oops, compressed class ptrs, parallel gc, linux-amd64)
[child] # Problematic frame:
[child] # V [libjvm.so+0x137c262] Unsafe_SetNativeInt+0x98
[child] #
[child] # Core dump will be written. Default location: /home/yansendao/git/CompoundVM-ysd/build/jt-work/manual-run/scratch/core.2293185
[child] #
[child] # An error report file with more information is saved as:
[child] # /home/yansendao/git/CompoundVM-ysd/build/jt-work/manual-run/scratch/hs_err_pid2293185.log
[child] #
[child] # If you would like to submit a bug report, please visit:
[child] # https://github.com/bytedance/CompoundVM/issues
[child] #
Child process exited with code: 134
Found hs_err file: /home/yansendao/git/CompoundVM-ysd/build/jt-work/manual-run/scratch/hs_err_pid2293185.log
STDERR:
java.lang.RuntimeException: Could not find JRE version line with vendor version 'ByteDance CompoundVM' and runtime version '17.0.16+0' in hs_err file.
at CrashReportTest.verifyJREVersion(CrashReportTest.java:147)
at CrashReportTest.main(CrashReportTest.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.lang.Thread.run(Thread.java:833)
```

[hs_err_pid-fastdebug.log](https://github.com/user-attachments/files/30792622/hs_err_pid-fastdebug.log)
[hs_err_pid-release.log](https://github.com/user-attachments/files/30792621/hs_err_pid-release.log)
[hs_err_pid-slowdebug.log](https://github.com/user-attachments/files/30792620/hs_err_pid-slowdebug.log)

Contributor guide

Open the contributing guide

Research direction

Read CrashReportTest.java around lines 107 and 147, starting with verifyJREVersion and the reported failure. Compare the expected JRE version format with the attached fastdebug, slowdebug, and release hs_err logs, then run CrashReportTest for the affected build variants. Done means the test finds the expected vendor and runtime version without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.